summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortenplus1 <kinsellaja@yahoo.com>2015-01-20 09:12:53 +0000
committertenplus1 <kinsellaja@yahoo.com>2015-01-20 09:12:53 +0000
commit852b60f135fab78f1ec1b98a11419ca49eda7698 (patch)
tree5a55ffb3a63ea575481d6763baac6269bb0fe889
parent2b3e048ff41e678519ffb00afd5a7a96f7e3ba2e (diff)
Updated to work with 0.4.11 dev
-rw-r--r--init.lua16
-rw-r--r--textures/door_brown.pngbin0 -> 127 bytes
-rw-r--r--textures/door_grey.pngbin0 -> 115 bytes
-rw-r--r--textures/door_steel.pngbin0 -> 132 bytes
-rw-r--r--textures/door_steel_a.pngbin0 -> 449 bytes
-rw-r--r--textures/door_steel_b.pngbin0 -> 461 bytes
-rw-r--r--textures/door_wood.pngbin0 -> 130 bytes
-rw-r--r--textures/door_wood_a.pngbin0 -> 555 bytes
-rw-r--r--textures/door_wood_b.pngbin0 -> 539 bytes
9 files changed, 15 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 4e32d5f..14a7d45 100644
--- a/init.lua
+++ b/init.lua
@@ -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,
diff --git a/textures/door_brown.png b/textures/door_brown.png
new file mode 100644
index 0000000..77f748d
--- /dev/null
+++ b/textures/door_brown.png
Binary files differ
diff --git a/textures/door_grey.png b/textures/door_grey.png
new file mode 100644
index 0000000..13665d2
--- /dev/null
+++ b/textures/door_grey.png
Binary files differ
diff --git a/textures/door_steel.png b/textures/door_steel.png
new file mode 100644
index 0000000..042a1bc
--- /dev/null
+++ b/textures/door_steel.png
Binary files differ
diff --git a/textures/door_steel_a.png b/textures/door_steel_a.png
new file mode 100644
index 0000000..515dafc
--- /dev/null
+++ b/textures/door_steel_a.png
Binary files differ
diff --git a/textures/door_steel_b.png b/textures/door_steel_b.png
new file mode 100644
index 0000000..c1b75a4
--- /dev/null
+++ b/textures/door_steel_b.png
Binary files differ
diff --git a/textures/door_wood.png b/textures/door_wood.png
new file mode 100644
index 0000000..d3a62ab
--- /dev/null
+++ b/textures/door_wood.png
Binary files differ
diff --git a/textures/door_wood_a.png b/textures/door_wood_a.png
new file mode 100644
index 0000000..0317b1f
--- /dev/null
+++ b/textures/door_wood_a.png
Binary files differ
diff --git a/textures/door_wood_b.png b/textures/door_wood_b.png
new file mode 100644
index 0000000..f016933
--- /dev/null
+++ b/textures/door_wood_b.png
Binary files differ