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

User avatar
LNJ
Member
 
Posts: 245
Joined: Tue Sep 23, 2014 16:02
Location: Germany
GitHub: LNJ2
IRC: LNJ2GO
In-game: LNJ

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

by LNJ » Thu Mar 30, 2017 17:57

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

+ More
+ Crafting recipes


To-Do List


  • Add a drawer controller for auto-sorting items into a drawer-network
  • 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
  • Make drawers upgradable

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) (May has BUGS!)
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
  • German
  • Malay
  • Polish
  • Spanish
  • Turkish

Other Links:
Last edited by LNJ on Mon Aug 14, 2017 18:34, edited 34 times in total.
Storage Drawers - The simplest item storage method in Minetest | My Minetest Modding Tutorials (German) | #ComeToTheDuckSide - we have privacy! | diaspora* - The free and decentralized alternative to facebook and twitter!
Please inform me of all grammar / spelling issues in my posts! - I want to improve my English skills. :)
 

User avatar
DS-minetest
Member
 
Posts: 983
Joined: Thu Jun 19, 2014 19:49
Location: in front of my pc (which is at home)
GitHub: DS-Minetest
In-game: DS

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

by DS-minetest » Thu Mar 30, 2017 17:59

Is this something like the caches mod?
Do not call me -minetest.
Call me DS or DS-minetest.
I am German, so you don't have to pm me English if you are also German.
The background is a lie.
 

User avatar
LNJ
Member
 
Posts: 245
Joined: Tue Sep 23, 2014 16:02
Location: Germany
GitHub: LNJ2
IRC: LNJ2GO
In-game: LNJ

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

by LNJ » Thu Mar 30, 2017 18:19

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 method in Minetest | My Minetest Modding Tutorials (German) | #ComeToTheDuckSide - we have privacy! | diaspora* - The free and decentralized alternative to facebook and twitter!
Please inform me of all grammar / spelling issues in my posts! - I want to improve my English skills. :)
 

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

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

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 » Fri Mar 31, 2017 16:24

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: 3166
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 » Fri Mar 31, 2017 23:54

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 projects: MineClone 2. Hades Revisited. Help modpack. A ton of other mods, see here.
 

User avatar
LNJ
Member
 
Posts: 245
Joined: Tue Sep 23, 2014 16:02
Location: Germany
GitHub: LNJ2
IRC: LNJ2GO
In-game: LNJ

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

by LNJ » Sat Apr 01, 2017 12:47

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 method in Minetest | My Minetest Modding Tutorials (German) | #ComeToTheDuckSide - we have privacy! | diaspora* - The free and decentralized alternative to facebook and twitter!
Please inform me of all grammar / spelling issues in my posts! - I want to improve my English skills. :)
 

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

User avatar
DS-minetest
Member
 
Posts: 983
Joined: Thu Jun 19, 2014 19:49
Location: in front of my pc (which is at home)
GitHub: DS-Minetest
In-game: DS

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

by DS-minetest » Sat Apr 01, 2017 14:49

Or you make a normalmap.

@azekill_DIABLO: Can't stop watching at you running. X3
Do not call me -minetest.
Call me DS or DS-minetest.
I am German, so you don't have to pm me English if you are also German.
The background is a lie.
 

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

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

by texmex » Sat Apr 01, 2017 15:05

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: 7425
Joined: Wed Oct 29, 2014 20:05
Location: OMICRON
GitHub: azekillDIABLO
In-game: azekill_DIABLO
 

User avatar
DS-minetest
Member
 
Posts: 983
Joined: Thu Jun 19, 2014 19:49
Location: in front of my pc (which is at home)
GitHub: DS-Minetest
In-game: DS

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

by DS-minetest » Sat Apr 01, 2017 16:11

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?
Do not call me -minetest.
Call me DS or DS-minetest.
I am German, so you don't have to pm me English if you are also German.
The background is a lie.
 

User avatar
LNJ
Member
 
Posts: 245
Joined: Tue Sep 23, 2014 16:02
Location: Germany
GitHub: LNJ2
IRC: LNJ2GO
In-game: LNJ

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

by LNJ » Sat Apr 01, 2017 16:38

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 method in Minetest | My Minetest Modding Tutorials (German) | #ComeToTheDuckSide - we have privacy! | diaspora* - The free and decentralized alternative to facebook and twitter!
Please inform me of all grammar / spelling issues in my posts! - I want to improve my English skills. :)
 

User avatar
DS-minetest
Member
 
Posts: 983
Joined: Thu Jun 19, 2014 19:49
Location: in front of my pc (which is at home)
GitHub: DS-Minetest
In-game: DS

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

by DS-minetest » Sat Apr 01, 2017 17:47

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. >_<
Do not call me -minetest.
Call me DS or DS-minetest.
I am German, so you don't have to pm me English if you are also German.
The background is a lie.
 

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

User avatar
LNJ
Member
 
Posts: 245
Joined: Tue Sep 23, 2014 16:02
Location: Germany
GitHub: LNJ2
IRC: LNJ2GO
In-game: LNJ

[Update] Version 0.2

by LNJ » Sat Apr 01, 2017 19:24

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 method in Minetest | My Minetest Modding Tutorials (German) | #ComeToTheDuckSide - we have privacy! | diaspora* - The free and decentralized alternative to facebook and twitter!
Please inform me of all grammar / spelling issues in my posts! - I want to improve my English skills. :)
 

User avatar
LNJ
Member
 
Posts: 245
Joined: Tue Sep 23, 2014 16:02
Location: Germany
GitHub: LNJ2
IRC: LNJ2GO
In-game: LNJ

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

by LNJ » Sat Apr 01, 2017 19:26

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 method in Minetest | My Minetest Modding Tutorials (German) | #ComeToTheDuckSide - we have privacy! | diaspora* - The free and decentralized alternative to facebook and twitter!
Please inform me of all grammar / spelling issues in my posts! - I want to improve my English skills. :)
 

User avatar
LNJ
Member
 
Posts: 245
Joined: Tue Sep 23, 2014 16:02
Location: Germany
GitHub: LNJ2
IRC: LNJ2GO
In-game: LNJ

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

by LNJ » Sat Apr 01, 2017 20:59

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 method in Minetest | My Minetest Modding Tutorials (German) | #ComeToTheDuckSide - we have privacy! | diaspora* - The free and decentralized alternative to facebook and twitter!
Please inform me of all grammar / spelling issues in my posts! - I want to improve my English skills. :)
 

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

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

by texmex » Mon Apr 03, 2017 01:49

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
 

User avatar
LNJ
Member
 
Posts: 245
Joined: Tue Sep 23, 2014 16:02
Location: Germany
GitHub: LNJ2
IRC: LNJ2GO
In-game: LNJ

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

by LNJ » Mon Apr 03, 2017 10:51

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 method in Minetest | My Minetest Modding Tutorials (German) | #ComeToTheDuckSide - we have privacy! | diaspora* - The free and decentralized alternative to facebook and twitter!
Please inform me of all grammar / spelling issues in my posts! - I want to improve my English skills. :)
 

User avatar
LNJ
Member
 
Posts: 245
Joined: Tue Sep 23, 2014 16:02
Location: Germany
GitHub: LNJ2
IRC: LNJ2GO
In-game: LNJ

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

by LNJ » Mon Apr 03, 2017 11:11

Update v0.2.3:
  • Used groups for crafting
  • Added link to forum post in README
Storage Drawers - The simplest item storage method in Minetest | My Minetest Modding Tutorials (German) | #ComeToTheDuckSide - we have privacy! | diaspora* - The free and decentralized alternative to facebook and twitter!
Please inform me of all grammar / spelling issues in my posts! - I want to improve my English skills. :)
 

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

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

by texmex » Mon Apr 03, 2017 12:21

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

User avatar
LNJ
Member
 
Posts: 245
Joined: Tue Sep 23, 2014 16:02
Location: Germany
GitHub: LNJ2
IRC: LNJ2GO
In-game: LNJ

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

by LNJ » Mon Apr 03, 2017 21:43

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 method in Minetest | My Minetest Modding Tutorials (German) | #ComeToTheDuckSide - we have privacy! | diaspora* - The free and decentralized alternative to facebook and twitter!
Please inform me of all grammar / spelling issues in my posts! - I want to improve my English skills. :)
 

User avatar
LNJ
Member
 
Posts: 245
Joined: Tue Sep 23, 2014 16:02
Location: Germany
GitHub: LNJ2
IRC: LNJ2GO
In-game: LNJ

[Update] Version 0.3

by LNJ » Wed Apr 05, 2017 14:23

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 method in Minetest | My Minetest Modding Tutorials (German) | #ComeToTheDuckSide - we have privacy! | diaspora* - The free and decentralized alternative to facebook and twitter!
Please inform me of all grammar / spelling issues in my posts! - I want to improve my English skills. :)
 

Next

Return to Mod Releases



Who is online

Users browsing this forum: Google [Bot] and 6 guests