Updated to work with 0.4.11 dev

This commit is contained in:
tenplus1 2015-01-20 09:12:53 +00:00
parent 2b3e048ff4
commit 852b60f135
9 changed files with 15 additions and 1 deletions

View File

@ -547,6 +547,20 @@ minetest.register_craft({
}
})
local function get_locked_chest_formspec(pos)
local spos = pos.x .. "," .. pos.y .. "," ..pos.z
local formspec =
"size[8,9]"..
default.gui_bg..
default.gui_bg_img..
default.gui_slots..
"list[nodemeta:".. spos .. ";main;0,0.3;8,4;]"..
"list[current_player;main;0,4.85;8,1;]"..
"list[current_player;main;0,6.08;8,3;8]"..
default.get_hotbar_bg(0,4.85)
return formspec
end
-- Protected Chest
minetest.register_node("protector:chest", {
description = "Protected Chest",
@ -595,7 +609,7 @@ minetest.register_node("protector:chest", {
minetest.show_formspec(
clicker:get_player_name(),
"default:chest_locked",
default.get_locked_chest_formspec(pos)
get_locked_chest_formspec(pos)
)
end
end,

BIN
textures/door_brown.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 127 B

BIN
textures/door_grey.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 B

BIN
textures/door_steel.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 132 B

BIN
textures/door_steel_a.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 449 B

BIN
textures/door_steel_b.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 461 B

BIN
textures/door_wood.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 B

BIN
textures/door_wood_a.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 555 B

BIN
textures/door_wood_b.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 539 B