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

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

[Mod] [MTG/MCL2] Storage Drawers [0.2.2] [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, 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)
Last edited by LNJ on Sat Apr 01, 2017 20:45, edited 10 times in total.
My Minetest Modding Tutorials (German) | Minetest TNG - My survival subgame! (OUTDATED... :() | #ComeToTheDuckSide - we have privacy! | diaspora* - The free and decentralized alternative to facebook and twitter!
 

User avatar
DS-minetest
Member
 
Posts: 707
Joined: Thu Jun 19, 2014 19:49
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: 200
Joined: Tue Sep 23, 2014 16:02
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!
My Minetest Modding Tutorials (German) | Minetest TNG - My survival subgame! (OUTDATED... :() | #ComeToTheDuckSide - we have privacy! | diaspora* - The free and decentralized alternative to facebook and twitter!
 

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

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

by firefox » Fri Mar 31, 2017 13:29

looks like ikea

+1
 

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

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

by texmex » Fri Mar 31, 2017 13:34

That is awesome, thanks LNJ! (Hey, you're back?)
I spend all my days going down to the mines. Under the ground where the sun never shines. Breaking my back I put heat in your house. I’ve got the roar of a digtron, the breath of a mouse.
 

User avatar
LazerRay
Member
 
Posts: 146
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: 2161
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
I'm creating MineClone 2, a Minecraft clone for Minetest.
I made the Help modpack, adding in-game help to Minetest.
 

User avatar
LNJ
Member
 
Posts: 200
Joined: Tue Sep 23, 2014 16:02
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.
My Minetest Modding Tutorials (German) | Minetest TNG - My survival subgame! (OUTDATED... :() | #ComeToTheDuckSide - we have privacy! | diaspora* - The free and decentralized alternative to facebook and twitter!
 

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

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

by azekill_DIABLO » Sat Apr 01, 2017 13:53

nice! this looks very nice!
you should maybe use frames code to make blocks look 3d?
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 

User avatar
DS-minetest
Member
 
Posts: 707
Joined: Thu Jun 19, 2014 19:49
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: 226
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.
I spend all my days going down to the mines. Under the ground where the sun never shines. Breaking my back I put heat in your house. I’ve got the roar of a digtron, the breath of a mouse.
 

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

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

by azekill_DIABLO » Sat Apr 01, 2017 15:44

DS-minetest wrote: @azekill_DIABLO: Can't stop watching at you running. X3

i'm hypnotic no? XD
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 

User avatar
DS-minetest
Member
 
Posts: 707
Joined: Thu Jun 19, 2014 19:49
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: 200
Joined: Tue Sep 23, 2014 16:02
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.
My Minetest Modding Tutorials (German) | Minetest TNG - My survival subgame! (OUTDATED... :() | #ComeToTheDuckSide - we have privacy! | diaspora* - The free and decentralized alternative to facebook and twitter!
 

User avatar
DS-minetest
Member
 
Posts: 707
Joined: Thu Jun 19, 2014 19:49
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: 1313
Joined: Fri Apr 10, 2015 13:18

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

by burli » Sat Apr 01, 2017 18:01

Awesome.
 

User avatar
LNJ
Member
 
Posts: 200
Joined: Tue Sep 23, 2014 16:02
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.
My Minetest Modding Tutorials (German) | Minetest TNG - My survival subgame! (OUTDATED... :() | #ComeToTheDuckSide - we have privacy! | diaspora* - The free and decentralized alternative to facebook and twitter!
 

User avatar
LNJ
Member
 
Posts: 200
Joined: Tue Sep 23, 2014 16:02
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. :)
My Minetest Modding Tutorials (German) | Minetest TNG - My survival subgame! (OUTDATED... :() | #ComeToTheDuckSide - we have privacy! | diaspora* - The free and decentralized alternative to facebook and twitter!
 

User avatar
LNJ
Member
 
Posts: 200
Joined: Tue Sep 23, 2014 16:02
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.
My Minetest Modding Tutorials (German) | Minetest TNG - My survival subgame! (OUTDATED... :() | #ComeToTheDuckSide - we have privacy! | diaspora* - The free and decentralized alternative to facebook and twitter!
 

User avatar
texmex
Member
 
Posts: 226
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
I spend all my days going down to the mines. Under the ground where the sun never shines. Breaking my back I put heat in your house. I’ve got the roar of a digtron, the breath of a mouse.
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 8 guests

cron