Suppress fires.
This commit is contained in:
parent
df1e490a9e
commit
6119dba871
1 changed files with 23 additions and 0 deletions
23
abms.lua
23
abms.lua
|
@ -412,10 +412,33 @@ minetest.register_abm({
|
|||
end
|
||||
})
|
||||
|
||||
minetest.register_abm({
|
||||
nodenames = {"fire:basic_flame"},
|
||||
interval = 10 * time_factor,
|
||||
chance = 10,
|
||||
action = function(p0, node, _, _)
|
||||
minetest.remove_node(p0)
|
||||
end,
|
||||
})
|
||||
|
||||
------------------------------------------------------------
|
||||
-- creation
|
||||
------------------------------------------------------------
|
||||
|
||||
minetest.register_abm({
|
||||
nodenames = {"fun_caves:tree"},
|
||||
neighbors = {'fire:basic_flame'},
|
||||
interval = 1 * time_factor,
|
||||
chance = 20,
|
||||
action = function(pos, node)
|
||||
if not (pos and node) then
|
||||
return
|
||||
end
|
||||
|
||||
minetest.set_node(pos, {name = 'fun_caves:sap'})
|
||||
end
|
||||
})
|
||||
|
||||
minetest.register_abm({
|
||||
nodenames = {"default:leaves"},
|
||||
interval = 10 * time_factor,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue