Chorus grass
This commit is contained in:
parent
b0d967ecd4
commit
3207817937
19 changed files with 113 additions and 6 deletions
|
@ -18,6 +18,7 @@ public class BiomeChorusForest extends EndBiome {
|
|||
.addStructureFeature(StructureRegistry.GIANT_MOSSY_GLOWSHROOM)
|
||||
.addFeature(FeatureRegistry.ENDER_ORE)
|
||||
.addFeature(FeatureRegistry.RARE_END_LAKE)
|
||||
.addFeature(FeatureRegistry.CHORUS_GRASS)
|
||||
.addMobSpawn(EntityRegistry.END_SLIME, 5, 1, 2)
|
||||
.addMobSpawn(EntityType.ENDERMAN, 50, 1, 4));
|
||||
}
|
||||
|
|
|
@ -168,9 +168,11 @@ public class EndLakeFeature extends DefaultFeature {
|
|||
if (world.getBlockState(pos).getBlock().isIn(BlockTagRegistry.GEN_TERRAIN))
|
||||
{
|
||||
BlocksHelper.setWithoutUpdate(world, POS.down(), BlockRegistry.ENDSTONE_DUST.getDefaultState());
|
||||
EndBiome biome = BiomeRegistry.getFromBiome(world.getBiome(POS));
|
||||
if (biome == BiomeRegistry.CHORUS_FOREST) {
|
||||
generateFoggyMushroomland(world, x, z, waterLevel);
|
||||
if (random.nextInt(3) == 0 && pos.getY() < waterLevel - 1) {
|
||||
EndBiome biome = BiomeRegistry.getFromBiome(world.getBiome(POS));
|
||||
if (biome == BiomeRegistry.FOGGY_MUSHROOMLAND) {
|
||||
generateFoggyMushroomland(world, x, z, waterLevel);
|
||||
}
|
||||
}
|
||||
}
|
||||
pos = POS.up();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue