disable abm catch_up
parent
a302d34ede
commit
ea4d245f17
2
dirt.lua
2
dirt.lua
|
@ -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]
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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},
|
||||
|
|
Loading…
Reference in New Issue