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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 20w07a, 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
    • None
    • Confirmed
    • Commands
    • Low
    • Platform

      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
      

        1. MC-172432.mp4
          5.14 MB
        2. MC-172432.png
          MC-172432.png
          202 kB

            Unassigned Unassigned
            marcono1234 Marcono1234
            Votes:
            8 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              CHK: