forked from nalc/nalc_game
		
	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:
		@@ -76,8 +76,8 @@ end
 | 
			
		||||
minetest.register_abm({
 | 
			
		||||
	nodenames = {"group:flora"},
 | 
			
		||||
	neighbors = {"default:dirt_with_grass", "default:desert_sand"},
 | 
			
		||||
	interval = 50,
 | 
			
		||||
	chance = 25,
 | 
			
		||||
	interval = 13,
 | 
			
		||||
	chance = 96,
 | 
			
		||||
	action = function(pos, node)
 | 
			
		||||
		pos.y = pos.y - 1
 | 
			
		||||
		local under = minetest.get_node(pos)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user