mojira.dev
MC-73768

"/tellraw" command will not work properly inside a command block after a certain length

I am currently trying to make a "/tellraw" command that has multiple "/tellraw" commands inside of it:

/tellraw @a {text:"Click this",clickEvent:{action:run_command,value:"/tellraw @a {text:'This too',clickEvent:{action:run_command,value:'/tellraw @a {text:\"Quit wast\"}'}}"}}

First text displayed: "Click this". When clicked, displays new text: "This too". When clicked, displays new text: "Quit wast".

Now this works perfectly fine, but as soon as I add another letter to "Quit wast" (because I want it to say 'Quit wasting your time'), it gives me an error message after I click "Click this": "Invalid json: End of input at line 1 column 89". This is the code that gives the error message:

/tellraw @a {text:"Click this",clickEvent:{action:run_command,value:"/tellraw @a {text:'This too',clickEvent:{action:run_command,value:'/tellraw @a {text:\"Quit wasti\"}'}}"}}

*Note: All I did was add an "i" to "Quit wast". Same result if more is added.

Thank you!

Linked issues

Comments 1

Hobo10000000000

(Unassigned)

Unconfirmed

Minecraft 1.8

Retrieved