Further toying with values.

Primitive generation working.
This commit is contained in:
Harrison Deng 2020-05-02 22:40:56 -05:00
parent 79edd9bf29
commit d4c0fa259c
3 changed files with 5 additions and 6 deletions

View File

@ -14,9 +14,9 @@ public class IslandWorldMapper implements CoordinateValidatable {
private final SimplexOctaveGenerator noiseGenerator;
private final int noiseOctaves = 4;
private final float islandBlockGenerationPercent = 0.32f;
private final double noiseFrequency = 1.7D;
private final double noiseAmplitude = 0.5D;
private final float islandBlockGenerationPercent = 0.36f;
private final double noiseFrequency = 1.78D;
private final double noiseAmplitude = 0.47D;
private final float shoreFactor = 0.095f;
private final float shallowPortion = 0.07f;
private final double scale = 0.005D;

View File

@ -20,7 +20,7 @@ public class WorldHeightShader {
this.worldHeight = worldHeight;
this.minimumHeight = minimumHeight;
this.shader = new SimplexOctaveGenerator(new Random(seed/2), 8);
this.shader.setScale(0.03d);
this.shader.setScale(0.0225d);
}
public int getTerrainHeight(int worldX, int worldZ, Biome[] biomeSet) {
@ -45,7 +45,7 @@ public class WorldHeightShader {
if (biomeName.contains("hills")) {
res = (int) calculateTerrainFactor(worldX, worldZ, 60d, 1.5d, 0.5d);
} else if (biomeName.contains("mountains")) {
res = (int) calculateTerrainFactor(worldX, worldZ, 200d, 1.9d, 0.5d);
res = (int) calculateTerrainFactor(worldX, worldZ, 200d, 1.8d, 0.5d);
} else if (biomeName.contains("plateau")) {
res = (int) Math.min(calculateTerrainFactor(worldX, worldZ, 60d), seaLevel + 30d);
} else if (biomeName.contains("modified")) {

View File

@ -88,7 +88,6 @@ public class WorldLayerShader {
} else if (biomeName.contains("stone")) {
return Material.STONE;
}
return Material.GRASS_BLOCK;
}