forked from minetest/minetest_game
Slow down fire spread a bit
This commit is contained in:
parent
820a97e397
commit
525f467057
|
@ -106,7 +106,7 @@ end
|
||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
nodenames = {"group:flammable"},
|
nodenames = {"group:flammable"},
|
||||||
neighbors = {"group:igniter"},
|
neighbors = {"group:igniter"},
|
||||||
interval = 1,
|
interval = 5,
|
||||||
chance = 2,
|
chance = 2,
|
||||||
action = function(p0, node, _, _)
|
action = function(p0, node, _, _)
|
||||||
-- If there is water or stuff like that around flame, don't ignite
|
-- If there is water or stuff like that around flame, don't ignite
|
||||||
|
@ -124,7 +124,7 @@ minetest.register_abm({
|
||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
nodenames = {"group:igniter"},
|
nodenames = {"group:igniter"},
|
||||||
neighbors = {"air"},
|
neighbors = {"air"},
|
||||||
interval = 2,
|
interval = 5,
|
||||||
chance = 10,
|
chance = 10,
|
||||||
action = function(p0, node, _, _)
|
action = function(p0, node, _, _)
|
||||||
local reg = minetest.registered_nodes[node.name]
|
local reg = minetest.registered_nodes[node.name]
|
||||||
|
@ -149,7 +149,7 @@ minetest.register_abm({
|
||||||
-- Remove flammable nodes and flame
|
-- Remove flammable nodes and flame
|
||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
nodenames = {"fire:basic_flame"},
|
nodenames = {"fire:basic_flame"},
|
||||||
interval = 1,
|
interval = 3,
|
||||||
chance = 2,
|
chance = 2,
|
||||||
action = function(p0, node, _, _)
|
action = function(p0, node, _, _)
|
||||||
-- If there is water or stuff like that around flame, remove flame
|
-- If there is water or stuff like that around flame, remove flame
|
||||||
|
|
Loading…
Reference in New Issue
Block a user