-
Bug
-
Resolution: Unresolved
-
None
-
1.19.20, 1.19.60, 1.20.30
-
None
-
Confirmed
-
Multiple
-
1157022
When using the component "minecraft:behavior.hurt_by_target", and no other target mechanism, melee attacks don't behave consistently when paired with the component "minecraft:angry". There may be other attack components, but these are the ones I tested.
Behavior:
- minecraft:behavior.melee_attack: entity will continue to attack if permitted to execute an attack within the duration of "minecraft:angry". If target maintains distance outside attack range for duration of "minecraft:angry", duration will expire and event will fire.
- minecraft:behavior.delayed_attack: regardless of engagement conditions (attacking or being attacked), "minecraft:angry" duration will expire and event will fire.
- minecraft:behavior.stomp_attack: regardless of engagement conditions (attacking or being attacked), "minecraft:angry" duration will expire and event will fire.
- minecraft:behavior.ocelotattack: regardless of engagement conditions (attacking or being attacked), "minecraft:angry" duration will expire and event will fire.
Expected behavior:
All attack behavior components should extend the duration of "minecraft:angry" if allowed to execute.
Steps to reproduce:
- Load a world with the attached Bug Test addon.
- Summon a Zombie Pigman with one of the following events:
- as_melee
- as_delayed_melee
- as_stomp
- as_ocelot
- Entity will behave as noted above when attacked.