parent
26c9150591
commit
a84f7935fa
21 changed files with 31 additions and 9 deletions
|
@ -1,3 +1,4 @@
|
|||
mcl_init
|
||||
mcl_core
|
||||
mcl_sounds
|
||||
mcl_end
|
||||
|
|
|
@ -170,6 +170,7 @@ minetest.register_node("mcl_chests:"..basename, {
|
|||
minetest.show_formspec(clicker:get_player_name(),
|
||||
"mcl_chests:"..formspec_basename.."_"..pos.x.."_"..pos.y.."_"..pos.z,
|
||||
"size[9,8.75]"..
|
||||
mcl_vars.inventory_header..
|
||||
"background[-0.19,-0.25;9.41,10.48;mcl_chests_inventory_chest.png]"..
|
||||
"image[0,-0.2;5,0.75;mcl_chests_fnt_chest.png]"..
|
||||
"list[nodemeta:"..pos.x..","..pos.y..","..pos.z..";main;0,0.5;9,3;]"..
|
||||
|
@ -292,6 +293,7 @@ minetest.register_node("mcl_chests:"..basename.."_left", {
|
|||
"mcl_chests:"..formspec_basename.."_"..pos.x.."_"..pos.y.."_"..pos.z,
|
||||
"size[9,11.5]"..
|
||||
"background[-0.19,-0.25;9.41,12.5;mcl_chests_inventory_chest_large.png]"..
|
||||
mcl_vars.inventory_header..
|
||||
"list[nodemeta:"..pos.x..","..pos.y..","..pos.z..";main;0,0.5;9,3;]"..
|
||||
"list[nodemeta:"..pos_other.x..","..pos_other.y..","..pos_other.z..";main;0,3.5;9,3;]"..
|
||||
"list[current_player;main;0,7.5;9,3;9]"..
|
||||
|
@ -413,6 +415,7 @@ minetest.register_node("mcl_chests:"..basename.."_right", {
|
|||
|
||||
"size[9,11.5]"..
|
||||
"background[-0.19,-0.25;9.41,12.5;mcl_chests_inventory_chest_large.png]"..
|
||||
mcl_vars.inventory_header..
|
||||
"list[nodemeta:"..pos_other.x..","..pos_other.y..","..pos_other.z..";main;0,0.5;9,3;]"..
|
||||
"list[nodemeta:"..pos.x..","..pos.y..","..pos.z..";main;0,3.5;9,3;]"..
|
||||
"list[current_player;main;0,7.5;9,3;9]"..
|
||||
|
@ -615,6 +618,7 @@ minetest.register_node("mcl_chests:ender_chest", {
|
|||
local meta = minetest.get_meta(pos)
|
||||
meta:set_string("formspec",
|
||||
"size[9,8.75]"..
|
||||
mcl_vars.inventory_header..
|
||||
"background[-0.19,-0.25;9.41,10.48;mcl_chests_inventory_chest.png]"..
|
||||
"image[0,-0.2;5,0.75;mcl_chests_fnt_ender_chest.png]"..
|
||||
"list[current_player;enderchest;0,0.5;9,3;]"..
|
||||
|
@ -709,6 +713,7 @@ for color, desc in pairs(boxtypes) do
|
|||
local meta = minetest.get_meta(pos)
|
||||
meta:set_string("formspec",
|
||||
"size[9,8.75]"..
|
||||
mcl_vars.inventory_header..
|
||||
"background[-0.19,-0.25;9.41,10.48;mcl_chests_inventory_chest.png]"..
|
||||
"image[0,-0.2;5,0.75;mcl_chests_fnt_shulker_box.png]"..
|
||||
"list[current_name;main;0,0.5;9,3;]"..
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue