Extra tag in tellraw on signs has problems with tellraw as clickEvent
This relates to: MC-59504 but is not a duplicate
It seems like the extra-tag in signs (and maybe books) is broken, or has problems with analysing commands (at least tellraw commands) in the clickEvent-tag:
Without extra-tag
/setblock ~ ~1 ~ standing_sign 5 replace {Text1:"{text:'CLICK',clickEvent:{action:run_command,value:'/tellraw @p {text:\"Hi\"}'}}"}
With extra-tag
/setblock ~ ~1 ~ standing_sign 5 replace {Text1:"{extra:[{text:'CLICK',clickEvent:{action:run_command,value:'/tellraw @p {text:\"Hi\"}'}}]}"}
This won't work
Created Issue:
Extra tag in tellraw on signs has problems with tellraw as clickEvent
This relates to:
MC-59504but is not a duplicateIt seems like the extra-tag in signs (and maybe books) is broken, or has problems with analysing commands (at least tellraw commands) in the clickEvent-tag:
Without extra-tag
/setblock ~ ~1 ~ standing_sign 5 replace {Text1:"{text:'CLICK',clickEvent:{action:run_command,value:'/tellraw @p {text:\"Hi\"}'}}"}With extra-tag
/setblock ~ ~ ~ standing_sign 5 replace {Text1:"{extra:[{text:'CLICK',clickEvent:{action:run_command,value:'/tellraw @p {text:\"Hi\"}'}}]}"}
This relates to:
MC-59504but is not a duplicateIt seems like the extra-tag in signs (and maybe books) is broken, or has problems with analysing commands (at least tellraw commands) in the clickEvent-tag:
Without extra-tag
/setblock ~ ~1 ~ standing_sign 5 replace {Text1:"{text:'CLICK',clickEvent:{action:run_command,value:'/tellraw @p {text:\"Hi\"}'}}"}With extra-tag
/setblock ~ ~ ~ standing_sign 5 replace {Text1:"{extra:[{text:'CLICK',clickEvent:{action:run_command,value:'/tellraw @p {text:\"Hi\"}'}}]}"}This won't work
This relates to:
MC-59504but is not a duplicateIt seems like the extra-tag in signs (and maybe books) is broken, or has problems with analysing commands (at least tellraw commands) in the clickEvent-tag:
Without extra-tag
/setblock ~ ~1 ~ standing_sign 5 replace {Text1:"{text:'CLICK',clickEvent:{action:run_command,value:'/tellraw @p {text:\"Hi\"}'}}"}With extra-tag
/setblock ~ ~1 ~ standing_sign 5 replace {Text1:"{extra:[{text:'CLICK',clickEvent:{action:run_command,value:'/tellraw @p {text:\"Hi\"}'}}]}"}This won't work
is duplicated by
I notice some issue like this.
Is single quotes the answer of this issue?
---------------------------------------------
I have a problem about the command.
When I trigger this,it works.
/tellraw @p {text:"",extra:[{text:"Book",clickEvent:{action:run_command,value:"/give @p minecraft:written_book 1 0 {title:\"Book\",author:\"kyob\",pages:[\"{text:\"\"}\"]}"}}]}
After I add the "extra" tag,it does not work.
/tellraw @p {text:"",extra:[{text:"Book",clickEvent:{action:run_command,value:"/give @p minecraft:written_book 1 0 {title:\"Book\",author:\"kyob\",pages:[\"{text:\"\",extra:[{text:\"TEXT\"}]}\"]}"}}]}
I hope that Mojang could find the bug of this.
Thank you for notice it.
Duplicate of MC-61379.
The onClick events only work on the root tag on signs, not in the extra tags. This may or may not change in the future, but for now it's WAI.