MapGen: advanced tree generator

This commit is contained in:
Van
2026-06-15 22:19:23 +03:00
parent 098f247928
commit 6cec8806ed
3 changed files with 74 additions and 11 deletions

View File

@@ -751,14 +751,12 @@ mapGenerator:registerBiome('midgard', 'green_meadow', {
local value = ryeNoise:get_2d({x=x, y=z}) + math.random(0, 5)
if value > 8 then
if math.random(0, 10) > 9 then
if x % 10 == 0 and z % 10 == 0 then
---@type MapVector
local pos = v(x, y+1, z)
mapGenerator:getTree('test_tree'):placeOnVM(voxelManip, pos)
end
end
end
--generateRock = generateRock,
--generateTurf = generateTurf,