diff options
author | DS <vorunbekannt75@web.de> | 2017-10-07 00:44:49 +0200 |
---|---|---|
committer | Vitaliy <silverunicorn2011@yandex.ru> | 2017-10-07 01:44:49 +0300 |
commit | 905260c8db2d7d4844e3955fa38a79da233b3ab7 (patch) | |
tree | 046f23d139d256acb59efaedc3c99b2cf5b9cb4d /mesecons_random/init.lua | |
parent | 8999597df2d4d5b5aa2011eb9880dfc758201a5a (diff) |
Handle blasts (#356)
Diffstat (limited to 'mesecons_random/init.lua')
-rw-r--r-- | mesecons_random/init.lua | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/mesecons_random/init.lua b/mesecons_random/init.lua index 326362e..397a995 100644 --- a/mesecons_random/init.lua +++ b/mesecons_random/init.lua @@ -12,7 +12,8 @@ minetest.register_node("mesecons_random:removestone", { mesecon.on_dignode(pos, node) minetest.check_for_falling(vector.add(pos, vector.new(0, 1, 0))) end - }} + }}, + on_blast = mesecon.on_blastnode, }) minetest.register_craft({ @@ -37,7 +38,8 @@ minetest.register_node("mesecons_random:ghoststone", { state = mesecon.state.off, rules = mesecon.rules.alldirs, onstate = "mesecons_random:ghoststone_active" - }} + }}, + on_blast = mesecon.on_blastnode, }) minetest.register_node("mesecons_random:ghoststone_active", { @@ -59,7 +61,8 @@ minetest.register_node("mesecons_random:ghoststone_active", { if (minetest.get_node(shadowpos).name == "air") then minetest.dig_node(shadowpos) end - end + end, + on_blast = mesecon.on_blastnode, }) |