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

\n and \u in written books do not work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Works As Intended
    • None
    • Minecraft 17w17a, Minecraft 17w17b
    • Unconfirmed

      \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.

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

              Created:
              Updated:
              Resolved: