diff --git a/src/generated/resources/assets/allthemodium/lang/en_us.json b/src/generated/resources/assets/allthemodium/lang/en_us.json index 29275997..0db4cfab 100644 --- a/src/generated/resources/assets/allthemodium/lang/en_us.json +++ b/src/generated/resources/assets/allthemodium/lang/en_us.json @@ -104,6 +104,8 @@ "dimension.allthemodium.mining": "Mining Dimension", "dimension.allthemodium.the_beyond": "The Beyond", "dimension.allthemodium.the_other": "The Other", + "entity.allthemodium.alloy_trident": "Allthemodium Alloy Trident", + "entity.allthemodium.piglich": "Piglich", "item.allthemodium.alloy_axe": "Allthemodium Alloy Axe", "item.allthemodium.alloy_mace": "Allthemodium Alloy Mace", "item.allthemodium.alloy_paxel": "Allthemodium Alloy Paxel", diff --git a/src/main/java/net/allthemods/allthemodium/common/entity/PiglichEntity.java b/src/main/java/net/allthemods/allthemodium/common/entity/PiglichEntity.java index 4fd55afe..a2751830 100644 --- a/src/main/java/net/allthemods/allthemodium/common/entity/PiglichEntity.java +++ b/src/main/java/net/allthemods/allthemodium/common/entity/PiglichEntity.java @@ -186,6 +186,8 @@ private boolean spawnSupport(ServerLevel level, LivingEntity target) { if (support == null) continue; BlockPos pos = this.findSupportSpawnPos(level, support, entityType, origin); + if (pos == null) continue; + if (!this.canSpawnSupport(level, support, entityType, pos)) continue; support.setTarget(target); diff --git a/src/main/java/net/allthemods/allthemodium/data/provider/ATMLanguageProvider.java b/src/main/java/net/allthemods/allthemodium/data/provider/ATMLanguageProvider.java index 5945c96e..fcf73531 100644 --- a/src/main/java/net/allthemods/allthemodium/data/provider/ATMLanguageProvider.java +++ b/src/main/java/net/allthemods/allthemodium/data/provider/ATMLanguageProvider.java @@ -7,6 +7,7 @@ import net.allthemods.allthemodium.api.ATM; import net.allthemods.allthemodium.client.lang.ATMLanguage; import net.allthemods.allthemodium.core.registry.ATMBlocks; +import net.allthemods.allthemodium.core.registry.ATMEntities; import net.allthemods.allthemodium.core.registry.ATMFluids; import net.allthemods.allthemodium.core.registry.ATMItems; import net.allthemods.allthemodium.data.worldgen.ATMDimensions; @@ -23,6 +24,9 @@ protected void addTranslations() { this.addItems(); this.addTrimMaterials(); + this.addEntityType(ATMEntities.PIGLICH, "Piglich"); + this.addEntityType(ATMEntities.ALLOY_TRIDENT_ENTITY, "Allthemodium Alloy Trident"); + this.addDimension(ATMDimensions.MINING, "Mining Dimension"); this.addDimension(ATMDimensions.THE_BEYOND, "The Beyond"); this.addDimension(ATMDimensions.THE_OTHER, "The Other");