diff options
author | cheapie <no-email-for-you@example.com> | 2019-05-17 00:19:24 -0500 |
---|---|---|
committer | cheapie <no-email-for-you@example.com> | 2019-05-17 00:19:24 -0500 |
commit | fb3e3c0b34919481a2a2b010394c91c6069ed7cf (patch) | |
tree | c9efcb885509d1dbcff2dacd452bf3586308a62e | |
parent | 0f4f603e2e8c9aa3f8e736ff6c6cf78bb6f3f493 (diff) | |
download | elevatorparts-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.lua | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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}") |