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

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 1.12 Pre-Release 5
    • None
    • In my singleplayer world
    • Unconfirmed

      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)

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

              Created:
              Updated:
              Resolved: