Consolidate ABMs
Spread ABM intervals evenly across 1 to 16 seconds 16s ensures no nodes are missed when player walks past Adjust chance values to compensate, for identical action rates Combine lavacooling ABMs into one, return to chance = 1 Grass growth: add 'neighbors = "air"' to avoid processing the thousands of underground dirt nodes Grass death: Reduce action rate to that of grass growth Fire: Use chance = 1 for flame extinguishing and flame removal when mod is disabled
This commit is contained in:
parent
7903bc1342
commit
a075fcf2ff
2
init.lua
2
init.lua
@ -376,7 +376,7 @@ minetest.register_node("tnt:gunpowder_burning", {
|
|||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
nodenames = {"tnt:tnt", "tnt:gunpowder"},
|
nodenames = {"tnt:tnt", "tnt:gunpowder"},
|
||||||
neighbors = {"fire:basic_flame", "default:lava_source", "default:lava_flowing"},
|
neighbors = {"fire:basic_flame", "default:lava_source", "default:lava_flowing"},
|
||||||
interval = 1,
|
interval = 4,
|
||||||
chance = 1,
|
chance = 1,
|
||||||
action = burn,
|
action = burn,
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user