Page 1 of 1

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

PostPosted: Thu Mar 30, 2017 17:57
by LNJ

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, this mod also uses the original textures (they're MIT :)).

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 2x2 and 1x2 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.
See LICENSE.txt for details.

Download


Browse the code on GitHub.

Development Version (.zip)
Version 0.2.2 (.zip)
Version 0.1 (.zip)

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

PostPosted: Thu Mar 30, 2017 17:59
by DS-minetest
Is this something like the caches mod?

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

PostPosted: Thu Mar 30, 2017 18:19
by LNJ
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!

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

PostPosted: Fri Mar 31, 2017 13:29
by firefox
looks like ikea

+1

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

PostPosted: Fri Mar 31, 2017 13:34
by texmex
That is awesome, thanks LNJ! (Hey, you're back?)

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

PostPosted: Fri Mar 31, 2017 16:24
by LazerRay
Looks nice so far, as a suggestion add Pipeworks support to your to-do-list, since a lot of people use that mod.

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

PostPosted: Fri Mar 31, 2017 23:54
by Wuzzy
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

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

PostPosted: Sat Apr 01, 2017 12:47
by LNJ
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.

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

PostPosted: Sat Apr 01, 2017 13:53
by azekill_DIABLO
nice! this looks very nice!
you should maybe use frames code to make blocks look 3d?

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

PostPosted: Sat Apr 01, 2017 14:49
by DS-minetest
Or you make a normalmap.

@azekill_DIABLO: Can't stop watching at you running. X3

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

PostPosted: Sat Apr 01, 2017 15:05
by texmex
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.

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

PostPosted: Sat Apr 01, 2017 15:44
by azekill_DIABLO
DS-minetest wrote: @azekill_DIABLO: Can't stop watching at you running. X3

i'm hypnotic no? XD

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

PostPosted: Sat Apr 01, 2017 16:11
by DS-minetest
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?

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

PostPosted: Sat Apr 01, 2017 16:38
by LNJ
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.

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

PostPosted: Sat Apr 01, 2017 17:47
by DS-minetest
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. >_<

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

PostPosted: Sat Apr 01, 2017 18:01
by burli
Awesome.

[Update] Version 0.2

PostPosted: Sat Apr 01, 2017 19:24
by LNJ
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

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

PostPosted: Sat Apr 01, 2017 19:26
by LNJ
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. :)

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

PostPosted: Sat Apr 01, 2017 20:59
by LNJ
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.

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

PostPosted: Mon Apr 03, 2017 01:49
by texmex
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