Disable flora wither

master
Wuzzy 2021-08-03 21:57:33 +02:00
parent 763fe7f7be
commit 2ac23aba74
1 changed files with 3 additions and 5 deletions

View File

@ -138,18 +138,16 @@ minetest.register_node("hades_flowers:violet", {
minetest.register_abm({
label = "Flora spread and wither",
label = "Flora spread",
nodenames = {"group:flora"},
neighbors = {"hades_core:dirt_with_grass", "hades_core:fertile_sand"},
neighbors = {"hades_core:dirt_with_grass"},
interval = 50,
chance = 30,
action = function(pos, node)
pos.y = pos.y - 1
local under = minetest.get_node(pos)
pos.y = pos.y + 1
if under.name == "hades_core:fertile_sand" then
minetest.set_node(pos, {name="hades_core:dry_shrub"})
elseif under.name ~= "hades_core:dirt_with_grass" then
if under.name ~= "hades_core:dirt_with_grass" then
return
end