setblock ~ ~1 ~ standing_sign 0 replace {Text1:"{color:blue,text:'Test',clickEvent:{action:run_command,value:'tellraw @p {text:"This is the output"}'}}"}
I put this command in a command block.
If I power the command block, nothing happens and the following error message appears, even though the command is correct.
[16:41:58] Data tag parsing failed: Unexpected token 'T' at: This is the output"}'}}"
Linked issues
is duplicated by 1
Comments 18
It says:
[16:50:31] Data tag parsing failed: Illegal use of \": {Text1:"{"color":"blue","text":"Test","clickEvent":{"action":"run_command","value""'tellraw @p {"text":\"This is the output\"}"}}"}
setblock ~ ~1 ~ standing_sign 0 replace {Text1:"{"color":"blue","text":"Test","clickEvent":{"action":"run_command","value":"tellraw @p {\"text\":\"This is the output\"}"}}"}
whoops, try this
Also this one does not work:
[17:00:02] Data tag parsing failed: Illegal use of \": {Text1:"{"color":"blue","text":"Test","clickEvent":{"action":"run_command","value":"tellraw @p {\"text\":\"This is the output\"}"}}"}
I don't know what the issue is, but the one I posted: https://bugs.mojang.com/browse/MC-69241?focusedCommentId=193421&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-193421 works.
Found it, I don't know why but it seems like even the ' now needs to be escaped...
MC-72194
You cannot nest quotation marks of the same type. They will always match with the nearest of the same type, unlike brackets. Brackets work because they have different symbols for the opening and closing, so it's possible to count them and match them correctly. Straight quotes, unlike curly quotes, cannot sensibly be parsed other than to match them to the nearest one.
You need to escape your quotes and use better syntax etc, first of all
Does this work, and if not what does it say