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

Client crashes when using a translate text component with invalid "with" data in custom name for item

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 1.14, Minecraft 1.14.2, Minecraft 1.14.3 Pre-Release 2
    • Fix Version/s: None
    • Labels:
      None
    • Confirmation Status:
      Confirmed
    • Category:
      Crash

      Description

      The bug

      The client crashes when trying to resolve the text component. This happens when the game tries to cast a JsonPrimitive or a JsonObject to a JsonArray.

      How to reproduce

      1. Execute the following command:
        /give @s minecraft:acacia_boat{display:{Name:'{"translate":"record.nowPlaying","with":"test"}'}}
        
      2. Hover over the boat that now is in your inventory, or select it in the hotbar
        Your client crashes

      This can also be done through data modify set but not with just a tellraw

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                Kroppeb Kroppeb
              • Votes:
                4 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  CHK: