diff --git a/src/generated/resources/assets/c/lang/en_us.json b/src/generated/resources/assets/c/lang/en_us.json index 3c27e29b49..a471e96a39 100644 --- a/src/generated/resources/assets/c/lang/en_us.json +++ b/src/generated/resources/assets/c/lang/en_us.json @@ -124,6 +124,7 @@ "tag.enchantment.c.increase_block_drops": "Increase Block Drops", "tag.enchantment.c.increase_entity_drops": "Increase Entity Drops", "tag.enchantment.c.weapon_damage_enhancements": "Weapon Damage Enhancements", + "tag.entity_type.c.animals": "Animals", "tag.entity_type.c.boats": "Boats", "tag.entity_type.c.bosses": "Bosses", "tag.entity_type.c.capturing_not_supported": "Capturing Not Supported", diff --git a/src/generated/resources/data/c/tags/entity_type/animals.json b/src/generated/resources/data/c/tags/entity_type/animals.json new file mode 100644 index 0000000000..0815d2af7c --- /dev/null +++ b/src/generated/resources/data/c/tags/entity_type/animals.json @@ -0,0 +1,42 @@ +{ + "values": [ + "minecraft:armadillo", + "minecraft:axolotl", + "minecraft:bee", + "minecraft:camel", + "minecraft:cat", + "minecraft:chicken", + "minecraft:cod", + "minecraft:cod", + "minecraft:dolphin", + "minecraft:donkey", + "minecraft:fox", + "minecraft:frog", + "minecraft:glow_squid", + "minecraft:goat", + "minecraft:hoglin", + "minecraft:horse", + "minecraft:llama", + "minecraft:mooshroom", + "minecraft:mule", + "minecraft:ocelot", + "minecraft:panda", + "minecraft:parrot", + "minecraft:pig", + "minecraft:polar_bear", + "minecraft:pufferfish", + "minecraft:rabbit", + "minecraft:salmon", + "minecraft:sheep", + "minecraft:skeleton_horse", + "minecraft:sniffer", + "minecraft:squid", + "minecraft:strider", + "minecraft:tadpole", + "minecraft:trader_llama", + "minecraft:tropical_fish", + "minecraft:turtle", + "minecraft:wolf", + "minecraft:zombie_horse" + ] +} \ No newline at end of file diff --git a/src/main/java/net/neoforged/neoforge/common/Tags.java b/src/main/java/net/neoforged/neoforge/common/Tags.java index 8a57785dc8..67a979effc 100644 --- a/src/main/java/net/neoforged/neoforge/common/Tags.java +++ b/src/main/java/net/neoforged/neoforge/common/Tags.java @@ -247,6 +247,11 @@ public static class EntityTypes { public static final TagKey> MINECARTS = tag("minecarts"); public static final TagKey> BOATS = tag("boats"); + /** + * Tag containing entity types that extend Animal. + */ + public static final TagKey> ANIMALS = tag("animals"); + /** * Entities should be included in this tag if they are not allowed to be picked up by items or grabbed in a way * that a player can easily move the entity to anywhere they want. Ideal for special entities that should not diff --git a/src/main/java/net/neoforged/neoforge/common/data/internal/NeoForgeEntityTypeTagsProvider.java b/src/main/java/net/neoforged/neoforge/common/data/internal/NeoForgeEntityTypeTagsProvider.java index e12f911f8f..9a7544d31f 100644 --- a/src/main/java/net/neoforged/neoforge/common/data/internal/NeoForgeEntityTypeTagsProvider.java +++ b/src/main/java/net/neoforged/neoforge/common/data/internal/NeoForgeEntityTypeTagsProvider.java @@ -35,6 +35,46 @@ public void addTags(HolderLookup.Provider lookupProvider) { EntityType.DARK_OAK_CHEST_BOAT, EntityType.MANGROVE_CHEST_BOAT, EntityType.BAMBOO_CHEST_RAFT); + tag(Tags.EntityTypes.ANIMALS) + .add( + EntityType.ARMADILLO, + EntityType.AXOLOTL, + EntityType.BEE, + EntityType.CAMEL, + EntityType.CAT, + EntityType.CHICKEN, + EntityType.COD, + EntityType.COW, + EntityType.DOLPHIN, + EntityType.DONKEY, + EntityType.FOX, + EntityType.FROG, + EntityType.GLOW_SQUID, + EntityType.GOAT, + EntityType.HOGLIN, + EntityType.HORSE, + EntityType.LLAMA, + EntityType.MOOSHROOM, + EntityType.MULE, + EntityType.OCELOT, + EntityType.PANDA, + EntityType.PARROT, + EntityType.PIG, + EntityType.POLAR_BEAR, + EntityType.PUFFERFISH, + EntityType.RABBIT, + EntityType.SALMON, + EntityType.SHEEP, + EntityType.SKELETON_HORSE, + EntityType.SNIFFER, + EntityType.SQUID, + EntityType.STRIDER, + EntityType.TADPOLE, + EntityType.TRADER_LLAMA, + EntityType.TROPICAL_FISH, + EntityType.TURTLE, + EntityType.WOLF, + EntityType.ZOMBIE_HORSE); tag(Tags.EntityTypes.CAPTURING_NOT_SUPPORTED); tag(Tags.EntityTypes.TELEPORTING_NOT_SUPPORTED); diff --git a/src/main/java/net/neoforged/neoforge/common/data/internal/NeoForgeLanguageProvider.java b/src/main/java/net/neoforged/neoforge/common/data/internal/NeoForgeLanguageProvider.java index f764016f5c..05c6bf7a70 100644 --- a/src/main/java/net/neoforged/neoforge/common/data/internal/NeoForgeLanguageProvider.java +++ b/src/main/java/net/neoforged/neoforge/common/data/internal/NeoForgeLanguageProvider.java @@ -361,6 +361,7 @@ protected void addTranslations() { add(Tags.EntityTypes.BOSSES, "Bosses"); add(Tags.EntityTypes.MINECARTS, "Minecarts"); add(Tags.EntityTypes.BOATS, "Boats"); + add(Tags.EntityTypes.ANIMALS, "Animals"); add(Tags.EntityTypes.CAPTURING_NOT_SUPPORTED, "Capturing Not Supported"); add(Tags.EntityTypes.TELEPORTING_NOT_SUPPORTED, "Teleporting Not Supported");