mojira.dev
MC-172432

Command error messages for invalid ids are incomplete if id is malformed

The bug

Commands which use ids (e.g. block, entity or item ids) show incomplete error messages when the id is malformed, i.e. is not a valid resource location consisting of [a-z0-9/._-]:

/give @s does_not_exist

✔ "Unknown item 'minecraft:does_not_exist'"

/give @s Does_not_exist

❌ "Unknown item 'minecraft:'"
The entered id is not contained in the error message

How to reproduce

/give @s Does_not_exist
/setblock ~ ~ ~ Does_not_exist
/summon Does_not_exist

Linked issues

Attachments

Comments 9

Can confirm in 20w49a.

Can confirm in 20w51a.

Can confirm in 21w03a.

Can confirm in 1.17.

Can confirm in 1.17.1.

Can confirm in 1.18.1.

Can confirm in 1.18.2 and 22w15a.

Can confirm in 1.19.

Can confirm in 1.19.2.

marcono1234

(Unassigned)

Confirmed

Platform

Low

Commands

20w07a, 1.16.3, 20w49a, 20w51a, 21w03a, ..., 1.19.3, 23w05a, 1.19.4, 1.20 Pre-release 1, 1.21.4

Retrieved