fix mushroom biome ambience

This commit is contained in:
tenplus1 2024-11-27 08:03:25 +00:00
parent c63ec689b5
commit e8b378f1f5

View File

@ -11,13 +11,14 @@ ambience.add_set("ethereal_mushroom", {
{name = "ethereal_mushroom", length = 1.3, pitch = 1.2, ephemeral = true}, {name = "ethereal_mushroom", length = 1.3, pitch = 1.2, ephemeral = true},
}, },
nodes = ({"ethereal:mushroom_trunk"}), nodes = ({"ethereal:mushroom_trunk", "ethereal:mushroom_dirt"}),
sound_check = function(def) sound_check = function(def)
local c = (def.totals["ethereal:mushroom_trunk"] or 0) local c = (def.totals["ethereal:mushroom_trunk"] or 0)
local d = (def.totals["ethereal:mushroom_dirt"] or 0)
if c > 30 then return "ethereal_mushroom" end if c > 30 and d > 70 then return "ethereal_mushroom" end
end end
}) })