Written Books do not support JSON when naming them or its author; in other words, using the "title" or "author" tag on Written Books in order to do so. Using the "display" tag on other items supports JSON however.
What I expected to happen was...:
When I type in a specific command to name a Written Book, it should have Hello! as its name.
What actually happened was...:
It just became a raw string instead of a customized name; refer to pictures below for more information.
Steps to Reproduce:
1. Type in the specified command below.
2. Notice that it is just a raw string instead of a customized name. How can I customize names of Written Books now without having to use this symbol (§)?
Linked issues
Attachments
Comments 5
I did quote the JSON in this command *
/give @p written_book{title:"{\"text\":\"Hello!\",\"color\":\"red\"}"}
but still it displayed
{"text":"Hello!","color":"red"}
as its name, not the body instead of Hello!. JSON works on the body of the Written Book, but it does not work when naming them. What do I do?
You have to quote the JSON text, see MC-62866