Suppress fires.

This commit is contained in:
Duane 2016-07-28 21:15:57 -05:00
parent df1e490a9e
commit 6119dba871

View file

@ -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,