[Mod] [MTG/MCL2] Storage Drawers [0.5.0] [drawers]

LNJ
Member
Posts: 248
Joined: Tue Sep 23, 2014 16:02
GitHub: LNJ2
IRC: LNJ2GO
In-game: LNJ
Location: Europe/Berlin

[Mod] [MTG/MCL2] Storage Drawers [0.5.0] [drawers]

by LNJ » Post

Storage Drawers - The Minecraft Mod for Minetest!

This mod adds simple item storages showing the item's inventory image in the front. By left- or right-clicking the image you can take or add stacks. If you also hold the shift-key only a single item will be removed/added.

Thanks to the author of the original mod, who licensed his code and textures under MIT, this mod also can use the original textures. :)
- I thank you Justin Aquadro!

Screenshots

Image
+ Spoiler
+ Spoiler

To-Do List

  • Add half-sized drawers
  • Add compacting drawers for auto-crafting blocks/ingots/fragments
  • Add a key (or something similar) for locking the item (so the item is also displayed at count 0)
  • Add duct tape to transport drawers
  • Support hoppers

Dependencies

This mod requires Minetest 0.4.14 or later. (Tested/Developed on MT 0.4.15)
There are only optional mod dependencies for crafting recipes. These are default for MTG or similar and mcl_core + mcl_chests for MineClone 2.

License

Code & Textures are MIT, Translations are CC0 1.0.
See LICENSE.txt for details.

Download

Browse the code on GitHub.

Development Version (.zip) (feat. the latest bugs!)

Version 0.5.0 (.zip)

Version 0.4.3 (.zip)
Version 0.3.2 (.zip)
Version 0.2.3 (.zip)
Version 0.1 (.zip)

New translations:

You can help translating this mod into your language on Weblate:
https://hosted.weblate.org/projects/min ... e-drawers/

Currently supported languages:
  • Belarusian
  • Chinese (Traditional)
  • Czech
  • Dutch
  • French
  • German
  • Indonesian
  • Italian
  • Malay
  • Polish
  • Spanish
  • Turkish
Other Links:
Last edited by LNJ on Thu Jun 20, 2019 18:47, edited 36 times in total.
Storage Drawers - The simplest item storage in Minetest

User avatar
DS-minetest
Member
Posts: 1137
Joined: Thu Jun 19, 2014 19:49
GitHub: Desour
IRC: DS-minetest
In-game: DS
Location: I'm scared that if this is too exact, I will be unable to use my keyboard.

Re: [Mod] [MTG/MCl2] Storage Drawers [0.1] [drawers]

by DS-minetest » Post

Is this something like the caches mod?
Note that I've recently renamed myself on github and co. to "Desour". (I'm bad at naming things.)
Feel free to call me DS.

LNJ
Member
Posts: 248
Joined: Tue Sep 23, 2014 16:02
GitHub: LNJ2
IRC: LNJ2GO
In-game: LNJ
Location: Europe/Berlin

Re: [Mod] [MTG/MCl2] Storage Drawers [0.1] [drawers]

by LNJ » Post

DS-minetest wrote:Is this something like the caches mod?
Yes, exactly. But this is a 90% rewrite using the visual entity itself for adding/removing items. This makes it possible to add 2x2 drawers with 4 different items (or any other size) [work in progress...]. As you can see I also plan to add a drawer controller that will sort all items from a pipe or just it's inventory into all drawers connected to it. This should make sorting your items much easier!
Storage Drawers - The simplest item storage in Minetest

User avatar
firefox
Member
Posts: 1550
Joined: Wed Jan 14, 2015 07:34
In-game: Red_Fox
Location: Xanadu

Re: [Mod] [MTG/MCl2] Storage Drawers [0.1] [drawers]

by firefox » Post

looks like ikea

+1
building inspiration: viewtopic.php?f=3&t=15550 --- my game: viewtopic.php?f=49&t=15860 --- =(^.^)= nyan~

User avatar
texmex
Member
Posts: 1751
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: texmex

Re: [Mod] [MTG/MCl2] Storage Drawers [0.1] [drawers]

by texmex » Post

That is awesome, thanks LNJ! (Hey, you're back?)
Mods | Support Mesehub: bc1qluuests9rxmlnvpjrhsnyjg9ucwy6z3r0y3srw

User avatar
LazerRay
Member
Posts: 147
Joined: Sun Jul 27, 2014 01:32
GitHub: LazerRay

Re: [Mod] [MTG/MCl2] Storage Drawers [0.1] [drawers]

by LazerRay » Post

Looks nice so far, as a suggestion add Pipeworks support to your to-do-list, since a lot of people use that mod.

User avatar
Wuzzy
Member
Posts: 3929
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Re: [Mod] [MTG/MCl2] Storage Drawers [0.1] [drawers]

by Wuzzy » Post

Yay! This is the 1st mod for MineClone 2 not created by me, and the 2nd mod for MineClone overall. This is great! I am happy because this means my subgame is taken seriously. :-)

By the way: The official abbreviation for MineClone 2 is “MCL2” (capital “L” to make it easier to read).
Add duck tape to transport drawers
Image
My creations. I gladly accept bitcoins: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH

LNJ
Member
Posts: 248
Joined: Tue Sep 23, 2014 16:02
GitHub: LNJ2
IRC: LNJ2GO
In-game: LNJ
Location: Europe/Berlin

Re: [Mod] [MTG/MCL2] Storage Drawers [0.1] [drawers]

by LNJ » Post

firefox wrote:looks like ikea

+1
lol. Thanks.
texmex wrote:That is awesome, thanks LNJ! (Hey, you're back?)
Yes, I'm back. :)
LazerRay wrote:Looks nice so far, as a suggestion add Pipeworks support to your to-do-list, since a lot of people use that mod.
You're right. I'll add it.
Wuzzy wrote:Yay! This is the 1st mod for MineClone 2 not created by me, and the 2nd mod for MineClone overall. This is great! I am happy because this means my subgame is taken seriously. :-)

By the way: The official abbreviation for MineClone 2 is “MCL2” (capital “L” to make it easier to read).
Add duck tape to transport drawers
Image
"duck tape" .. rofl :D
I changed the abbreviation for MineClone 2.

Your game has its bugs, but it is very cool! I see how much time you spend on it.
Storage Drawers - The simplest item storage in Minetest

User avatar
azekill_DIABLO
Member
Posts: 7494
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [Mod] [MTG/MCL2] Storage Drawers [0.1] [drawers]

by azekill_DIABLO » Post

nice! this looks very nice!
you should maybe use frames code to make blocks look 3d?

User avatar
DS-minetest
Member
Posts: 1137
Joined: Thu Jun 19, 2014 19:49
GitHub: Desour
IRC: DS-minetest
In-game: DS
Location: I'm scared that if this is too exact, I will be unable to use my keyboard.

Re: [Mod] [MTG/MCL2] Storage Drawers [0.1] [drawers]

by DS-minetest » Post

Or you make a normalmap.

@azekill_DIABLO: Can't stop watching at you running. X3
Note that I've recently renamed myself on github and co. to "Desour". (I'm bad at naming things.)
Feel free to call me DS.

User avatar
texmex
Member
Posts: 1751
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: texmex

Re: [Mod] [MTG/MCL2] Storage Drawers [0.1] [drawers]

by texmex » Post

Tried it, works well! A suggestion: The item count is a little "mathy", I think it would be more easy if it read "Cobblestone [99 / 2 376]" or simply "Cobblestone 4%". I would also love for this to work with this hopper mod.
Mods | Support Mesehub: bc1qluuests9rxmlnvpjrhsnyjg9ucwy6z3r0y3srw

User avatar
azekill_DIABLO
Member
Posts: 7494
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [Mod] [MTG/MCL2] Storage Drawers [0.1] [drawers]

by azekill_DIABLO » Post

DS-minetest wrote: @azekill_DIABLO: Can't stop watching at you running. X3
i'm hypnotic no? XD

User avatar
DS-minetest
Member
Posts: 1137
Joined: Thu Jun 19, 2014 19:49
GitHub: Desour
IRC: DS-minetest
In-game: DS
Location: I'm scared that if this is too exact, I will be unable to use my keyboard.

Re: [Mod] [MTG/MCL2] Storage Drawers [0.1] [drawers]

by DS-minetest » Post

texmex wrote:I would also love for this to work with this hopper mod.
That would make sense since mc has hoppers and this mod is for MCL2.

It seems like I'm too stupid to use this. How can I put in an item if the drawer is empty?
Note that I've recently renamed myself on github and co. to "Desour". (I'm bad at naming things.)
Feel free to call me DS.

LNJ
Member
Posts: 248
Joined: Tue Sep 23, 2014 16:02
GitHub: LNJ2
IRC: LNJ2GO
In-game: LNJ
Location: Europe/Berlin

Re: [Mod] [MTG/MCL2] Storage Drawers [0.1] [drawers]

by LNJ » Post

azekill_DIABLO wrote:nice! this looks very nice!
you should maybe use frames code to make blocks look 3d?
You mean using a "wielditem" as entity type. Yes I actually could/should do that.
DS-minetest wrote:Or you make a normalmap.

@azekill_DIABLO: Can't stop watching at you running. X3
I've never worked with normalmaps. What actually are they?
texmex wrote:Tried it, works well! A suggestion: The item count is a little "mathy", I think it would be more easy if it read "Cobblestone [99 / 2 376]" or simply "Cobblestone 4%". I would also love for this to work with this hopper mod.
I'll change that. What about "Cobblestone 4% (95)"?
Has the hopper mod an API? If yes, where is the documentation?
DS-minetest wrote:
texmex wrote:I would also love for this to work with this hopper mod.
That would make sense since mc has hoppers and this mod is for MCL2.

It seems like I'm too stupid to use this. How can I put in an item if the drawer is empty?
I've noticed a bug, that I don't understand. It's only occurring on the latest Minetest 0.4.15-dev (I used minetest stable for developing). The bug is that the visual entity doesn't spawns, so then you can't add or remove anything!

I think I need help finding out what's the problem here ...


-- EDIT
I'm currently working on pipeworks support.
Storage Drawers - The simplest item storage in Minetest

User avatar
DS-minetest
Member
Posts: 1137
Joined: Thu Jun 19, 2014 19:49
GitHub: Desour
IRC: DS-minetest
In-game: DS
Location: I'm scared that if this is too exact, I will be unable to use my keyboard.

Re: [Mod] [MTG/MCL2] Storage Drawers [0.1] [drawers]

by DS-minetest » Post

LNJ wrote:
DS-minetest wrote:Or you make a normalmap.

@azekill_DIABLO: Can't stop watching at you running. X3
I've never worked with normalmaps. What actually are they?
If they are enabled, the surface of nodes can look 3d. But I think, this isn't good to use here, so just forget it. >_<
Note that I've recently renamed myself on github and co. to "Desour". (I'm bad at naming things.)
Feel free to call me DS.

User avatar
burli
Member
Posts: 1641
Joined: Fri Apr 10, 2015 13:18

Re: [Mod] [MTG/MCL2] Storage Drawers [0.1] [drawers]

by burli » Post

Awesome.

LNJ
Member
Posts: 248
Joined: Tue Sep 23, 2014 16:02
GitHub: LNJ2
IRC: LNJ2GO
In-game: LNJ
Location: Europe/Berlin

[Update] Version 0.2

by LNJ » Post

Update v0.2:
  • Splitted up source code
  • Added pipeworks support
  • Fixed not removing items from inventory when adding to a nearly full drawer
  • New infotext format with percent ("42 Cobblestone (2% full)")
Update v0.2.1:
  • Fixed infotext format is displaying "0 Empty (0% full)"
Update v0.2.2:
  • Fixed drawer's item name not changeable (without restart)
Image
Image
Last edited by LNJ on Sat Apr 01, 2017 20:46, edited 3 times in total.
Storage Drawers - The simplest item storage in Minetest

LNJ
Member
Posts: 248
Joined: Tue Sep 23, 2014 16:02
GitHub: LNJ2
IRC: LNJ2GO
In-game: LNJ
Location: Europe/Berlin

Re: [Mod] [MTG/MCL2] Storage Drawers [0.2] [drawers]

by LNJ » Post

DS-minetest wrote:
LNJ wrote:
DS-minetest wrote:Or you make a normalmap.

@azekill_DIABLO: Can't stop watching at you running. X3
I've never worked with normalmaps. What actually are they?
If they are enabled, the surface of nodes can look 3d. But I think, this isn't good to use here, so just forget it. >_<
Ok.
burli wrote:Awesome.
Thanks. :)
Storage Drawers - The simplest item storage in Minetest

LNJ
Member
Posts: 248
Joined: Tue Sep 23, 2014 16:02
GitHub: LNJ2
IRC: LNJ2GO
In-game: LNJ
Location: Europe/Berlin

Re: [Mod] [MTG/MCL2] Storage Drawers [0.1] [drawers]

by LNJ » Post

texmex wrote:Tried it, works well! A suggestion: The item count is a little "mathy", I think it would be more easy if it read "Cobblestone [99 / 2 376]" or simply "Cobblestone 4%". I would also love for this to work with this hopper mod.
I found the documentation: https://github.com/minetest-mods/hopper ... er/api.txt
But it wants to directly access the inventory and we're using meta fields for name and count, so for now hoppers won't be supported.
Storage Drawers - The simplest item storage in Minetest

User avatar
texmex
Member
Posts: 1751
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: texmex

Re: [Mod] [MTG/MCL2] Storage Drawers [0.1] [drawers]

by texmex » Post

LNJ wrote:I found the documentation: https://github.com/minetest-mods/hopper ... er/api.txt
But it wants to directly access the inventory and we're using meta fields for name and count, so for now hoppers won't be supported.
Sounds like there's an intention to create interoperability from the hopper side of things.

Btw, the way the crafting recipe is constructed makes drawers:
  • invisible to craft guides
  • only craftable with default wood, not all wood types
Mods | Support Mesehub: bc1qluuests9rxmlnvpjrhsnyjg9ucwy6z3r0y3srw

LNJ
Member
Posts: 248
Joined: Tue Sep 23, 2014 16:02
GitHub: LNJ2
IRC: LNJ2GO
In-game: LNJ
Location: Europe/Berlin

Re: [Mod] [MTG/MCL2] Storage Drawers [0.1] [drawers]

by LNJ » Post

texmex wrote:
LNJ wrote:I found the documentation: https://github.com/minetest-mods/hopper ... er/api.txt
But it wants to directly access the inventory and we're using meta fields for name and count, so for now hoppers won't be supported.
Sounds like there's an intention to create interoperability from the hopper side of things.
Yeah, they should just use a callback of the nodedef as pipeworks, maybe even the same. That would be the simplest way, I think.
texmex wrote:Btw, the way the crafting recipe is constructed makes drawers:
  • invisible to craft guides
  • only craftable with default wood, not all wood types
Why (should) the crafting be invisible to craft guides? (I haven't tested this)
I didn't use groups because I want to add drawers in every kind of wood. (But for now I'll change this..)

Thanks for the report.
Storage Drawers - The simplest item storage in Minetest

LNJ
Member
Posts: 248
Joined: Tue Sep 23, 2014 16:02
GitHub: LNJ2
IRC: LNJ2GO
In-game: LNJ
Location: Europe/Berlin

Re: [Mod] [MTG/MCL2] Storage Drawers [0.2.3] [drawers]

by LNJ » Post

Update v0.2.3:
  • Used groups for crafting
  • Added link to forum post in README
Storage Drawers - The simplest item storage in Minetest

User avatar
texmex
Member
Posts: 1751
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: texmex

Re: [Mod] [MTG/MCL2] Storage Drawers [0.2.3] [drawers]

by texmex » Post

Great!
No I meant that the drawers don't show in craft guides (I think they should). Usually that problem has to do with oddly constructed crafting recipe code. :)
Mods | Support Mesehub: bc1qluuests9rxmlnvpjrhsnyjg9ucwy6z3r0y3srw

LNJ
Member
Posts: 248
Joined: Tue Sep 23, 2014 16:02
GitHub: LNJ2
IRC: LNJ2GO
In-game: LNJ
Location: Europe/Berlin

Re: [Mod] [MTG/MCL2] Storage Drawers [0.2.3] [drawers]

by LNJ » Post

texmex wrote:Great!
No I meant that the drawers don't show in craft guides (I think they should). Usually that problem has to do with oddly constructed crafting recipe code. :)
For me it just works fine (using this craft guide: https://github.com/minetest-mods/craftguide). Which craft guide do you use?
Storage Drawers - The simplest item storage in Minetest

LNJ
Member
Posts: 248
Joined: Tue Sep 23, 2014 16:02
GitHub: LNJ2
IRC: LNJ2GO
In-game: LNJ
Location: Europe/Berlin

[Update] Version 0.3

by LNJ » Post

Update v0.3:
  • Added 1x2 and 2x2 drawers!
  • Drop positions of items are now randomized
  • Adjusted pipeworks support, drop function, etc. for 1x2 and 2x2 drawers
Image
Storage Drawers - The simplest item storage in Minetest

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 7 guests