diff options
-rw-r--r-- | dirt.lua | 2 | ||||
-rw-r--r-- | flowers.lua | 1 | ||||
-rw-r--r-- | mushroom.lua | 1 | ||||
-rw-r--r-- | onion.lua | 1 | ||||
-rw-r--r-- | papyrus.lua | 1 | ||||
-rw-r--r-- | sapling.lua | 1 | ||||
-rw-r--r-- | sealife.lua | 2 | ||||
-rw-r--r-- | strawberry.lua | 1 | ||||
-rw-r--r-- | water.lua | 5 |
9 files changed, 14 insertions, 1 deletions
@@ -68,6 +68,7 @@ minetest.register_abm({ nodenames = {"default:dirt_with_grass"}, interval = 5, chance = 2, + catch_up = false, action = function(pos, node) local count_grasses = {} local curr_max = 0 @@ -98,6 +99,7 @@ minetest.register_abm({ nodenames = {"group:ethereal_grass"}, interval = 2, chance = 20, + catch_up = false, action = function(pos, node) local name = minetest.get_node({x = pos.x, y =pos.y + 1, z = pos.z}).name local nodedef = minetest.registered_nodes[name] diff --git a/flowers.lua b/flowers.lua index 15fbf9c..36da2e1 100644 --- a/flowers.lua +++ b/flowers.lua @@ -4,6 +4,7 @@ minetest.register_abm({ neighbors = {"group:soil"}, interval = 50, chance = 25, + catch_up = false, action = function(pos, node) local light = minetest.get_node_light(pos) diff --git a/mushroom.lua b/mushroom.lua index 2b4703b..b90e40b 100644 --- a/mushroom.lua +++ b/mushroom.lua @@ -104,6 +104,7 @@ minetest.register_abm({ nodenames = {"flowers:mushroom_spores_brown", "flowers:mushroom_spores_red"},
interval = 11,
chance = 50,
+ catch_up = false,
action = function(pos, node)
local node_under = minetest.get_node_or_nil({x = pos.x,
y = pos.y - 1, z = pos.z})
@@ -69,6 +69,7 @@ minetest.register_abm({ neighbors = {"farming:soil_wet"},
interval = 50,
chance = 3,
+ catch_up = false,
action = function(pos, node)
-- return if already full grown
diff --git a/papyrus.lua b/papyrus.lua index 8fb2232..d689ed9 100644 --- a/papyrus.lua +++ b/papyrus.lua @@ -7,6 +7,7 @@ minetest.register_abm({ neighbors = {"group:soil"}, interval = 50, chance = 20, + catch_up = false, action = function(pos, node) local oripos = pos.y diff --git a/sapling.lua b/sapling.lua index ee4ca13..16c30d8 100644 --- a/sapling.lua +++ b/sapling.lua @@ -122,6 +122,7 @@ minetest.register_abm({ nodenames = {"group:ethereal_sapling"}, interval = 10, chance = 50, + catch_up = false, action = function(pos, node) ethereal.grow_sapling(pos, node) end, diff --git a/sealife.lua b/sealife.lua index 7e24657..5db6bdc 100644 --- a/sealife.lua +++ b/sealife.lua @@ -144,7 +144,7 @@ minetest.register_abm({ neighbors = {"group:water"}, interval = 15, chance = 10, - + catch_up = false, action = function(pos, node) local sel = math.random(1,5) diff --git a/strawberry.lua b/strawberry.lua index ca49788..332be4b 100644 --- a/strawberry.lua +++ b/strawberry.lua @@ -197,6 +197,7 @@ minetest.register_abm({ neighbors = {"farming:soil_wet"}, interval = 50, chance = 3, + catch_up = false, action = function(pos, node) -- return if already full grown if minetest.get_item_group(node.name, "strawberry") == 8 then @@ -45,6 +45,7 @@ minetest.register_abm({ neighbors={"group:water"}, interval = 30, chance = 10, + catch_up = false, action = function(pos, node) minetest.set_node(pos, {name = "default:mossycobble"}) end @@ -59,6 +60,7 @@ minetest.register_abm({ neighbors = {"default:water_source", "default:river_water_source"}, interval = 15, chance = 2, + catch_up = false, action = function(pos, node) local water = minetest.find_nodes_in_area( {x = pos.x - 1, y = pos.y - 1, z = pos.z - 1}, @@ -82,6 +84,7 @@ minetest.register_abm({ }, interval = 5, chance = 2, + catch_up = false, action = function(pos, node, active_object_count, active_object_count_wider) if node.name == "default:ice" or node.name == "default:snowblock" @@ -103,6 +106,7 @@ minetest.register_abm({ neighbors = {"group:water"}, interval = 15, chance = 2, + catch_up = false, action = function(pos, node, active_object_count, active_object_count_wider) minetest.set_node(pos, {name = "default:dirt"}) end, @@ -114,6 +118,7 @@ minetest.register_abm({ neighbors = {"group:water"}, interval = 5, chance = 1, + catch_up = false, action = function(pos, node) local num = #minetest.find_nodes_in_area( {x = pos.x - 1, y = pos.y, z = pos.z}, |