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

Execute on owner does not work for arrows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Awaiting Response
    • None
    • 1.21.1
    • None
    • Windows 11, Java 8
    • Unconfirmed
    • (Unassigned)

      When running /execute on owner as an arrow, commands are not run as the owner, despite the arrow having an Owner in its NBT.

       

      Steps to reproduce:

      fire an arrow from a bow or crossbow

      /data get entity @e[type=arrow,limit=1,sort=nearest] Owner

      (confirms that arrow has an owner)

      /execute as @e[type=arrow,limit=1,sort=nearest] on owner run say hello world

       

      Expected Result:
      Arrow owner says "hello world" in the chat

       

      Actual Result:
      Nothing is said in chat

       

      Why it is expected to work:

      taming a wolf then running the same commands but replacing 'type=arrow' with 'type=wolf' on the tamed wolf works. Both have the same Owner NBT tag in the same format, thus they should function the same way.

            Unassigned Unassigned
            ParadocOfTheHeap Josh DaBoss
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: