Add a new event for when an entity avoids another entity.
This is a replacement for https://github.com/PaperMC/Paper/pull/10798. The original intent was to fire an event when an armadillo rolls up, but this covers even more entities to be as generic as possible.
Affected Entities
I tested with these entities (all entities that have an AvoidEntityGoal, plus extra handling for armadillos and villagers). Cancelling the event behaves as expected, and in some cases, ends violently.
Add a new event for when an entity avoids another entity.
This is a replacement for https://github.com/PaperMC/Paper/pull/10798. The original intent was to fire an event when an armadillo rolls up, but this covers even more entities to be as generic as possible.
Affected Entities
I tested with these entities (all entities that have an AvoidEntityGoal, plus extra handling for armadillos and villagers). Cancelling the event behaves as expected, and in some cases, ends violently.
(should this be documented somewhere?)