Mojira Archive
MC-90296

Written books cannot be tested with pages tag

When creating a written book with customized pages using valid command, a book expected was created. The command was:

/give @p minecraft:written_book 1 0 {title:"1",author:"abc",pages:["1","2"]}

But when it was put into a chest in the first slot, it can't be tested if the tag tag included the pages tag of this written book.
For example:

/testforblock ~ ~ ~2 minecraft:chest -1 {Items:[{id:"minecraft:written_book",tag:{author:"abc"}}]}

This worked well.

But when the command changed, by adding a pages tag, like this:

/testforblock ~ ~ ~2 minecraft:chest -1 {Items:[{id:"minecraft:written_book",tag:{author:"abc",pages:["1","2"]}}]}

It couldn't be tested.
The command was changed to these, but no one worked:

/testforblock ~ ~ ~2 minecraft:chest -1 {Items:[{id:"minecraft:written_book",tag:{author:"abc",pages:["{text:\"1\"}","{text:\"2\"}"]}}]}
/testforblock ~ ~ ~2 minecraft:chest -1 {Items:[{id:"minecraft:written_book",tag:{author:"abc",pages:["{text:\"1\",color:\"black\"}","{text:\"2\",color:\"black\"}"]}}]}
/testforblock ~ ~ ~2 minecraft:chest -1 {Items:[{id:"minecraft:written_book",tag:{author:"abc",pages:["{\"text\":\"1\"}","{\"text\":\"2\"}"]}}]}

Invalid

stop.x

2015-10-10, 04:08 PM

2015-11-07, 04:55 PM

2015-11-06, 01:33 AM

0

3

Unconfirmed

json, testforblock, written-book

Minecraft 15w41b

-