forked from MineClone5/MineClone5
Proper formspec for large chest
This commit is contained in:
parent
6a2bffb078
commit
361022ce46
Binary file not shown.
After Width: | Height: | Size: 4.1 KiB |
|
@ -1335,10 +1335,12 @@ minetest.register_node("default:chest", {
|
||||||
local p = get_chest_neighborpos(pos, param2, "right")
|
local p = get_chest_neighborpos(pos, param2, "right")
|
||||||
meta:set_string("formspec",
|
meta:set_string("formspec",
|
||||||
"size[9,11.5]"..
|
"size[9,11.5]"..
|
||||||
"list[nodemeta:"..p.x..","..p.y..","..p.z..";main;0,0;9,3;]"..
|
"background[-0.19,-0.25;9.41,12.5;crafting_inventory_chest_large.png]"..
|
||||||
"list[current_name;main;0,3;9,3;]"..
|
default.inventory_header..
|
||||||
"list[current_player;main;0,7;9,3;9]"..
|
"list[nodemeta:"..p.x..","..p.y..","..p.z..";main;0,0.5;9,3;]"..
|
||||||
"list[current_player;main;0,10.5;9,1;]"..
|
"list[current_name;main;0,3.5;9,3;]"..
|
||||||
|
"list[current_player;main;0,7.5;9,3;9]"..
|
||||||
|
"list[current_player;main;0,10.75;9,1;]"..
|
||||||
"listring[current_player;main]"..
|
"listring[current_player;main]"..
|
||||||
"listring[nodemeta:"..p.x..","..p.y..","..p.z..";main]"..
|
"listring[nodemeta:"..p.x..","..p.y..","..p.z..";main]"..
|
||||||
"listring[current_player;main]"..
|
"listring[current_player;main]"..
|
||||||
|
@ -1347,10 +1349,12 @@ minetest.register_node("default:chest", {
|
||||||
local m = minetest.get_meta(p)
|
local m = minetest.get_meta(p)
|
||||||
m:set_string("formspec",
|
m:set_string("formspec",
|
||||||
"size[9,11.5]"..
|
"size[9,11.5]"..
|
||||||
"list[current_name;main;0,0;9,3;]"..
|
"background[-0.19,-0.25;9.41,12.5;crafting_inventory_chest_large.png]"..
|
||||||
"list[nodemeta:"..pos.x..","..pos.y..","..pos.z..";main;0,3;9,3;]"..
|
default.inventory_header..
|
||||||
"list[current_player;main;0,7;9,3;9]"..
|
"list[current_name;main;0,0.5;9,3;]"..
|
||||||
"list[current_player;main;0,10.5;9,1;]"..
|
"list[nodemeta:"..pos.x..","..pos.y..","..pos.z..";main;0,3.5;9,3;]"..
|
||||||
|
"list[current_player;main;0,7.5;9,3;9]"..
|
||||||
|
"list[current_player;main;0,10.75;9,1;]"..
|
||||||
"listring[current_player;main]"..
|
"listring[current_player;main]"..
|
||||||
"listring[current_name;main]"..
|
"listring[current_name;main]"..
|
||||||
"listring[current_player;main]"..
|
"listring[current_player;main]"..
|
||||||
|
@ -1360,10 +1364,12 @@ minetest.register_node("default:chest", {
|
||||||
local p = get_chest_neighborpos(pos, param2, "left")
|
local p = get_chest_neighborpos(pos, param2, "left")
|
||||||
meta:set_string("formspec",
|
meta:set_string("formspec",
|
||||||
"size[9,11.5]"..
|
"size[9,11.5]"..
|
||||||
"list[current_name;main;0,0;9,3;]"..
|
"background[-0.19,-0.25;9.41,12.5;crafting_inventory_chest_large.png]"..
|
||||||
"list[nodemeta:"..p.x..","..p.y..","..p.z..";main;0,3;9,3;]"..
|
default.inventory_header..
|
||||||
"list[current_player;main;0,7;9,3;9]"..
|
"list[current_name;main;0,0.5;9,3;]"..
|
||||||
"list[current_player;main;0,10.5;9,1;]"..
|
"list[nodemeta:"..p.x..","..p.y..","..p.z..";main;0,3.5;9,3;]"..
|
||||||
|
"list[current_player;main;0,7.5;9,3;9]"..
|
||||||
|
"list[current_player;main;0,10.75;9,1;]"..
|
||||||
"listring[current_player;main]"..
|
"listring[current_player;main]"..
|
||||||
"listring[current_name;main]"..
|
"listring[current_name;main]"..
|
||||||
"listring[current_player;main]"..
|
"listring[current_player;main]"..
|
||||||
|
@ -1372,10 +1378,12 @@ minetest.register_node("default:chest", {
|
||||||
local m = minetest.get_meta(p)
|
local m = minetest.get_meta(p)
|
||||||
m:set_string("formspec",
|
m:set_string("formspec",
|
||||||
"size[9,11.5]"..
|
"size[9,11.5]"..
|
||||||
"list[nodemeta:"..pos.x..","..pos.y..","..pos.z..";main;0,0;9,3;]"..
|
"background[-0.19,-0.25;9.41,12.5;crafting_inventory_chest_large.png]"..
|
||||||
"list[current_name;main;0,3;9,3;]"..
|
default.inventory_header..
|
||||||
"list[current_player;main;0,7;9,3;9]"..
|
"list[nodemeta:"..pos.x..","..pos.y..","..pos.z..";main;0,0.5;9,3;]"..
|
||||||
"list[current_player;main;0,10.5;9,1;]"..
|
"list[current_name;main;0,3.5;9,3;]"..
|
||||||
|
"list[current_player;main;0,7.5;9,3;9]"..
|
||||||
|
"list[current_player;main;0,10.75;9,1;]"..
|
||||||
"listring[current_player;main]"..
|
"listring[current_player;main]"..
|
||||||
"listring[nodemeta:"..pos.x..","..pos.y..","..pos.z..";main]"..
|
"listring[nodemeta:"..pos.x..","..pos.y..","..pos.z..";main]"..
|
||||||
"listring[current_player;main]"..
|
"listring[current_player;main]"..
|
||||||
|
|
Loading…
Reference in New Issue