-
-
Notifications
You must be signed in to change notification settings - Fork 179
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 #1596
base: 1.21.x
Are you sure you want to change the base?
Conversation
|
I've also already made a PR to Fabric API FabricMC/fabric#4168 |
src/main/java/net/neoforged/neoforge/common/data/internal/NeoForgeEntityTypeTagsProvider.java
Outdated
Show resolved
Hide resolved
If we are going to be adding |
if other people want it, im down to make it happen |
Should this be generated by running over |
The only problem with that is it doesn't let modders opt-in to if the animal is in the tag or not, or what if they've made an animal but extended a different class for some reason. It would need to be written like Cammie has I believe, but I do agree with Apex and think we should extend it out into subtags too, especially for ones like squids and fish |
Mods would not be affected by how the tag is generated. NeoForge datagen is only run in the NeoForge repo. But the downside is, of course, the lack of ability to do subtags, and I do think subtags should be done. |
I considered iterating over all entities in the registry and grabbing those that extended Animal, but i didnt because none of the other tags did. I felt like parity with how the other tags were handled was better, even if it was more annoying on my end to have to write everything manually. happy to change it in whatever way though |
Definitely stick with what you have so far, don't generate it automatically. I do think maybe if more people agree about subtagging the animals that might be a good shout |
dont generate automatically tbh. And subtagging every individual animal may be overkill. Might be better to wait for some modders to come in with actual use cases first that would use the subtags |
Some ambiguity and objections came up here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Per the failed check, please run runData
locally and commit the results.
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 existingminecraft:illagers
tag for all the illagers, and would like to use ac:animals
tag for animals.