Chests

User avatar
Dan Duncombe
Member
 
Posts: 904
Joined: Thu May 09, 2013 21:11

Chests

by Dan Duncombe » Fri Jul 05, 2013 06:35

How would I turn a node into a chest, with a larger inventory than normal? The node name is nanotech:carbon_chest
Some Mods: Castles Prefab Camouflage
My Games: Nostalgia Realtest Revamped
Servers: See above games.
 

User avatar
kaeza
Member
 
Posts: 2141
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

by kaeza » Fri Jul 05, 2013 06:37

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.
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal | BTC: 1DFZAa5VtNG7Levux4oP6BuUzr1e83pJK2
 

User avatar
Evergreen
Member
 
Posts: 2131
Joined: Sun Jan 06, 2013 01:22
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen

by Evergreen » Fri Jul 05, 2013 09:23

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
"Help! I searched for a mod but I couldn't find it!"
http://krock-works.16mb.com/MTstuff/modSearch.php
 

User avatar
PilzAdam
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Fri Jul 05, 2013 11:27

Well, the chest is in nodes.lua, not in init.lua.
 

User avatar
Evergreen
Member
 
Posts: 2131
Joined: Sun Jan 06, 2013 01:22
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen

by Evergreen » Fri Jul 05, 2013 13:37

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
"Help! I searched for a mod but I couldn't find it!"
http://krock-works.16mb.com/MTstuff/modSearch.php
 

User avatar
Dan Duncombe
Member
 
Posts: 904
Joined: Thu May 09, 2013 21:11

by Dan Duncombe » Fri Jul 05, 2013 15:21

Doh! How could I have not realized that?! Thanks.
Some Mods: Castles Prefab Camouflage
My Games: Nostalgia Realtest Revamped
Servers: See above games.
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 11 guests

cron