Bigger mountains
This commit is contained in:
@@ -131,7 +131,11 @@ public class SeedBasedWorldGenerator implements WorldGenerator {
|
||||
temperatureMap[x][z] = (int) (WORLD_MAX_TEMPERATURE * Math.min((k * k + q * q + k * q) * k * q, 0.99));
|
||||
if (heightMap[x][z] < WORLD_SEA_LEVEL) {
|
||||
biomes[x][z] = Biome.OCEAN;
|
||||
wetMap[x][z] = WORLD_MAX_WETNESS;
|
||||
wetMap[x][z] = (int) (WORLD_MAX_WETNESS * noiseGenerator.noise(tx, tz));
|
||||
} else {
|
||||
int th = heightMap[x][z] - WORLD_SEA_LEVEL;
|
||||
th = (int) (th * (1 + 1.25 * th / (WORLD_MAX_HEIGHT - WORLD_SEA_LEVEL)));
|
||||
heightMap[x][z] = Math.min(WORLD_SEA_LEVEL + th, WORLD_MAX_HEIGHT);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -161,7 +165,7 @@ public class SeedBasedWorldGenerator implements WorldGenerator {
|
||||
|
||||
for (int z = 1; z < WorldConstants.WORLD_REGION_SIZE - 1; z++) {
|
||||
for (int x = 1; x < WorldConstants.WORLD_REGION_SIZE - 1; x ++) {
|
||||
wetMap[x][z] = (int) Math.min(WORLD_MAX_WETNESS, 60 * noiseGenerator.noise(x / 31d, z / 67d) + wetMap[x][z] * (1 + 0.2 * SeedRandomGenerator.random(x, z, world.getSeed())));
|
||||
wetMap[x][z] = (int) Math.min(WORLD_MAX_WETNESS, WORLD_BASE_WETNESS * noiseGenerator.noise(x / 31d, z / 67d) + wetMap[x][z] * (1 + 0.2 * (0.5 - SeedRandomGenerator.random(x, z, world.getSeed()))));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@ public final class WorldConstants {
|
||||
public static final int WORLD_REGION_SIZE = 256;
|
||||
public static final int WORLD_MAX_TEMPERATURE = 100;
|
||||
public static final int WORLD_MAX_WETNESS = 100;
|
||||
public static final int WORLD_BASE_WETNESS = 30;
|
||||
|
||||
public static final double WORLD_LAND_SIZE = 53.0;
|
||||
public static final double WORLD_LAKE_SIZE = 6.0;
|
||||
|
||||
Reference in New Issue
Block a user