Cave floor generation
This commit is contained in:
parent
2c819071a5
commit
6bd2a08726
2 changed files with 2 additions and 5 deletions
|
@ -129,10 +129,6 @@ public class EndLakeFeature extends DefaultFeature {
|
||||||
pos = POS.below();
|
pos = POS.below();
|
||||||
if (world.getBlockState(pos).is(TagAPI.BLOCK_GEN_TERRAIN)) {
|
if (world.getBlockState(pos).is(TagAPI.BLOCK_GEN_TERRAIN)) {
|
||||||
state = EndBiome.findTopMaterial(world, pos);
|
state = EndBiome.findTopMaterial(world, pos);
|
||||||
//state = world.getBiome(pos)
|
|
||||||
// .getGenerationSettings()
|
|
||||||
// .getSurfaceBuilderConfig()
|
|
||||||
// .getTopMaterial();
|
|
||||||
if (y > waterLevel + 1) BlocksHelper.setWithoutUpdate(world, pos, state);
|
if (y > waterLevel + 1) BlocksHelper.setWithoutUpdate(world, pos, state);
|
||||||
else if (y > waterLevel)
|
else if (y > waterLevel)
|
||||||
BlocksHelper.setWithoutUpdate(
|
BlocksHelper.setWithoutUpdate(
|
||||||
|
|
|
@ -22,6 +22,7 @@ import ru.bclib.world.biomes.BCLBiome;
|
||||||
import ru.bclib.world.features.DefaultFeature;
|
import ru.bclib.world.features.DefaultFeature;
|
||||||
import ru.betterend.registry.EndBiomes;
|
import ru.betterend.registry.EndBiomes;
|
||||||
import ru.betterend.util.BlockFixer;
|
import ru.betterend.util.BlockFixer;
|
||||||
|
import ru.betterend.world.biome.EndBiome;
|
||||||
import ru.betterend.world.biome.cave.EndCaveBiome;
|
import ru.betterend.world.biome.cave.EndCaveBiome;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@ -75,7 +76,7 @@ public abstract class EndCaveFeature extends DefaultFeature {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
BlockState surfaceBlock = Blocks.END_STONE.defaultBlockState(); //biome.getBiome().getGenerationSettings().getSurfaceBuilderConfig().getTopMaterial();
|
BlockState surfaceBlock = EndBiome.findTopMaterial(biome);
|
||||||
placeFloor(world, biome, floorPositions, random, surfaceBlock);
|
placeFloor(world, biome, floorPositions, random, surfaceBlock);
|
||||||
placeCeil(world, biome, ceilPositions, random);
|
placeCeil(world, biome, ceilPositions, random);
|
||||||
placeWalls(world, biome, caveBlocks, random);
|
placeWalls(world, biome, caveBlocks, random);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue