Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-90296

Written books cannot be tested with pages tag

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Invalid
    • Affects Version/s: Minecraft 15w41b
    • Fix Version/s: None
    • Environment:
      windows 7
    • Confirmation Status:
      Unconfirmed

      Description

      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\"}"]}}]}

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              stop_x13 stop.x
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: