Mojira Archive
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

Unresolved

Marcono1234

2020-02-16, 12:23 AM

2024-12-28, 11:42 AM

8

5

Confirmed

Low

Platform

Commands

20w07a - 1.21.420w07a, 1.16.3, 20w49a, 20w51a, 21w03a, 1.16.5, 1.17, 1.17.1, 1.18.1, 1.18.2, 22w15a, 1.19, 1.19.2, 1.19.3, 23w05a, 1.19.4, 1.20 Pre-release 1, 1.21.4

-