diff options
Diffstat (limited to 'technic_chests/iron_chest.lua')
-rw-r--r-- | technic_chests/iron_chest.lua | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/technic_chests/iron_chest.lua b/technic_chests/iron_chest.lua index 3b71dfd..62a8ae3 100644 --- a/technic_chests/iron_chest.lua +++ b/technic_chests/iron_chest.lua @@ -46,9 +46,13 @@ minetest.register_node(":technic:iron_chest", { on_construct = function(pos) local meta = minetest.env:get_meta(pos) meta:set_string("formspec", - "invsize[9,9;]".. - "list[current_name;main;0,0;9,4;]".. - "list[current_player;main;0,5;8,4;]") + "invsize[9,10;]".. + "label[0,0;Iron Chest]".. + "list[current_name;main;0,1;9,4;]".. + "list[current_player;main;0,6;8,4;]".. + "background[-0.19,-0.25;9.4,10.75;ui_form_bg.png]".. + "background[0,1;9,4;ui_iron_chest_inventory.png]".. + "background[0,6;8,4;ui_main_inventory.png]") meta:set_string("infotext", "Iron Chest") local inv = meta:get_inventory() inv:set_size("main", 9*4) @@ -72,14 +76,18 @@ minetest.register_node(":technic:iron_locked_chest", { local meta = minetest.env:get_meta(pos) meta:set_string("owner", placer:get_player_name() or "") meta:set_string("infotext", "Locked Iron Chest (owned by ".. - meta:get_string("owner")..")") + meta:get_string("owner")..")") end, on_construct = function(pos) local meta = minetest.env:get_meta(pos) meta:set_string("formspec", - "invsize[9,9;]".. - "list[current_name;main;0,0;9,4;]".. - "list[current_player;main;0,5;8,4;]") + "invsize[9,10;]".. + "label[0,0;Iron Locked Chest]".. + "list[current_name;main;0,1;9,4;]".. + "list[current_player;main;0,6;8,4;]".. + "background[-0.19,-0.25;9.4,10.75;ui_form_bg.png]".. + "background[0,1;9,4;ui_iron_chest_inventory.png]".. + "background[0,6;8,4;ui_main_inventory.png]") meta:set_string("infotext", "Iron Locked Chest") meta:set_string("owner", "") local inv = meta:get_inventory() |