Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add conventional tag for all animals #4168

Open
wants to merge 2 commits into
base: 1.21.1
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,7 @@ public void generateTranslations(RegistryWrapper.WrapperLookup registryLookup, T
translationBuilder.add(ConventionalEntityTypeTags.BOSSES, "Bosses");
translationBuilder.add(ConventionalEntityTypeTags.MINECARTS, "Minecarts");
translationBuilder.add(ConventionalEntityTypeTags.BOATS, "Boats");
translationBuilder.add(ConventionalEntityTypeTags.ANIMALS, "Animals");
translationBuilder.add(ConventionalEntityTypeTags.CAPTURING_NOT_SUPPORTED, "Capturing Not Supported");
translationBuilder.add(ConventionalEntityTypeTags.TELEPORTING_NOT_SUPPORTED, "Teleporting Not Supported");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,45 @@ protected void configure(RegistryWrapper.WrapperLookup registries) {
getOrCreateTagBuilder(ConventionalEntityTypeTags.BOATS)
.add(EntityType.BOAT)
.add(EntityType.CHEST_BOAT);
getOrCreateTagBuilder(ConventionalEntityTypeTags.ANIMALS)
.add(EntityType.ARMADILLO)
.add(EntityType.AXOLOTL)
.add(EntityType.BEE)
.add(EntityType.CAMEL)
.add(EntityType.CAT)
.add(EntityType.CHICKEN)
.add(EntityType.COD)
.add(EntityType.COW)
.add(EntityType.DOLPHIN)
.add(EntityType.DONKEY)
.add(EntityType.FOX)
.add(EntityType.FROG)
.add(EntityType.GLOW_SQUID)
.add(EntityType.GOAT)
.add(EntityType.HOGLIN)
.add(EntityType.HORSE)
.add(EntityType.LLAMA)
.add(EntityType.MOOSHROOM)
.add(EntityType.MULE)
.add(EntityType.OCELOT)
.add(EntityType.PANDA)
.add(EntityType.PARROT)
.add(EntityType.PIG)
.add(EntityType.POLAR_BEAR)
.add(EntityType.PUFFERFISH)
.add(EntityType.RABBIT)
.add(EntityType.SALMON)
.add(EntityType.SHEEP)
.add(EntityType.SKELETON_HORSE)
.add(EntityType.SNIFFER)
.add(EntityType.SQUID)
.add(EntityType.STRIDER)
.add(EntityType.TADPOLE)
.add(EntityType.TRADER_LLAMA)
.add(EntityType.TROPICAL_FISH)
.add(EntityType.TURTLE)
.add(EntityType.WOLF)
.add(EntityType.ZOMBIE_HORSE);
getOrCreateTagBuilder(ConventionalEntityTypeTags.CAPTURING_NOT_SUPPORTED);
getOrCreateTagBuilder(ConventionalEntityTypeTags.TELEPORTING_NOT_SUPPORTED);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
"tag.enchantment.c.increase_block_drops": "Increases Block Drops",
"tag.enchantment.c.increase_entity_drops": "Increases 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",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"values": [
"minecraft:armadillo",
"minecraft:axolotl",
"minecraft:bee",
"minecraft:camel",
"minecraft:cat",
"minecraft:chicken",
"minecraft:cod",
"minecraft:cow",
"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"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ private ConventionalEntityTypeTags() {

public static final TagKey<EntityType<?>> MINECARTS = register("minecarts");
public static final TagKey<EntityType<?>> BOATS = register("boats");
public static final TagKey<EntityType<?>> ANIMALS = register("animals");

/**
* Entities should be included in this tag if they are not allowed to be picked up by items or grabbed in a way
Expand Down
Loading