Boom Morentir and Falling morentir updated
This commit is contained in:
parent
b6193efe67
commit
446dfaf006
16
mapgen.lua
16
mapgen.lua
@ -205,26 +205,32 @@ 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)
|
||||||
|
for _,obj in ipairs(minetest.get_objects_inside_radius(pos, 7)) do
|
||||||
|
if obj:is_player() then
|
||||||
nodeupdate(pos)
|
nodeupdate(pos)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
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
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user