From 318f3815d372ed680cab4c45aec7eca8b54a4116 Mon Sep 17 00:00:00 2001 From: Auke Kok Date: Mon, 13 Apr 2015 21:01:45 -0700 Subject: Interval/chance update. - Globally use the same across all veggies - use a shorter ABM, with lower chance I don't like the fact that if you have 100 plants, then half of them will ALL change phase every 90 seconds. It's just very unnatural. By changing the rate/chance proportionally, plants still grow about as fast (~1200secs for 90% growth rate to 5 phases), but there will be less abrupt changes and no massive block updates, just small amounts at a time. Yes, more ABM's will fire, but that's unlikely a load that it won't be able to handle. --- init.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'init.lua') diff --git a/init.lua b/init.lua index bd749bc..38c098f 100644 --- a/init.lua +++ b/init.lua @@ -10,6 +10,9 @@ of the license, or (at your option) any later version. --]] +local crops_interval = 30 +local crops_chance = 8 + dofile(minetest.get_modpath(minetest.get_current_modname()) .. "/melon.lua") dofile(minetest.get_modpath(minetest.get_current_modname()) .. "/corn.lua") dofile(minetest.get_modpath(minetest.get_current_modname()) .. "/tomato.lua") -- cgit v1.2.3