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

If "execute if" fails for one entity, it fails for all

    XMLWordPrintable

    Details

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

      Description

      There is a bug with "/execute if" when you nest multiple arguments.
      For example, if you use a command like "/execute as @e[type=creeper] at @s if block ~ ~-1 ~ concrete run effect give @s levitation" you would normally expect that creepers that are standing on concrete will get the levitation effect and creepers that are not standing on concrete won't. Because of this bug even if only one creeper is not standing on concrete the execute fails for every single executing entity (creeper).
      I'm guessing that happens because the game proceses all selectors in an execute command first and determines if the execute was succesful later, instead of checking for each entity/selector individually.
      Note: I am re-posting this bug report because the bot automatically marked my previsous report as resolved

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                mc_da Minecraft by da
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Potential Duplicates