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

execute on multiple entites cancels, once one command fails

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 17w45a
    • Fix Version/s: Minecraft 17w45b
    • Labels:
    • Confirmation Status:
      Confirmed

      Description

      Having an execute running as multiple entities will cancel for the rest of the entities if one of these fails.

      Steps to reproduce:

      1. Place down one stone block surrounded by two non-stone blocks
      2. Place an armor stand on top of each block
      3. Run the following command while standing on the left of the line:
        execute as @e[type=armor_stand,sort=nearest] at @s run setblock ~ ~-1 ~ stone
        

      The expected behavior would be, that it will place stone under the two armor stands on the sides and leave the stone in the middle as is. This is not the case, because a setblock, that doesn't change anything (stone->stone) will fail and cancel the execute. Only one of the two stones got set.

      Furthermore, but this belongs to a separate bug-report, the order, that execute processes each entity is in my eyes in reverse. Even though nearest was specified, the further armor stand sets its block first, before the middle one canceled the rest of the execute.

        Attachments

          Activity

            People

            • Assignee:
              dinnerbone [Mojang] Dinnerbone (Nathan Adams)
              Reporter:
              Possseidon Dominik Vogel
            • Votes:
              5 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                CHK: