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

"execute as...if" works incorrectly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Duplicate
    • Affects Version/s: Minecraft 17w46a
    • Fix Version/s: None
    • Labels:
      None
    • Confirmation Status:
      Unconfirmed

      Description

      make a new void world

      place a little grass, and one sapling

      place two armor_stands, one inside the sapling, one not

      run

      /execute as @e[type=armor_stand] run execute at @s if block ~ ~ ~ air run say hi
      

      or

      /execute as @e[type=armor_stand] at @s if block ~ ~ ~ air run say hi
      

      Expected: one armor stand says hi
      Actual: either 0 or 2 armor stands say hi, based on which one of them is older (kill them and place in opposite order to see the difference)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                brianmcn Brian McNamara
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: