Skip to content

Add EntityAvoidEntityEvent#10835

Closed
joshuaprince wants to merge 1 commit into
PaperMC:masterfrom
joshuaprince:avoid-event
Closed

Add EntityAvoidEntityEvent#10835
joshuaprince wants to merge 1 commit into
PaperMC:masterfrom
joshuaprince:avoid-event

Conversation

@joshuaprince
Copy link
Copy Markdown
Contributor

@joshuaprince joshuaprince commented May 31, 2024

Add a new event for when an entity avoids another entity.


This is a replacement for #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.

  • Fish -> Player
  • Dolphin -> Guardian
  • Fox -> Player, Wolf, Polar Bear
  • Skeleton -> Wolf
  • Creeper -> Ocelot, Cat
  • Evoker -> Player
  • Spider -> Armadillo
  • Wandering Trader -> Zombie and Illager variants
  • Ocelot, Cat -> Player
  • Panda -> Player
  • Rabbit -> Player
  • Wolf -> Llama
  • Armadillo -> Player, Undead
  • Villager -> Zombie and Illager variants

(should this be documented somewhere?)

Add a new event for when an entity avoids another entity.
@Warriorrrr Warriorrrr moved this from Awaiting final testing to Waiting For Author in Paper PR Queue Mar 5, 2025
@kennytv kennytv added the pre-softspoon: never rebased Pre-hardfork pull requests that were not re-opened with the new main branch label Mar 23, 2025
@kennytv kennytv deleted the branch PaperMC:master March 23, 2025 19:15
@kennytv kennytv closed this Mar 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pre-softspoon: never rebased Pre-hardfork pull requests that were not re-opened with the new main branch pre-softspoon

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants