mirror of
https://github.com/minetest-mods/technic.git
synced 2025-07-01 07:40:37 +02:00
Merge changes made in technic_game
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user