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

"execute as...if" works incorrectly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 17w46a
    • None
    • Unconfirmed

      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)

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

              Created:
              Updated:
              Resolved: