summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2019-05-17 00:19:24 -0500
committercheapie <no-email-for-you@example.com>2019-05-17 00:19:24 -0500
commitfb3e3c0b34919481a2a2b010394c91c6069ed7cf (patch)
treec9efcb885509d1dbcff2dacd452bf3586308a62e
parent0f4f603e2e8c9aa3f8e736ff6c6cf78bb6f3f493 (diff)
downloadelevatorparts-fb3e3c0b34919481a2a2b010394c91c6069ed7cf.tar
elevatorparts-fb3e3c0b34919481a2a2b010394c91c6069ed7cf.tar.gz
elevatorparts-fb3e3c0b34919481a2a2b010394c91c6069ed7cf.tar.bz2
elevatorparts-fb3e3c0b34919481a2a2b010394c91c6069ed7cf.tar.xz
elevatorparts-fb3e3c0b34919481a2a2b010394c91c6069ed7cf.zip
Remove entity when digging PI
-rw-r--r--init.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 6cd1d57..a95f860 100644
--- a/init.lua
+++ b/init.lua
@@ -659,6 +659,7 @@ minetest.register_node("elevatorparts:pilantern_up_off",{
{-0.5, -0.5, 0.48, 0.5, 0.5, 0.5 },
},
},
+ on_destruct = removeEntity,
on_construct = function(pos)
local meta = minetest.get_meta(pos)
meta:set_string("formspec","field[channel;Channel;${channel}")
@@ -729,6 +730,7 @@ minetest.register_node("elevatorparts:pilantern_up_on",{
{-0.5, -0.5, 0.48, 0.5, 0.5, 0.5 },
},
},
+ on_destruct = removeEntity,
on_construct = function(pos)
local meta = minetest.get_meta(pos)
meta:set_string("formspec","field[channel;Channel;${channel}")
@@ -797,6 +799,7 @@ minetest.register_node("elevatorparts:pilantern_down_off",{
{-0.5, -0.5, 0.48, 0.5, 0.5, 0.5 },
},
},
+ on_destruct = removeEntity,
on_construct = function(pos)
local meta = minetest.get_meta(pos)
meta:set_string("formspec","field[channel;Channel;${channel}")
@@ -867,6 +870,7 @@ minetest.register_node("elevatorparts:pilantern_down_on",{
{-0.5, -0.5, 0.48, 0.5, 0.5, 0.5 },
},
},
+ on_destruct = removeEntity,
on_construct = function(pos)
local meta = minetest.get_meta(pos)
meta:set_string("formspec","field[channel;Channel;${channel}")
@@ -935,6 +939,7 @@ minetest.register_node("elevatorparts:pilantern_updown_off",{
{-0.5, -0.5, 0.48, 0.5, 0.5, 0.5 },
},
},
+ on_destruct = removeEntity,
on_construct = function(pos)
local meta = minetest.get_meta(pos)
meta:set_string("formspec","field[channel;Channel;${channel}")
@@ -1008,6 +1013,7 @@ minetest.register_node("elevatorparts:pilantern_updown_upon",{
{-0.5, -0.5, 0.48, 0.5, 0.5, 0.5 },
},
},
+ on_destruct = removeEntity,
on_construct = function(pos)
local meta = minetest.get_meta(pos)
meta:set_string("formspec","field[channel;Channel;${channel}")
@@ -1081,6 +1087,7 @@ minetest.register_node("elevatorparts:pilantern_updown_downon",{
{-0.5, -0.5, 0.48, 0.5, 0.5, 0.5 },
},
},
+ on_destruct = removeEntity,
on_construct = function(pos)
local meta = minetest.get_meta(pos)
meta:set_string("formspec","field[channel;Channel;${channel}")
@@ -1154,6 +1161,7 @@ minetest.register_node("elevatorparts:pilantern_updown_bothon",{
{-0.5, -0.5, 0.48, 0.5, 0.5, 0.5 },
},
},
+ on_destruct = removeEntity,
on_construct = function(pos)
local meta = minetest.get_meta(pos)
meta:set_string("formspec","field[channel;Channel;${channel}")