mojira.dev
MC-75886

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

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

Attachments

Comments 5

man, you will not believe, I have found, the command must be

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

I think as it is a "second command" that have to take another "\".

As I close the issue?

Wow, seth... u.u but why go ahead?

@"[Mod] Sethbling" : Please change your username to something else. Impersonating Mods or well known people is not tolerated here.

tks kumasasa for close the issue

João Mambelli

(Unassigned)

Unconfirmed

Minecraft 1.8.2-pre1

Retrieved