mojira.dev
MC-279877

Angry neutral mobs will stay angry if the player is killed indirectly

Angering a neutral mob (e.g. an Iron Golem), then dying from a different source (e.g. fall damage), won't de-aggro the mob, even if the death message credits the mob (e.g. [Player] was doomed to fall by [Mob]). This is with forgiveDeadPlayers on.

 

Expected result:

The mob would no longer be angry after the player respawns.

 

Actual result:

The mob still attacks the player if they are nearby.

 

How to reproduce:

  1. Attack a neutral mob to make it angry.

  2. Let it hit you, without killing you.

  3. Die from a different source, such as fall damage.

  4. Respawn near the mob, it will still attack you. If it kills you directly (e.g. [Player] was slain by [Mob]), it will no longer be angry.

See a demonstration here.

Linked issues

Comments 0

No comments.

Xraymane

(Unassigned)

Confirmed

Platform

Normal

Mob behaviour

1.21.4, 25w04a, 1.21.5

Retrieved