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

\n and \u in written books do not work

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Works As Intended
    • Affects Version/s: Minecraft 17w17a, Minecraft 17w17b
    • Fix Version/s: None
    • Labels:
    • Confirmation Status:
      Unconfirmed

      Description

      \n in written books not creating new line, giving the error below.

      Data tag parsing failed: Invalid escape of 'n' at: {pages:["[\"\",{\"text\":\"one\n<--[HERE] This is an example below, works in versions 17w15a and lower. {code}

      /give @p written_book 1 0 {pages:["[\"\",

      {\"text\":\"one\ntwo\nthree\"}

      ]"],title:Test,author:Test}

      
      

      This issue was reported in MC-116553 but not enough information was given.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              TheBenassi Benjamin Nitschke
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: