Skip to content

Fix HurtByTargetGoal target reasons on 26.2 - #22

Merged
slyphmp4 merged 2 commits into
ver/26.2from
fix/hurt-by-target-reason-26.2
Aug 25, 2026
Merged

Fix HurtByTargetGoal target reasons on 26.2#22
slyphmp4 merged 2 commits into
ver/26.2from
fix/hurt-by-target-reason-26.2

Conversation

@slyphmp4

Copy link
Copy Markdown
Owner

Adds CraftBukkit/Paper-compatible Bukkit target reasons for HurtByTargetGoal on Minecraft 26.2.

  • HurtByTargetGoal.start() now reports TARGET_ATTACKED_ENTITY.
  • HurtByTargetGoal.alertOther(...) now reports TARGET_ATTACKED_NEARBY_ENTITY.
  • Registers the new mixin in bukkitfabric.mixins.json.

This addresses the remaining Unknown target reason warning observed when a mob, such as a skeleton, targets the entity that attacked it.

@slyphmp4
slyphmp4 merged commit 8b62de4 into ver/26.2 Aug 25, 2026
3 checks passed
@slyphmp4
slyphmp4 deleted the fix/hurt-by-target-reason-26.2 branch August 25, 2026 04:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant