mojira.dev
MC-70967

About "extra" tag

I notice some issue like this.

MC-61379
MC-59504

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.

Linked issues

Comments 10

Not a bug.
You need to escape the quotes of the tags of extra in a special way, see MC-69241.

I am very confuse about the special way.
I fix my command after seeing MC-69241,but it still do not work.
Here is my fixed command.

/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 really do not know where I do something wrong.

Got it.That is a great thing,thanks for sharing.

Mind to share the solution ?

Oh No
Everything is great before I put the command which the "Tellraw Generator" gives me return to the "Tellraw Generator".

I want to get the command which shows a button,and the button could gives me a book which includes command.

Here is the process that I do.

I add "TEXT" with my command.
Later I get the command like this.(a button in book which trigger command)

/give @a written_book 1 0 {pages:["{\"text\":\"\",\"extra\":[{\"text\":\"TEXT\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"setblock ~ ~1 ~ air\"}}]}"],title:Book,author:TellrawGenerator}

Then I put this as a command in a "tellraw". (clickEvent)

/tellraw @a {"text":"","extra":[{"text":"TEXT","clickEvent":{"action":"run_command","value":"/give @a written_book 1 0 {pages:[\"{\\\"text\\\":\\\"\\\",\\\"extra\\\":[{\\\"text\\\":\\\"TEXT\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"setblock ~ ~1 ~ air\\\"}}]}\"],title:Book,author:TellrawGenerator}"}}]}

I trigger this in Minecraft,and it says 'Unbalanced quotation'.

Does the command which tellraw generator gives me wrong?

Will ping @unknown to take a look.

Thank you for helping me for my little promblem

The command your trying to put in a run_command item is too long, it must be at most 90 characters. You need to find another way to do that.

https://github.com/ezfe/tellraw/issues/8

Okey...That 's a sad news.

kyob1010

(Unassigned)

Unconfirmed

Minecraft 1.8

Retrieved