i'm trying to make a more complex book using json, it was working before snapshot 14w26a, but now it only show invalid book tag
command to give(part of it):
/give @a written_book 1 0 {resolved:0b,title:"Creative Helper",author:"HeroProNight",pages:["{\"text\":\"\",\"extra\":[{\"text\":\"keepInventory \",\"color\":\"dark_aqua\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/gamerule keepInventory\"},\"hoverEvent\":{\"action\":\"show_text\",\"value\":\"keep inventory after death\"}}]}"]}
Linked issues
is duplicated by 8
Comments 16
@Dragonmcmx - there are some requirements that must be fulfilled before it works. You must have both a book "title" and author", which cannot exceed 16 characters. This particular report fulfills those requirements, and copy/pasting the command directly works just fine with no errors.
@Skylinerw, I meet all those requirements and still get those errors. Even if i don't add any json data to the book, it still outputs * Invalid Book tag *.And the books did work perfectly in 14w25b, so yeah.
@Dragonmcmx - it would be better if you'd provide the exact command(s) you're using if this relates to the bug report.
I have a book in 14w27b with no title and it works fine. So I don't think author has anything to do with this bug.
Confirmed for 14w28a
@qmagnet: Can't be, this ONLY affects books, that you give, probably not books that have been created in earlier versions.
Commands that cause invalid book tag:
No title
/give @p written_book 1 0 {author:"HI",pages:[]}
No author
/give @p written_book 1 0 {title:"HI",pages:[]}
No pages
/give @p written_book 1 0 {title:"HI",author:"Hi"}
Too long title
/give @p written_book 1 0 {title:"abcdefghijklmnopq",pages:[],author:"Hi"}
Probably in earlier versions, Minecraft itself added the missing tags (at the too long title bug I don't know what happened) but somehow maybe because of the JSON function of books it got lost so Minecraft has "incomplete" books, however you can leave "resolved" tag away)
Confirmed for
15w46a Probably does not become reopened anyway
Commands that cause invalid book tag:
No title
/give @p written_book 1 0 {author:"",pages:[]}
No author
/give @p written_book 1 0 {title:"",pages:[]}
No pages
/give @p written_book 1 0 {title:"",author:""}
Too long title (> 32)
/give @p written_book 1 0 {title:"abcdefghijklmnopqrstuvwxyz123456",pages:[],author:""}
I can't reproduce using the command you've provided, as it does work correctly.