mojira.dev
MC-275975

The "Unknown element name" codec error is missing a space

The codec error produced for a string identifiable or many similar string-keyed objects misses a space, which is inconsistent with other errors.

To reproduce

1. Run the following command:

/give @s diamond_sword[consumable={animation:tater}]

2. Observe that the error produced is Malformed 'minecraft:consumable' component: 'Unknown element name:tater' instead of the expected Malformed 'minecraft:consumable' component: 'Unknown element name: tater'

Comments 1

Can confirm, if you can't tell the differnce between the two: the space should be placed after the colon, as highlighed bellow in red.
Malformed 'minecraft:consumable' component: 'Unknown element name{color:#de350b}*:*{color}tater'

haykam

etanaratsastaja

Community Consensus

Platform

Low

Commands, Text

1.21.1, 24w34a, 24w36a, 24w39a, 24w40a, 24w45a, 1.21.4, 25w02a

Future Update

Retrieved