summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>2016-08-26 13:00:00 +0200
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>2016-08-26 13:00:00 +0200
commit2cc44e36a4bfe733913c8e201caf55dfcabcc2fe (patch)
tree69329f551933b3528898200db2fca5b68fa95d47
parent7e8d56cae9ce0ff37cff22f5625a683a61190cb6 (diff)
Now automatically removes bones from elevator shaft
-rw-r--r--init.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/init.lua b/init.lua
index f15094c..fc6920f 100644
--- a/init.lua
+++ b/init.lua
@@ -52,7 +52,7 @@ local function fetch_lift(pos, node, clicker, rel, i, open_door, plus)
else
if wnode.name == "lifter:lift" then
local name = minetest.get_node({x=pos.x+1, y=pos.y+rel, z=pos.z}).name
- if name == "air" or name == "ignore" then
+ if name == "air" or name == "ignore" or name == "bones:bones" then
minetest.remove_node({x=pos.x+1, y=pos.y+i, z=pos.z})
minetest.add_node({x=pos.x+1, y=pos.y+rel, z=pos.z}, {name="lifter:lift"})
else
@@ -61,7 +61,7 @@ local function fetch_lift(pos, node, clicker, rel, i, open_door, plus)
end
if snode.name == "lifter:lift" then
local name = minetest.get_node({x=pos.x-1, y=pos.y+rel, z=pos.z}).name
- if name == "air" or name == "ignore" then
+ if name == "air" or name == "ignore" or name == "bones:bones" then
minetest.remove_node({x=pos.x-1, y=pos.y+i, z=pos.z})
minetest.add_node({x=pos.x-1, y=pos.y+rel, z=pos.z}, {name="lifter:lift"})
else
@@ -70,7 +70,7 @@ local function fetch_lift(pos, node, clicker, rel, i, open_door, plus)
end
if anode.name == "lifter:lift" then
local name = minetest.get_node({x=pos.x, y=pos.y+rel, z=pos.z+1}).name
- if name == "air" or name == "ignore" then
+ if name == "air" or name == "ignore" or name == "bones:bones" then
minetest.remove_node({x=pos.x, y=pos.y+i, z=pos.z+1})
minetest.add_node({x=pos.x, y=pos.y+rel, z=pos.z+1}, {name="lifter:lift"})
else
@@ -79,7 +79,7 @@ local function fetch_lift(pos, node, clicker, rel, i, open_door, plus)
end
if dnode.name == "lifter:lift" then
local name = minetest.get_node({x=pos.x, y=pos.y+rel, z=pos.z-1}).name
- if name == "air" or name == "ignore" then
+ if name == "air" or name == "ignore" or name == "bones:bones" then
minetest.remove_node({x=pos.x, y=pos.y+i, z=pos.z-1})
minetest.add_node({x=pos.x, y=pos.y+rel, z=pos.z-1}, {name="lifter:lift"})
else