Add flare gun.
This commit is contained in:
parent
357be42a0a
commit
193ad7e7ac
6 changed files with 118 additions and 1 deletions
13
abms.lua
13
abms.lua
|
@ -313,6 +313,19 @@ end)
|
|||
-- destruction
|
||||
------------------------------------------------------------
|
||||
|
||||
minetest.register_abm({
|
||||
nodenames = {"fun_caves:flare",},
|
||||
interval = 5,
|
||||
chance = 10,
|
||||
action = function(pos, node)
|
||||
if not (pos and node) then
|
||||
return
|
||||
end
|
||||
|
||||
minetest.remove_node(pos)
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_abm({
|
||||
nodenames = {"fun_caves:hot_cobble",},
|
||||
neighbors = {"group:water"},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue