From dc3e736f5ac3ec3412344ca6656a21a3944c2a42 Mon Sep 17 00:00:00 2001 From: CloudyProton <34248863+CloudyProton@users.noreply.github.com> Date: Thu, 7 Dec 2017 15:42:18 -0500 Subject: [PATCH 1/2] Add default sound & light propogation to shared locked doors --- shared_locked_xdoors2.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/shared_locked_xdoors2.lua b/shared_locked_xdoors2.lua index 1af36fc..f4c87ff 100644 --- a/shared_locked_xdoors2.lua +++ b/shared_locked_xdoors2.lua @@ -1,4 +1,4 @@ --- xDoors² mod by xyz +-- xDoors² mod by xyz -- modified by Sokomine to allow locked doors that can only be opened/closed/dig up by the player who placed them -- a little bit modified by addi to allow someone with the priv "opendoors" to open/close/dig all locked doors. -- Sokomine: modified again so that it uses the new locks-mod @@ -33,8 +33,10 @@ local xdoors2_transform = function(pos, node, puncher) local p2 = 0 if t == 2 then p2 = (node.param2 + 1) % 4 + minetest.sound_play("doors_door_open", { pos = pos, gain = 0.3, max_hear_distance = 10}) else p2 = (node.param2 + 3) % 4 + minetest.sound_play("doors_door_close", { pos = pos, gain = 0.3, max_hear_distance = 10}) end local olddata = locks:get_lockdata( pos ); @@ -137,6 +139,7 @@ minetest.register_node("locks:door", { inventory_image = 'locks_xdoors2_door.png', wield_image = 'xdoors2_door.png', stack_max = 1, + sunlight_propogates = true, on_place = function(itemstack, placer, pointed_thing) local above = pointed_thing.above From aaff43be1358ec8baf1a262eda2a4e04eff33670 Mon Sep 17 00:00:00 2001 From: CloudyProton <34248863+CloudyProton@users.noreply.github.com> Date: Thu, 7 Dec 2017 15:52:40 -0500 Subject: [PATCH 2/2] Realign fuel, source and fire in furnace formspec --- shared_locked_furnace.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/shared_locked_furnace.lua b/shared_locked_furnace.lua index 1543c7b..abce52c 100644 --- a/shared_locked_furnace.lua +++ b/shared_locked_furnace.lua @@ -86,10 +86,10 @@ end function locks.get_furnace_active_formspec(pos, percent) local formspec = "size[8,9]".. - "image[2,2;1,1;default_furnace_fire_bg.png^[lowpart:".. + "image[2,1.5;1,1;default_furnace_fire_bg.png^[lowpart:".. (100-percent)..":default_furnace_fire_fg.png]".. - "list[current_name;fuel;2,3;1,1;]".. - "list[current_name;src;2,1;1,1;]".. + "list[current_name;fuel;2,2.5;1,1;]".. + "list[current_name;src;2,0.5;1,1;]".. "list[current_name;dst;5,1;2,2;]".. "list[current_player;main;0,5;8,4;]".. "background[-0.5,-0.65;9,10.35;bg_shared_locked_furnace.jpg]".. @@ -101,9 +101,9 @@ end locks.furnace_inactive_formspec = "size[8,9]".. - "image[2,2;1,1;default_furnace_fire_bg.png]".. - "list[current_name;fuel;2,3;1,1;]".. - "list[current_name;src;2,1;1,1;]".. + "image[2,1.5;1,1;default_furnace_fire_bg.png]".. + "list[current_name;fuel;2,2.5;1,1;]".. + "list[current_name;src;2,0.5;1,1;]".. "list[current_name;dst;5,1;2,2;]".. "list[current_player;main;0,5;8,4;]".. "background[-0.5,-0.65;9,10.35;bg_shared_locked_furnace.jpg]"..