fabric icon indicating copy to clipboard operation
fabric copied to clipboard

Add conventional tag for all animals

Open CammiePone opened this issue 1 year ago • 1 comments

I'm currently working on a mod, and found a sudden need for a tag that included all animals, ideally one that other mods would include their animals in. It doesn't exist in the base game, and this is the next best thing.

As for why I can't just use an instanceof check, it's because I also need to cover players, illagers, villagers, and wandering traders while still allowing the list of acceptable entities to be configurable by the end user. I'm using a tag of my own, and then including players, villagers, and wandering traders explicitly, then using the existing minecraft:illagers tag for all the illagers, and would like to use a c:animals tag for animals.

CammiePone avatar Oct 16 '24 04:10 CammiePone

I've already made a PR to NeoForge https://github.com/neoforged/NeoForge/pull/1596, and if wanted, I can make a PR to the 1.21.2 branch as well

CammiePone avatar Oct 16 '24 04:10 CammiePone

Seems fine to me

TelepathicGrunt avatar Oct 24 '24 22:10 TelepathicGrunt

What counts as an animal? You're missing Bats, but I assume that's an oversight. But I see you have, for example, the Strider - so fictional mobs count - but not the Allay. What exactly excludes that? But then, Vexes are corrupted Allays, so maybe them too... Do Spiders, Cave Spiders, and Silverfish count, despite also being monsters? If so, what about Endermites, Phantoms, Ravagers, Guardians and Elder Guardians? You have Hoglins, so I assume being hostile doesn't exclude something - though you're missing the Zoglin despite having the Zombie Horse, which seems contradictory. But then what about Piglins, Piglin Brutes and Zombified Piglins? They're somewhat animal, too...

My point is, being 'animal' is somewhat arbitrary to a degree - I'm not opposed to there being a tag for it, but there would need to be a consensus on what counts.

Shnupbups avatar Nov 09 '24 17:11 Shnupbups

@CammiePone Can you add a javadoc to the tag on fabric and neo to say the tag is specifically about mobs that extend Animal class? This means bats, cods, spiders, tadpole, and other creatures are excluded from the tag. If this is not what you were looking for with the animal tag, then some rethinking might be needed. Maybe it should be c:breedable for mobs that can be bred. Not restricted to Animal class. Or c:feedable? Or something else

TelepathicGrunt avatar Nov 09 '24 18:11 TelepathicGrunt

yeah, i can do that when i get home

CammiePone avatar Nov 09 '24 22:11 CammiePone

After discussion on discord, we are unsure that this is something we want to add as its not super clear what is and isn't an animal. Im happy to discuss this more if there is a stong need for it. Ill close the PR for now, thanks.

modmuss50 avatar Feb 16 '25 14:02 modmuss50