[Feature Request] Mob Behavior Related Conventional Entity Type Tags
MerchantCalico opened this issue · 1 comments
NeoForge Issue: neoforged/NeoForge#2084
Hi, the conventional entity type tags are in my opinion missing quite an important tag within them that would greatly benefit mods such as my own Barricade which reference the behaviour type of a mob.
While you could always check for hostile, passive and mob classes in code, this is not ideal for cases where datapacks are involved. So here's my proposal..
c:mobs - Tag for entity types that are mobs. (Includes: Zombies, Creepers, etc. Does not include Boats, Minecarts or Armor Stands, etc.)
c:mobs/passive - Tag for passive mobs, such as Sheep and Cow.
c:mobs/hostile - Tag for considered hostile mobs, such as Zombies and Skeletons.
c:mobs/neutral - Tag for neutral mobs, such as Wolves, and Spiders.
The below isn't necessarily important, but I feel it could help with some specific instances of mob related checks where the entity is neutral but is moreso considered unfriendly such as Spiders or friendly such as Bees.
If we need more of a reference for neutral mobs that are often considered friendly/unfriendly, we could also add additional tags for that. The names may need a bit of work for these ones, but as an example.
c:mobs/friendly_neutral - Goats, Bees, Iron Golems, Wolves.
c:mobs/unfriendly_neutral - Piglin, Spiders.
Zombified Piglin are a bit of a gray area here, as technically they would be a friendly neutral, but that might not be desired behaviour for a mod implementing these tags.
Of course, if there is demand, I'd be happy to PR the tags.
Last time this came up, it was pointed out that modded mobs can easily change behaviors in ways that tags are impossible to detect.
For example, Rootmins in Bumblezone shoot at all players unless they wear bee armor, then they are passive.
What if a mod has it where a mob spawn with a random chance of being hostile or passive? What do they tag it then?
This is a deep can of worms and I don’t think tags is the right solution for this.