Skip to content

Instantly share code, notes, and snippets.

@GreenXenith
Created August 1, 2017 18:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GreenXenith/bf05afd3e15a3374827782b3c682ec8f to your computer and use it in GitHub Desktop.
Save GreenXenith/bf05afd3e15a3374827782b3c682ec8f to your computer and use it in GitHub Desktop.
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