Island feature restored (ritual)

This commit is contained in:
paulevsGitch 2021-12-28 23:00:48 +03:00
parent 2f701885f4
commit 023708f72f
2 changed files with 4 additions and 7 deletions

View file

@ -332,7 +332,6 @@ public class EndFeatures {
boolean hasCaves = bclbiome.getCustomData("has_caves", true) && !(bclbiome instanceof EndCaveBiome);
if (hasCaves && !BiomeAPI.END_VOID_BIOME_PICKER.containsImmutable(id)) {
if (Configs.BIOME_CONFIG.getBoolean(id, "hasCaves", true)) {
// TODO replace caves with carvers
BiomeAPI.addBiomeFeature(biome, ROUND_CAVE);
BiomeAPI.addBiomeFeature(biome, TUNEL_CAVE);
}
@ -382,8 +381,7 @@ public class EndFeatures {
builder.feature(THALLASIUM_ORE);
builder.feature(ENDER_ORE);
builder.feature(CRASHED_SHIP);
// TODO replace cave features with carvers
if (hasCaves) {
builder.feature(ROUND_CAVE);
builder.feature(TUNEL_CAVE);

View file

@ -440,16 +440,15 @@ public class EternalRitual {
direction = direction.getClockWise();
}
}
// TODO find island feature
/*if (targetWorld.dimension() == Level.END) {
Features.END_ISLAND.place(
if (targetWorld.dimension() == Level.END) {
net.minecraft.data.worldgen.features.EndFeatures.END_ISLAND.place(
targetWorld,
targetWorld.getChunkSource().getGenerator(),
new Random(basePos.asLong()),
basePos.below()
);
}
else */if (targetWorld.dimension() == Level.OVERWORLD) {
else if (targetWorld.dimension() == Level.OVERWORLD) {
basePos.setY(targetWorld.getChunk(basePos).getHeight(Heightmap.Types.WORLD_SURFACE, basePos.getX(), basePos.getZ()) + 1);
}
EndFeatures.BIOME_ISLAND