balance: make it take longer for leaves to start decomposing.

This commit is contained in:
trans_soup 2023-10-19 15:56:37 +02:00
parent 87a88a88a6
commit 7493d9771c
1 changed files with 2 additions and 2 deletions

View File

@ -14,13 +14,13 @@ blockgame.register_increasing_abm({
label = "decompose leaves",
nodenames = {leaves},
neighbors = {"group:dirty", leaves_decomposing},
interval = 15,
interval = 20,
chance = 4,
rate = function (pos, node, data)
return data.value + math.random(4, 6)
end,
check = function (pos, node, data)
return data.value >= 20
return data.value >= 80
end,
action = function (pos, node, data)
minetest.set_node(pos, {name = leaves_decomposing})