Plant distribution fix

This commit is contained in:
paulevsGitch 2021-12-23 06:29:33 +03:00
parent 5585d8952c
commit 064c8509e2
5 changed files with 6 additions and 9 deletions

View file

@ -268,7 +268,8 @@ public class EndFeatures {
public static final DefaultFeature CAVE_PUMPKIN = new CavePumpkinFeature();
private static BCLFeature redisterVegetation(String name, Feature<NoneFeatureConfiguration> feature, int density) {
return BCLCommonFeatures.makeVegetationFeature(BetterEnd.makeID(name), feature, density);
ResourceLocation id = BetterEnd.makeID(name);
return BCLFeatureBuilder.start(id, feature).countLayersMax(density).onlyInBiome().build();
}
private static BCLFeature registerRawGen(String name, Feature<NoneFeatureConfiguration> feature, int chance) {

View file

@ -19,8 +19,7 @@ public class DustWastelandsBiome extends EndBiome.Config {
builder.fogColor(226, 239, 168)
.fogDensity(2)
.waterAndFogColor(192, 180, 131)
//TODO: 1.18 removed
//.depth(1.5F)
.terrainHeight(1.5F)
.particles(ParticleTypes.WHITE_ASH, 0.01F)
.loop(EndSounds.AMBIENT_DUST_WASTELANDS)
.music(EndSounds.MUSIC_OPENSPACE)

View file

@ -25,8 +25,7 @@ public class MegalakeBiome extends EndBiome.Config {
.fogDensity(1.75F)
.music(EndSounds.MUSIC_WATER)
.loop(EndSounds.AMBIENT_MEGALAKE)
//TODO: 1.18 removed
//.depth(0F)
.terrainHeight(0F)
.feature(EndFeatures.END_LOTUS)
.feature(EndFeatures.END_LOTUS_LEAF)
.feature(EndFeatures.BUBBLE_CORAL_RARE)

View file

@ -27,8 +27,7 @@ public class MegalakeGroveBiome extends EndBiome.Config {
.particles(EndParticles.GLOWING_SPHERE, 0.001F)
.music(EndSounds.MUSIC_WATER)
.loop(EndSounds.AMBIENT_MEGALAKE_GROVE)
//TODO: 1.18 removed
//.depth(0F)
.terrainHeight(0F)
.feature(EndFeatures.LACUGROVE)
.feature(EndFeatures.END_LOTUS)
.feature(EndFeatures.END_LOTUS_LEAF)

View file

@ -37,8 +37,7 @@ public class SulphurSpringsBiome extends EndBiome.Config {
.waterFogColor(30, 65, 61)
.fogColor(207, 194, 62)
.fogDensity(1.5F)
//TODO: 1.18 removed
//.depth(0F)
.terrainHeight(0F)
.particles(EndParticles.SULPHUR_PARTICLE, 0.001F)
.feature(EndFeatures.GEYSER)
.feature(EndFeatures.SURFACE_VENT)