Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-260763

Interaction entities' {attack:{____}} does not detect attacks from player's projectiles

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Works As Intended
    • None
    • 1.19.4 Pre-release 3, 1.19.4 Pre-release 4, 23w35a
    • None
    • Confirmed
    • Entities

      The only time {attack:{}} gets updated in an interaction entity is upon LeftClick (punch).

      Due to the way "on attacker" works inside the /execute command, the assumed result would be anytime interaction is attacked but it only works with LeftClick.

       

      Reproduce:

      Summon a minecraft:interaction.
      Use either execute on attacker or @s[nbt=\{attack:{}}] to detect when it is attacked
      It will only update on punch, not on projectile

      Now summon a minecraft:pig (or anything similar)
      Use execute on attacker to detect when it is attacked
      It will update on punch, or projectile, or any other attack on it

            Unassigned Unassigned
            1kingsam the1kingsam
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: