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

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

[Mod] [MTG/MCL2] Storage Drawers [0.6.2] [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
Image
Image
ImageImageImage
Image
Spoiler
ImageImageImage
Crafting recipe screenshots made using MineClone 2

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.

This mod is also available on ContentDB.

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


Version 0.6.2 (.zip)

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 Sat Apr 17, 2021 19:20, edited 39 times in total.
Storage Drawers - The simplest item storage in Minetest

User avatar
Desour
Member
Posts: 1469
Joined: Thu Jun 19, 2014 19:49
GitHub: Desour
IRC: Desour
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 Desour » Post

Is this something like the caches mod?
he/him; Codeberg; GitHub; ContentDB; public personal TODO list; "DS" is preferred (but often too short)

LNJ
Member
Posts: 252
Joined: Tue Sep 23, 2014 16:02
GitHub: lnjX
IRC: LNJ
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: 1709
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
✨🏳️‍🌈♣️✨

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

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

by texmex » Post

That is awesome, thanks LNJ! (Hey, you're back?)

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: 4780
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy
Contact:

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

LNJ
Member
Posts: 252
Joined: Tue Sep 23, 2014 16:02
GitHub: lnjX
IRC: LNJ
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: 7507
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?
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
Desour
Member
Posts: 1469
Joined: Thu Jun 19, 2014 19:49
GitHub: Desour
IRC: Desour
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 Desour » Post

Or you make a normalmap.

@azekill_DIABLO: Can't stop watching at you running. X3
he/him; Codeberg; GitHub; ContentDB; public personal TODO list; "DS" is preferred (but often too short)

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

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.

User avatar
azekill_DIABLO
Member
Posts: 7507
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
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
Desour
Member
Posts: 1469
Joined: Thu Jun 19, 2014 19:49
GitHub: Desour
IRC: Desour
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 Desour » 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?
he/him; Codeberg; GitHub; ContentDB; public personal TODO list; "DS" is preferred (but often too short)

LNJ
Member
Posts: 252
Joined: Tue Sep 23, 2014 16:02
GitHub: lnjX
IRC: LNJ
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
Desour
Member
Posts: 1469
Joined: Thu Jun 19, 2014 19:49
GitHub: Desour
IRC: Desour
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 Desour » 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. >_<
he/him; Codeberg; GitHub; ContentDB; public personal TODO list; "DS" is preferred (but often too short)

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

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

by burli » Post

Awesome.

LNJ
Member
Posts: 252
Joined: Tue Sep 23, 2014 16:02
GitHub: lnjX
IRC: LNJ
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: 252
Joined: Tue Sep 23, 2014 16:02
GitHub: lnjX
IRC: LNJ
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: 252
Joined: Tue Sep 23, 2014 16:02
GitHub: lnjX
IRC: LNJ
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: 1753
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: tacotexmex

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

LNJ
Member
Posts: 252
Joined: Tue Sep 23, 2014 16:02
GitHub: lnjX
IRC: LNJ
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: 252
Joined: Tue Sep 23, 2014 16:02
GitHub: lnjX
IRC: LNJ
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: 1753
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: tacotexmex

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. :)

LNJ
Member
Posts: 252
Joined: Tue Sep 23, 2014 16:02
GitHub: lnjX
IRC: LNJ
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: 252
Joined: Tue Sep 23, 2014 16:02
GitHub: lnjX
IRC: LNJ
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: No registered users and 14 guests