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

Inconsistent use of error message for invalid block name

XMLWordPrintable

    • Unconfirmed

      The bug

      The translations that are used when the game tries to get a block or item from a name id are

      commands.give.item.notFound=There is no such item with name %d
      commands.give.block.notFound=There is no such block with name %d
      

      There error messages are shown for nearly any command including the /setblock command.

      The /testforblock command is an exception because it uses a different translation:

      commands.setblock.notFound=There is no such block with ID/name %s
      

      This is pretty inconsistent and not needed as the other error message could be used instead.


      In 1.11 the translation commands.setblock.notFound is still used but only if the parse block is null which is never the case anymore because if a block with that name does not exist an exception with the translation commands.give.block.notFound is thrown.

            Unassigned Unassigned
            marcono1234 Marcono1234
            Votes:
            3 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: