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

Error message for selectors not finding any entity is ambiguous when more than one selector was used

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • Minecraft 18w01a, Minecraft 1.13.1, 21w03a, 1.16.5, 21w06a, 21w07a, 21w08b, 1.17.1, 1.18.2, 1.19 Pre-release 1, 1.19, 22w24a, 1.19.4, 1.21.4
    • None
    • Confirmed
    • (Unassigned)

      This affects commands like /teleport. For example:

      1. Kill all pigs:
        /kill @e[type=pig]
        
      2. Run
        /teleport @e[type=chicken,limit=1] @e[type=pig,limit=1]
        
      3. "No entity was found" is printed in chat

      However, from the error message it is not clear which selector found no entities. The error message should print the entity selector with it to fix this issue, like it did in 1.12.2.

        1. MC-124052.mp4
          2.71 MB
        2. MC-124052.png
          MC-124052.png
          633 kB

            Unassigned Unassigned
            redstonehelper [Mod] redstonehelper
            Votes:
            4 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              CHK: