summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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}")