MapGen: advanced tree generator
This commit is contained in:
Binary file not shown.
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user