Island feature restored (ritual)
This commit is contained in:
parent
2f701885f4
commit
023708f72f
2 changed files with 4 additions and 7 deletions
|
@ -332,7 +332,6 @@ public class EndFeatures {
|
||||||
boolean hasCaves = bclbiome.getCustomData("has_caves", true) && !(bclbiome instanceof EndCaveBiome);
|
boolean hasCaves = bclbiome.getCustomData("has_caves", true) && !(bclbiome instanceof EndCaveBiome);
|
||||||
if (hasCaves && !BiomeAPI.END_VOID_BIOME_PICKER.containsImmutable(id)) {
|
if (hasCaves && !BiomeAPI.END_VOID_BIOME_PICKER.containsImmutable(id)) {
|
||||||
if (Configs.BIOME_CONFIG.getBoolean(id, "hasCaves", true)) {
|
if (Configs.BIOME_CONFIG.getBoolean(id, "hasCaves", true)) {
|
||||||
// TODO replace caves with carvers
|
|
||||||
BiomeAPI.addBiomeFeature(biome, ROUND_CAVE);
|
BiomeAPI.addBiomeFeature(biome, ROUND_CAVE);
|
||||||
BiomeAPI.addBiomeFeature(biome, TUNEL_CAVE);
|
BiomeAPI.addBiomeFeature(biome, TUNEL_CAVE);
|
||||||
}
|
}
|
||||||
|
@ -382,8 +381,7 @@ public class EndFeatures {
|
||||||
builder.feature(THALLASIUM_ORE);
|
builder.feature(THALLASIUM_ORE);
|
||||||
builder.feature(ENDER_ORE);
|
builder.feature(ENDER_ORE);
|
||||||
builder.feature(CRASHED_SHIP);
|
builder.feature(CRASHED_SHIP);
|
||||||
|
|
||||||
// TODO replace cave features with carvers
|
|
||||||
if (hasCaves) {
|
if (hasCaves) {
|
||||||
builder.feature(ROUND_CAVE);
|
builder.feature(ROUND_CAVE);
|
||||||
builder.feature(TUNEL_CAVE);
|
builder.feature(TUNEL_CAVE);
|
||||||
|
|
|
@ -440,16 +440,15 @@ public class EternalRitual {
|
||||||
direction = direction.getClockWise();
|
direction = direction.getClockWise();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// TODO find island feature
|
if (targetWorld.dimension() == Level.END) {
|
||||||
/*if (targetWorld.dimension() == Level.END) {
|
net.minecraft.data.worldgen.features.EndFeatures.END_ISLAND.place(
|
||||||
Features.END_ISLAND.place(
|
|
||||||
targetWorld,
|
targetWorld,
|
||||||
targetWorld.getChunkSource().getGenerator(),
|
targetWorld.getChunkSource().getGenerator(),
|
||||||
new Random(basePos.asLong()),
|
new Random(basePos.asLong()),
|
||||||
basePos.below()
|
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);
|
basePos.setY(targetWorld.getChunk(basePos).getHeight(Heightmap.Types.WORLD_SURFACE, basePos.getX(), basePos.getZ()) + 1);
|
||||||
}
|
}
|
||||||
EndFeatures.BIOME_ISLAND
|
EndFeatures.BIOME_ISLAND
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue