Addon creators can enable an entity to become angry when a mob in their family group is attacked by a target or player, but when you try to kill an entity's offspring, you CAN'T specify the parents to become angry and broadcast it to surrounding mobs. This is weird because babies have no problem going aggro themselves; why can't it also work the other way around?
I believe this is something that is hard-coded into the game since polar bears display this behavior. I checked the documentation and examined the polar bear's entity files, I know for sure that this feature is inaccessible to addon makers. To implement this, I'd add a new component group called, "minecraft:behavior_on_baby_hurt" (you would obviously use this for the adult entity), or something similar. Then, set the priority and state the following:
"event": {
"event": minecraft:become_angry",
"target": self
Of course, it would be preferred if we also had the option to broadcast an entity's anger (which would be configured as normal). I hope my explanation was clear, I'll attempt to explain it better if asked. Please upvote my post if you agree and share your thoughts in the comments!
Please sign in to leave a comment.
0 Comments