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

Unable to use \n linebreaks with new text system

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 25w06a
    • None
    • Windows 11
    • Unconfirmed

      \n does not work anymore because of the new nbt text system.

      What I expected to happen was...:
      Using \n should make a linebreak in the text.

      What actually happened was...:
      it gives the error: Invalid escape sequence '\n' in quoted string.

      Steps to Reproduce:
      1. type /tellraw @s in the chat
      2. type \n for example "\n" or {text:"\n"}
      3. press enter

            Unassigned Unassigned
            learned learned
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: