Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-275975

Missing space in 'Unknown element name' error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.21.1, 24w34a, 24w36a, 24w39a, 24w40a, 24w45a, 1.21.4, 25w02a
    • None
    • Community Consensus
    • Commands, Text
    • Low
    • Platform

      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'

            Unassigned Unassigned
            haykam haykam
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              CHK: