minetest chest vs minecraft chest

Posted:
Sat Oct 27, 2012 12:45
by sky
look at minecraft chest and look at minetest chest i want like in minecraft


Posted:
Sat Oct 27, 2012 13:02
by Shadowmang
I think he means that it's slightly smaller than a normal block

Posted:
Sat Oct 27, 2012 13:18
by sky
Shadowmang wrote:I think he means that it's slightly smaller than a normal block
Right it is good if you understand what i draw

Posted:
Sat Oct 27, 2012 13:50
by VanessaE
This is very easily done by making a mod with a custom replacement chest in it. Just copy the code from mods/default/init.lua for the chest, put a colon in front of the node name in the register_node() call, and change the draw type to use a nodebox instead of a regular cube. Give the nodebox dimensions of say:
{ -0.4375, -0.5, -0.4375, 0.4375, 0.3750, 0.4375 }
(That's -7/16, -8/16, -7/16, +7/16, +6/16, +7/16, making the object appear to be 2 pixels smaller in all directions if measured using 16px textures)

Posted:
Sat Oct 27, 2012 13:50
by PilzAdam
I dont like the smaller Minecraft chests. A chest is a normal block and should have the same size.

Posted:
Sun Oct 28, 2012 00:24
by GloopMaster
Personally, the smaller chests are only making it easier to tell a big chest from a normal one; which, since minetest doesnt have big chests (as per MC definition), we dont need to be smaller.
Also, your drawing is a lot better than any thing i could have drawn x.x

Posted:
Sun Oct 28, 2012 05:06
by sky
VanessaE wrote:This is very easily done by making a mod with a custom replacement chest in it. Just copy the code from mods/default/init.lua for the chest, put a colon in front of the node name in the register_node() call, and change the draw type to use a nodebox instead of a regular cube. Give the nodebox dimensions of say:
{ -0.4375, -0.5, -0.4375, 0.4375, 0.3750, 0.4375 }
(That's -7/16, -8/16, -7/16, +7/16, +6/16, +7/16, making the object appear to be 2 pixels smaller in all directions if measured using 16px textures)
VanessaE can you show me step by step how to make it because i dont understend so can you help me???

Posted:
Sun Oct 28, 2012 06:46
by Jeija
I dont like the smaller Minecraft chests. A chest is a normal block and should have the same size.
+1
I coded it anyway, so that you can see what it looks like.
Download the mod
hereYou may also need to scale down the texture for 4 pixels.
Nodebox credits go to VanessaE.
One more thing: Learn using the minetest api, api.minetest.net