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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Duplicate
    • Affects Version/s: Minecraft 17w46a
    • Fix Version/s: None
    • Labels:
    • 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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: