Make sure enderman ar default spawns
This commit is contained in:
parent
6b63be32b0
commit
fb422d07be
1 changed files with 9 additions and 0 deletions
|
@ -5,6 +5,7 @@ import java.util.function.BiFunction;
|
|||
import net.minecraft.data.worldgen.StructureFeatures;
|
||||
import net.minecraft.resources.ResourceLocation;
|
||||
import net.minecraft.sounds.SoundEvents;
|
||||
import net.minecraft.world.entity.EntityType;
|
||||
import net.minecraft.world.level.biome.Biome;
|
||||
import net.minecraft.world.level.block.Blocks;
|
||||
import net.minecraft.world.level.levelgen.SurfaceRules;
|
||||
|
@ -39,6 +40,10 @@ public class EndBiome extends BCLBiome {
|
|||
protected boolean hasCaves(){
|
||||
return true;
|
||||
}
|
||||
|
||||
protected boolean spawnVanillaMobs(){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
public EndBiome(ResourceLocation biomeID, Biome biome) {
|
||||
|
@ -59,6 +64,10 @@ public class EndBiome extends BCLBiome {
|
|||
.wetness(0.5f)
|
||||
.precipitation(Biome.Precipitation.NONE);
|
||||
|
||||
if (biomeConfig.spawnVanillaMobs()){
|
||||
builder.spawn(EntityType.ENDERMAN, 10, 1, 4);
|
||||
}
|
||||
|
||||
biomeConfig.addCustomBuildData(builder);
|
||||
EndFeatures.addDefaultFeatures(builder, biomeConfig.hasCaves());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue