Feature fixes
This commit is contained in:
parent
5f516ac2a0
commit
800bf72faf
3 changed files with 2 additions and 7 deletions
|
@ -34,9 +34,7 @@ public class MountainStructure extends FeatureBaseStructure {
|
||||||
int z = chunkPos.getBlockZ(MHelper.randRange(4, 12, random));
|
int z = chunkPos.getBlockZ(MHelper.randRange(4, 12, random));
|
||||||
int y = chunkGenerator.getBaseHeight(x, z, Types.WORLD_SURFACE_WG, levelHeightAccessor);
|
int y = chunkGenerator.getBaseHeight(x, z, Types.WORLD_SURFACE_WG, levelHeightAccessor);
|
||||||
if (y > 5) {
|
if (y > 5) {
|
||||||
//TODO: 1.18 right way to get biome?
|
Biome biome = chunkGenerator.getNoiseBiome(x >> 2, y >> 2, z >> 2);
|
||||||
Biome biome = chunkGenerator.getNoiseBiome(x, y, z);
|
|
||||||
|
|
||||||
float radius = MHelper.randRange(50, 100, random);
|
float radius = MHelper.randRange(50, 100, random);
|
||||||
float height = radius * MHelper.randRange(0.8F, 1.2F, random);
|
float height = radius * MHelper.randRange(0.8F, 1.2F, random);
|
||||||
CrystalMountainPiece piece = new CrystalMountainPiece(
|
CrystalMountainPiece piece = new CrystalMountainPiece(
|
||||||
|
|
|
@ -38,9 +38,7 @@ public class PaintedMountainStructure extends FeatureBaseStructure {
|
||||||
int z = chunkPos.getBlockZ(MHelper.randRange(4, 12, random));
|
int z = chunkPos.getBlockZ(MHelper.randRange(4, 12, random));
|
||||||
int y = chunkGenerator.getBaseHeight(x, z, Types.WORLD_SURFACE_WG, levelHeightAccessor);
|
int y = chunkGenerator.getBaseHeight(x, z, Types.WORLD_SURFACE_WG, levelHeightAccessor);
|
||||||
if (y > 50) {
|
if (y > 50) {
|
||||||
//TODO: 1.18 right way to get biome?
|
Biome biome = chunkGenerator.getNoiseBiome(x >> 2, y >> 2, z >> 2);
|
||||||
Biome biome = chunkGenerator.getNoiseBiome(x, y, z);
|
|
||||||
|
|
||||||
float radius = MHelper.randRange(50, 100, random);
|
float radius = MHelper.randRange(50, 100, random);
|
||||||
float height = radius * MHelper.randRange(0.4F, 0.6F, random);
|
float height = radius * MHelper.randRange(0.4F, 0.6F, random);
|
||||||
int count = MHelper.floor(height * MHelper.randRange(0.1F, 0.35F, random) + 1);
|
int count = MHelper.floor(height * MHelper.randRange(0.1F, 0.35F, random) + 1);
|
||||||
|
|
|
@ -193,7 +193,6 @@ public class LakePiece extends BasePiece {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (chunk.getBlockState(mut.move(Direction.UP)).isAir()) {
|
else if (chunk.getBlockState(mut.move(Direction.UP)).isAir()) {
|
||||||
//TODO: 1.18 test if this is thr right tick
|
|
||||||
chunk.markPosForPostprocessing(mut.move(Direction.DOWN).immutable());
|
chunk.markPosForPostprocessing(mut.move(Direction.DOWN).immutable());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue