mojira.dev
MC-57866

Written books with JSON don't get created correctly (no color and styles)

I already saw screenshots where this bug weren't, but for me the the colors and styles aren't visible:

/give @p written_book 1 0 {title:"Getting around",author:"Searge",pages:["{text:\"Welcome, \",extra:[
{selector:\"@p\",color:red}
,
{text:\"\n\nthis is your list of destinations:\n\n\"}
,{text:\"1. \",color:orange,extra:[
{text:\"Spawn\",color:dark_green,bold:true}
],hoverEvent:
{action:show_text,value:\"This worlds spawn point\"}
,clickEvent:{action:run_command,value:\"/tp @p -305 56 169\"}},
{text:\"\n\"}
,{text:\"2. \",color:orange,extra:[
{text:\"Home\",color:dark_green}
],hoverEvent:
{action:show_text,value:\"Your main base\"}
,clickEvent:{action:run_command,value:\"/tp @p 5 56 96\"}},
{text:\"\n\"}
,{text:\"3. \",color:orange,extra:[
{text:\"Mine\",color:dark_green}
],hoverEvent:
{action:show_text,value:\"The old mines\"}
,clickEvent:{action:run_command,value:\"/tp @p 15 56 -318\"}},
{text:\"\n\nPlease click one of them, \"}
,
{selector:\"@p\",color:red}
]}"]}

Attachments

Comments 1

You don't need all those backslashes btw. Just use ' instead of ". The quote marks marking the start and end of the page are the only proper quote marks you need to leave in.

Marcono1234

SeargeDP

Unconfirmed

book, color, command, json, style, tellraw

Minecraft 14w25b

Minecraft 14w26a

Retrieved