forked from mtcontrib/plantlife_modpack
		
	slow down the berry regrowth abm
This commit is contained in:
		| @@ -118,11 +118,12 @@ end | |||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
| -- regrow berries | -- regrow berries (uses a base abm instead of plants_lib because of the use of metadata). | ||||||
|  |  | ||||||
| minetest.register_abm({ | minetest.register_abm({ | ||||||
| 	nodenames = { "bushes:fruitless_bush" }, | 	nodenames = { "bushes:fruitless_bush" }, | ||||||
| 	interval = 20, | 	interval = 500, | ||||||
| 	chance = 2, | 	chance = 10, | ||||||
| 	action = function(pos, node, active_object_count, active_object_count_wider) | 	action = function(pos, node, active_object_count, active_object_count_wider) | ||||||
|  |  | ||||||
| 			local meta = minetest.env:get_meta( pos ); | 			local meta = minetest.env:get_meta( pos ); | ||||||
| @@ -133,9 +134,7 @@ minetest.register_abm({ | |||||||
|                 end |                 end | ||||||
| }) | }) | ||||||
|  |  | ||||||
|  | -- Define the basket and bush nodes | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
| for i, bush_name in ipairs(bushes_classic.bushes) do | for i, bush_name in ipairs(bushes_classic.bushes) do | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user