mojira.dev
MC-123236

Wrong error message when using invalid item in /replaceitem

To reproduce, run the following command:

/replaceitem entity @p armor.chest cod

The expected error message is something like "[Raw Cod] cannot be applied to this slot," or even "Unable to replace the item." The actual error message is "The target does not have the specified slot."

Comments 1

Well, the correct error message was shown in 18w06a, I'll try the other versions...

tryashtar

coschevi

Confirmed

Minecraft 17w50a, Minecraft 18w01a, Minecraft 18w02a, Minecraft 18w03b, Minecraft 18w06a, Minecraft 18w08b, Minecraft 18w11a, Minecraft 18w16a, Minecraft 1.13-pre1, Minecraft 1.13-pre5

Minecraft 1.13-pre6

Retrieved