-
-
Save GreenXenith/bf05afd3e15a3374827782b3c682ec8f to your computer and use it in GitHub Desktop.
def.on_construct
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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