mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 03:51:50 +00:00
fix structures choosing
This commit is contained in:
parent
09e9c570c0
commit
dbaea71398
3 changed files with 7 additions and 8 deletions
|
|
@ -7,7 +7,7 @@ biome_parameters = 2
|
|||
biomes = {
|
||||
plains = {
|
||||
parameters = {
|
||||
{value=0.5, weight=1.0},
|
||||
{value=0.5, weight=0.3},
|
||||
{value=0.5, weight=0.3},
|
||||
},
|
||||
sea_layers = {
|
||||
|
|
@ -27,8 +27,8 @@ biomes = {
|
|||
},
|
||||
desert = {
|
||||
parameters = {
|
||||
{value=0.0, weight=0.36},
|
||||
{value=0.0, weight=0.4},
|
||||
{value=0.0, weight=0.1},
|
||||
{value=0.0, weight=0.1},
|
||||
},
|
||||
sea_layers = {
|
||||
{block="base:water", height=-1},
|
||||
|
|
@ -120,9 +120,9 @@ local function _generate_biome_parameters(x, y, w, h, seed, s)
|
|||
tempmap:noise({x, y}, 0.04*s, 5)
|
||||
local hummap = Heightmap(w, h)
|
||||
hummap.noiseSeed = seed + 953
|
||||
hummap:noise({x, y}, 0.016*s, 5)
|
||||
tempmap:pow(2)
|
||||
hummap:pow(2)
|
||||
hummap:noise({x, y}, 0.04*s, 5)
|
||||
tempmap:pow(3)
|
||||
hummap:pow(3)
|
||||
return tempmap, hummap
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue