Mojira Archive
MCPE-161076

Melee attacks inconsistently extend the duration of "minecraft:angry"

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:

  1. Load a world with the attached Bug Test addon.
  2. Summon a Zombie Pigman with one of the following events:
    • as_melee
    • as_delayed_melee
    • as_stomp
    • as_ocelot
  3. Entity will behave as noted above when attacked.

Unresolved

bobmhac

2022-08-17, 03:59 AM

2023-12-15, 04:12 PM

2

0

Confirmed

1157022

1.19.20, 1.19.60, 1.20.30

-