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

New line with \n doesn't work on items name or lore

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Duplicate
    • Affects Version/s: 1.14.4
    • Fix Version/s: None
    • Confirmation Status:
      Unconfirmed
    • Category:
      (Unassigned)

      Description

      When using commands to give an item with custom name and lore, the "\n" character is seen as a square, and no new line is created.

      For example, when using the command

      /give @a stone{display:{Name:"{\"text\":\"This is\\na test\"}", Lore:["{\"text\":\"Showing\\na bug\"}"]}}
      

      I get the item showed in the attached picture.

      Note that I escaped the backslash at the \n, if I don't, I get an error when executing the command.

      If this is working as intended, I would suggest a change, as lores are sometimes long.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                Kimani Juca Navaz Reque
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: