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

If and else selectors in functions don't work if there's more than 1 successful entity

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Duplicate
    • Affects Version/s: Minecraft 1.12 Pre-Release 5
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      In my singleplayer world

    • Confirmation Status:
      Unconfirmed

      Description

      I put this in chat with chosen mobs around
      function name:name if @e[name=name]
      Pretty sure that worked

      When I put this into a function:
      execute @s ~ ~ ~ function name:name if @e[name=name]
      it wouldn't work because there was more than 1 mob that had been found by the selector
      (If you've seen my last bug report you'd understand why I added the execute thing)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                SaltyBurrito824 Adam
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: