Boom Morentir and Falling morentir updated

This commit is contained in:
NPXcoot 2016-11-07 20:22:25 +01:00
parent b6193efe67
commit 446dfaf006

View File

@ -205,11 +205,15 @@ minetest.register_abm({
minetest.register_abm({ minetest.register_abm({
nodenames = {"nssb:fall_morentir"}, nodenames = {"nssb:fall_morentir"},
neighbors = {"nssb:fall_morentir"}, neighbors = {"nssb:fall_morentir"},
interval = 10, interval = 1,
chance = 3, chance = 1,
action = action =
function(pos, node) function(pos, node)
nodeupdate(pos) for _,obj in ipairs(minetest.get_objects_inside_radius(pos, 7)) do
if obj:is_player() then
nodeupdate(pos)
end
end
end end
}) })
@ -217,13 +221,15 @@ minetest.register_abm({
minetest.register_abm({ minetest.register_abm({
nodenames = {"nssb:boum_morentir"}, nodenames = {"nssb:boum_morentir"},
neighbors = {"nssb:morentir"}, neighbors = {"nssb:morentir"},
interval = 5, interval = 1,
chance = 1, chance = 1,
action = action =
function(pos, node) function(pos, node)
--aggiungere la condizione se il giocatore è nel raggio di 10 blocchi... for _,obj in ipairs(minetest.get_objects_inside_radius(pos, 5)) do
--minetest.chat_send_all(pos_to_string(pos)) if obj:is_player() then
explosion(pos, 3, 0, 1) explosion(pos, 3, 0, 1)
end
end
end end
}) })