Page 1 of 1

Chests

PostPosted: Fri Jul 05, 2013 06:35
by Dan Duncombe
How would I turn a node into a chest, with a larger inventory than normal? The node name is nanotech:carbon_chest

PostPosted: Fri Jul 05, 2013 06:37
by kaeza
Dan Duncombe wrote:How would I turn a node into a chest, with a larger inventory than normal? The node name is nanotech:carbon_chest

Copy the code from minetest_game/mods/default/init.lua, and adapt as needed.

PostPosted: Fri Jul 05, 2013 09:23
by Evergreen
kaeza wrote:
Dan Duncombe wrote:How would I turn a node into a chest, with a larger inventory than normal? The node name is nanotech:carbon_chest

Copy the code from minetest_game/mods/default/init.lua, and adapt as needed.
Ah yes, the default node init.lua is probably the best documentation that I have used to date. :P

PostPosted: Fri Jul 05, 2013 11:27
by PilzAdam
Well, the chest is in nodes.lua, not in init.lua.

PostPosted: Fri Jul 05, 2013 13:37
by Evergreen
PilzAdam wrote:Well, the chest is in nodes.lua, not in init.lua.
By that, I mean any of the default minetest_game code. :P

PostPosted: Fri Jul 05, 2013 15:21
by Dan Duncombe
Doh! How could I have not realized that?! Thanks.