Add formspec textures for chest, furnace and bones
parent
49a47057e3
commit
8126c8172f
|
@ -431,7 +431,11 @@ local furnace_inactive_formspec =
|
|||
"list[current_name;fuel;0.5,2;1,1;]"..
|
||||
"list[current_name;src;0.5,0;1,1;]"..
|
||||
"list[current_name;dst;2.5,0;2,2;]"..
|
||||
"list[current_player;main;0,3.5;5,1;]"
|
||||
"list[current_player;main;0,3.5;5,1;]"..
|
||||
|
||||
"background[-0.0625,-0.0625;5.125,4.625;base_furnace_formspec_background.png]"..
|
||||
"background[0,3.5;5,1;backpack_inventory.png]"..
|
||||
"background[0.5,0;4,3;base_furnace_formspec_inventory.png]"
|
||||
|
||||
minetest.register_node("base:furnace", {
|
||||
description = "Furnace",
|
||||
|
@ -707,7 +711,11 @@ minetest.register_abm({
|
|||
"list[current_name;fuel;0.5,2;1,1;]"..
|
||||
"list[current_name;src;0.5,0;1,1;]"..
|
||||
"list[current_name;dst;2.5,0;2,2;]"..
|
||||
"list[current_player;main;0,3.5;5,1;]"
|
||||
"list[current_player;main;0,3.5;5,1;]"..
|
||||
|
||||
"background[-0.0625,-0.0625;5.125,4.625;base_furnace_formspec_background.png]"..
|
||||
"background[0,3.5;5,1;backpack_inventory.png]"..
|
||||
"background[0.5,0;4,3;base_furnace_formspec_inventory.png]"
|
||||
)
|
||||
return
|
||||
end
|
||||
|
@ -763,7 +771,11 @@ minetest.register_node("base:chest", {
|
|||
meta:set_string("formspec",
|
||||
"size[8,5.5]"..
|
||||
"list[current_name;main;0,0;8,4;]"..
|
||||
"list[current_player;main;1.5,4.5;5,1;]"
|
||||
"list[current_player;main;1.5,4.5;5,1;]"..
|
||||
|
||||
"background[-0.0625,-0.0625;8.125,5.625;base_chest_formspec_background.png]"..
|
||||
"background[1.5,4.5;5,1;backpack_inventory.png]"..
|
||||
"background[0,0;8,4;base_chest_formspec_inventory.png]"
|
||||
)
|
||||
meta:set_string("infotext", "Chest")
|
||||
local inv = meta:get_inventory()
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 24 KiB |
Binary file not shown.
After Width: | Height: | Size: 302 B |
Binary file not shown.
After Width: | Height: | Size: 6.2 KiB |
Binary file not shown.
After Width: | Height: | Size: 275 B |
|
@ -76,8 +76,14 @@ minetest.register_on_dieplayer(function(player)
|
|||
inv:set_list("main", player_inv:get_list("main"))
|
||||
player_inv:set_list("main", empty_list)
|
||||
|
||||
meta:set_string("formspec", "size[5,2.5;]"..
|
||||
meta:set_string("formspec",
|
||||
"size[5,2.5;]"..
|
||||
"list[current_name;main;0,0;5,1;]"..
|
||||
"list[current_player;main;0,1.5;5,1;]")
|
||||
"list[current_player;main;0,1.5;5,1;]"..
|
||||
|
||||
"background[-0.0625,-0.0625;5.125,2.625;bones_formspec_background.png]"..
|
||||
"background[0,0;5,1;backpack_inventory.png]"..
|
||||
"background[0,1.5;5,1;backpack_inventory.png]"
|
||||
)
|
||||
meta:set_string("infotext", player:get_player_name().."'s bones")
|
||||
end)
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 5.0 KiB |
Loading…
Reference in New Issue