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

\n doesn't work when run by "run_command"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • Minecraft 1.8.2-pre1
    • None
    • Windows 7 Professional, Java 8 Update 25
    • Unconfirmed

      Using:

      tellraw @p {text:"Line1\nLine2 <-- click",color:green,clickEvent:{action:run_command,value:"/tellraw @p {text:'Line1\nLine2',color:red}"}}

      at a command block, I get this message in the chat:

      Line1
      Line2 <-- click

      After clicking on it I get:

      Line1 Line2

      I think, to use the "\n" in "Line1\nLine2" I should get:

      Line1
      Line2

            Unassigned Unassigned
            johnkcraft João Mambelli
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: