forked from mtcontrib/locks
Merge branch 'master' of https://github.com/Sokomine/locks
This commit is contained in:
commit
e8aabfd6ea
@ -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]"..
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user