Skip to content

Instantly share code, notes, and snippets.

@GreenXenith GreenXenith/nodes.lua Secret
Created Aug 1, 2017

Embed
What would you like to do?
def.on_construct
if def.on_construt == nil then
def.on_construct = function(pos)
local meta = minetest.get_meta(pos)
meta:set_string("infotext", "Chest")
local inv = meta:get_inventory()
inv:set_size("main", 9*6)
end
else
def.on_construct = d.on_construct
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.