balance: make it take longer for leaves to start decomposing.
This commit is contained in:
parent
87a88a88a6
commit
7493d9771c
1 changed files with 2 additions and 2 deletions
|
@ -14,13 +14,13 @@ blockgame.register_increasing_abm({
|
||||||
label = "decompose leaves",
|
label = "decompose leaves",
|
||||||
nodenames = {leaves},
|
nodenames = {leaves},
|
||||||
neighbors = {"group:dirty", leaves_decomposing},
|
neighbors = {"group:dirty", leaves_decomposing},
|
||||||
interval = 15,
|
interval = 20,
|
||||||
chance = 4,
|
chance = 4,
|
||||||
rate = function (pos, node, data)
|
rate = function (pos, node, data)
|
||||||
return data.value + math.random(4, 6)
|
return data.value + math.random(4, 6)
|
||||||
end,
|
end,
|
||||||
check = function (pos, node, data)
|
check = function (pos, node, data)
|
||||||
return data.value >= 20
|
return data.value >= 80
|
||||||
end,
|
end,
|
||||||
action = function (pos, node, data)
|
action = function (pos, node, data)
|
||||||
minetest.set_node(pos, {name = leaves_decomposing})
|
minetest.set_node(pos, {name = leaves_decomposing})
|
||||||
|
|
Loading…
Reference in a new issue