From 852b60f135fab78f1ec1b98a11419ca49eda7698 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Tue, 20 Jan 2015 09:12:53 +0000 Subject: [PATCH] Updated to work with 0.4.11 dev --- init.lua | 16 +++++++++++++++- textures/door_brown.png | Bin 0 -> 127 bytes textures/door_grey.png | Bin 0 -> 115 bytes textures/door_steel.png | Bin 0 -> 132 bytes textures/door_steel_a.png | Bin 0 -> 449 bytes textures/door_steel_b.png | Bin 0 -> 461 bytes textures/door_wood.png | Bin 0 -> 130 bytes textures/door_wood_a.png | Bin 0 -> 555 bytes textures/door_wood_b.png | Bin 0 -> 539 bytes 9 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 textures/door_brown.png create mode 100644 textures/door_grey.png create mode 100644 textures/door_steel.png create mode 100644 textures/door_steel_a.png create mode 100644 textures/door_steel_b.png create mode 100644 textures/door_wood.png create mode 100644 textures/door_wood_a.png create mode 100644 textures/door_wood_b.png 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 0000000000000000000000000000000000000000..77f748d8543c5f0da92f09e277d449a6507f2bb9 GIT binary patch literal 127 zcmeAS@N?(olHy`uVBq!ia0vp^j6f{F!3HF+&llYeq})7R978x}`kp+<+n^xedhmSo z0g3Dlg4G-TTlsJV9@dMS`}&2=x06@%Hj23Dx;hB0wO5K3N>jVzT;a2E?brQ>m#>ig c*mr^5u|aI<9C5>4Koc1}UHx3vIVCg!06s`7YybcN literal 0 HcmV?d00001 diff --git a/textures/door_grey.png b/textures/door_grey.png new file mode 100644 index 0000000000000000000000000000000000000000..13665d2060dd8f1e5a7bc37e8ee47689412898d0 GIT binary patch literal 115 zcmeAS@N?(olHy`uVBq!ia0vp^j6f{F!3HF+&llYeq^vw$978x}>K-u^I-tP8aPYB2 z?f&iCpUyFMV<|Ha6MeULZpSQsmsHVJ3`L(^H78(65=}0G2vKBth0FH; z_P1rdUPmbf02zKc|G?dGcSHnt2Lx52T1p93B?F8`BUBXt6%b9hJ6+ce;X+EUQfi5l$>bvH?d>%_KYuZuPA~lX{cBh$ zEEWsY%z8u*zFP!W$bGC45u8pZR8@(%PW~!#{pJxAbC$~`>h68N{JY34OM@b927Pb) zsE8uc(5t_G2&gI|(yLGdkH=%99Rwlczpbc)twk_pp?Sh_^w@EEg~Y6QYfVi3`BT-dBMy$ rpUcD63i_6)AJ8~JWC+=Vi@XPj)Y;y7p0Usod*U?441VMm`%jM#ShXZNr9$r1xZvh@h%CpU=bsXswM)43XFiz(gdiH6jiS_I>C5{heM_ z*yh*u3P8?Rwy}*QB7(S&1|Cl*B+*yqjNs|%2bm4qlPXA_dn237GF z3GxUY4EUBk2rOd_)~z*q=2y_Z711Cwh8pvHAc7?bkj-AgHYtsTG0_GS=`Iihg3J*p z0nl==Iy6}JIF@)O0s@f1u0vP?GLwk-Vz6>$4!<=6f>Dy^yVjDNHdhrLpsI#llSO8Z zGYcY+b%19iFqmW}$&q#W?4umXlth&~tVOzU40c6Q92x@ddmp33~S^MudPDAqs+mZzlvFKqUAKMv`nKghUA>?l<2| zw};)ViJO9fp{A$0r;3r+&mKA=2#yM*7*SP300#%$!Q80La0AD2rU$X_jsENq5h18h zLO@lR-Jgj#Zj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