made toreterror arena more common
made vanilla squids also spawn kraken
This commit is contained in:
1 parent
84bf436434
commit
02c487f156
7 files changed
+70
-7
No files matched your search
@@ -26,6 +26,14 @@ public final class AntarchyFabric implements ModInitializer {
|
||||
Registries.PLACED_FEATURE,
|
||||
ResourceLocation.fromNamespaceAndPath(Antarchy.MODID, "shellstone_lower")
|
||||
);
|
||||
private static final TagKey<net.minecraft.world.level.biome.Biome> MISSILE_SQUID_SPAWN_BIOMES = TagKey.create(
|
||||
Registries.BIOME,
|
||||
ResourceLocation.fromNamespaceAndPath(Antarchy.MODID, "missile_squid_spawn_biomes")
|
||||
);
|
||||
private static final TagKey<net.minecraft.world.level.biome.Biome> OCTOPUS_BOMB_SPAWN_BIOMES = TagKey.create(
|
||||
Registries.BIOME,
|
||||
ResourceLocation.fromNamespaceAndPath(Antarchy.MODID, "octopus_bomb_spawn_biomes")
|
||||
);
|
||||
|
||||
@Override
|
||||
public void onInitialize() {
|
||||
@@ -55,5 +63,17 @@ public final class AntarchyFabric implements ModInitializer {
|
||||
GenerationStep.Decoration.UNDERGROUND_ORES,
|
||||
SHELLSTONE_LOWER
|
||||
);
|
||||
BiomeModifications.addSpawn(
|
||||
BiomeSelectors.tag(MISSILE_SQUID_SPAWN_BIOMES),
|
||||
net.minecraft.world.entity.MobCategory.MONSTER,
|
||||
AntarchyFabricContent.MISSILE_SQUID.get(),
|
||||
2, 1, 2
|
||||
);
|
||||
BiomeModifications.addSpawn(
|
||||
BiomeSelectors.tag(OCTOPUS_BOMB_SPAWN_BIOMES),
|
||||
net.minecraft.world.entity.MobCategory.MONSTER,
|
||||
AntarchyFabricContent.OCTOPUS_BOMB.get(),
|
||||
2, 1, 2
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -61,10 +61,11 @@ public final class AntarchyFabricEvents {
|
||||
if (entity instanceof ServerPlayer sp) {
|
||||
BloodglassManager.handleDeath(sp);
|
||||
}
|
||||
if (!(entity instanceof MissileSquidEntity missileSquid)) {
|
||||
return;
|
||||
}
|
||||
if (missileSquid.isSpawnedByKraken()) {
|
||||
if (entity instanceof MissileSquidEntity missileSquid) {
|
||||
if (missileSquid.isSpawnedByKraken()) {
|
||||
return;
|
||||
}
|
||||
} else if (entity.getType() != net.minecraft.world.entity.EntityType.SQUID) {
|
||||
return;
|
||||
}
|
||||
if (!(entity.level() instanceof ServerLevel serverLevel)) {
|
||||
|
||||
Reference in new issue
Block a user