mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-08 06:47:23 -04:00
Updated Minecraft Classic map generation algorithm (markdown)
parent
5b493e55cd
commit
67bf739960
@ -52,13 +52,13 @@ Let heightLow be noise1.compute( x*1.3, z*1.3) / 6 - 4
|
||||
Let heightHigh be noise2.compute( x*1.3, z*1.3) / 5 + 6
|
||||
|
||||
if noise3.compute(x,z) /8 > 0 {
|
||||
set heightResult to heightLow
|
||||
set heightResult to heightLow
|
||||
} else {
|
||||
set heightResult to the maximum of heightLow and heightHigh
|
||||
set heightResult to the maximum of heightLow and heightHigh
|
||||
}
|
||||
|
||||
if heightResult < 0 {
|
||||
set heightResult to 8/10 its value
|
||||
set heightResult to 8/10 its value
|
||||
}
|
||||
|
||||
heightMap(x,z) is then set to the integer component of heightResult.
|
||||
|
Loading…
x
Reference in New Issue
Block a user