Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-161076

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

XMLWordPrintable

    • Icon: Bug 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:

      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.

            bobmhac bobmhac
            Votes:
            2 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              CHK: