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

Inconsistent use of error message for invalid block name

    XMLWordPrintable

    Details

    • Confirmation Status:
      Unconfirmed

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                marcono1234 [Mod] Marcono1234
              • Votes:
                3 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Potential Duplicates