adjustment to piglins respawning in bastions.

This commit is contained in:
gnembon committed 2020-07-06 00:14:09 -03:00
1 parent ed0090b134
commit 52d4a9d581
2 files changed
+12 -4

No files matched your search

+6 -2
View File
@@ -214,8 +214,12 @@ public class CarpetSettings
@Rule( desc = "Shulkers will respawn in end cities", category = FEATURE )
public static boolean shulkerSpawningInEndCities = false;
@Rule( desc = "Piglin brutes will respawn in bastion remnants", category = FEATURE )
public static boolean bruteSpawningInBastionRemnants = false;
@Rule(
desc = "Piglins will respawn in bastion remnants",
extra = "Includes piglins, brutes, and a few hoglins",
category = FEATURE
)
public static boolean piglinsSpawningInBastions = false;
@Rule(desc = "Entities pushed or moved into unloaded chunks no longer disappear", category = {EXPERIMENTAL, BUGFIX})
public static boolean unloadedEntityFix = false;
@@ -18,7 +18,11 @@ import java.util.List;
@Mixin(BastionRemnantFeature.class)
public abstract class BastionRemnantFeatureMixin extends StructureFeature<BastionRemnantFeatureConfig> {
private static final List<Biome.SpawnEntry> spawnList = Lists.newArrayList(new Biome.SpawnEntry(EntityType.PIGLIN_BRUTE, 5, 1, 2), new Biome.SpawnEntry(EntityType.PIGLIN, 10, 2, 4));
private static final List<Biome.SpawnEntry> spawnList = Lists.newArrayList(
new Biome.SpawnEntry(EntityType.PIGLIN_BRUTE, 5, 1, 2),
new Biome.SpawnEntry(EntityType.PIGLIN, 10, 2, 4),
new Biome.SpawnEntry(EntityType.HOGLIN, 2, 1, 2)
);
public BastionRemnantFeatureMixin(Codec<BastionRemnantFeatureConfig> codec) {
super(codec);
@@ -27,7 +31,7 @@ public abstract class BastionRemnantFeatureMixin extends StructureFeature<Bastio
@Override
public List<Biome.SpawnEntry> getMonsterSpawns()
{
if (CarpetSettings.bruteSpawningInBastionRemnants)
if (CarpetSettings.piglinsSpawningInBastions)
return spawnList;
return Collections.emptyList();
}