From 905260c8db2d7d4844e3955fa38a79da233b3ab7 Mon Sep 17 00:00:00 2001 From: DS Date: Sat, 7 Oct 2017 00:44:49 +0200 Subject: Handle blasts (#356) --- mesecons_random/init.lua | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'mesecons_random/init.lua') 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, }) -- cgit v1.2.3