Gravelly mountains are less mountainous and don't have dirt.
This commit is contained in:
parent
c420a610a3
commit
88d3237d4e
@ -42,7 +42,11 @@ public class WorldHeightShader {
|
||||
int res = 0;
|
||||
String biomeName = biome.name().toLowerCase();
|
||||
if (biomeName.contains("mountains")) {
|
||||
res = (int) calculateTerrainFactor(worldX, worldZ, 180d + heightModifier, 1.88d, 0.5d);
|
||||
if (biomeName.contains("gravelly")) {
|
||||
res = (int) calculateTerrainFactor(worldX, worldZ, 100d + heightModifier, 1.8d, 0.8d);
|
||||
} else {
|
||||
res = (int) calculateTerrainFactor(worldX, worldZ, 180d + heightModifier, 1.88d, 0.5d);
|
||||
}
|
||||
} else if (biomeName.contains("plateau")) {
|
||||
res = (int) Math.min(calculateTerrainFactor(worldX, worldZ, 60d + heightModifier), seaLevel + 30d);
|
||||
} else if (biomeName.contains("modified")) {
|
||||
|
@ -33,7 +33,7 @@ public class WorldLayerShader {
|
||||
this.seaLevel = seaLevel;
|
||||
this.maxHeight = maxHeight;
|
||||
this.noiseGenerator = new SimplexOctaveGenerator(random, 4);
|
||||
this.noiseGenerator.setScale(0.05d);
|
||||
this.noiseGenerator.setScale(0.1d);
|
||||
}
|
||||
|
||||
public boolean hasSpecialLayers(Biome biome) {
|
||||
@ -80,7 +80,7 @@ public class WorldLayerShader {
|
||||
}
|
||||
}
|
||||
} else if (mainBiomeName.contains("mountain")) {
|
||||
if (y > (maxHeight * 0.36d) - getNormalizedNoise(worldX, worldZ, 2.2f) * 8d) {
|
||||
if (y > (maxHeight * 0.4d) - getNormalizedNoise(worldX, worldZ, 2.8f) * 8d) {
|
||||
res = Material.STONE.createBlockData();
|
||||
} else if (y > highestPoint - getSurfaceThickness(worldX, worldZ, mainBiome)) {
|
||||
res = getSurfaceMaterial(mainBiome).createBlockData();
|
||||
@ -121,7 +121,7 @@ public class WorldLayerShader {
|
||||
String biomeName = biome.toString().toLowerCase();
|
||||
if (biomeName.contains("beach") || biomeName.contains("desert")) {
|
||||
return Material.SANDSTONE;
|
||||
} else if (biome == Biome.STONE_SHORE) {
|
||||
} else if (biomeName.contains("gravelly") || biome == Biome.STONE_SHORE) {
|
||||
return Material.STONE;
|
||||
} else if (biomeName.contains("ocean")) {
|
||||
return Material.GRAVEL;
|
||||
|
Loading…
Reference in New Issue
Block a user