From 7493d9771c1912f39237f8089d1adce74e9bacf8 Mon Sep 17 00:00:00 2001 From: trans_soup <> Date: Thu, 19 Oct 2023 15:56:37 +0200 Subject: [PATCH] balance: make it take longer for leaves to start decomposing. --- mods/bg_tree/decompose.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/bg_tree/decompose.lua b/mods/bg_tree/decompose.lua index 99d4387..28cad01 100644 --- a/mods/bg_tree/decompose.lua +++ b/mods/bg_tree/decompose.lua @@ -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})