mojira.dev
MC-124052

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

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.

Linked issues

Attachments

Comments 9

Could you potentially update the command usage since it's different in the latest release of the game?

Can confirm in 21w05a. Thanks for updating the reproduction steps. I will try my best to keep this ticket updated from now on. 🙂

Can confirm in 21w06a.

Can confirm in 21w07a.

Can confirm in 1.16.5 and 21w08b.

Can confirm in 1.17.1.

Can confirm in 1.18.2 and 1.19 Pre-release 1.

Can confirm in 1.19 and 22w24a.

[Mod] redstonehelper

(Unassigned)

Confirmed

(Unassigned)

Minecraft 18w01a, Minecraft 1.13.1, 21w03a, 1.16.5, 21w06a, ..., 1.19 Pre-release 1, 1.19, 22w24a, 1.19.4, 1.21.4

Retrieved