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

writable book and written book have a different data structure in the raw component

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Works As Intended
    • None
    • 1.20.6
    • windows 11,
      java (build 1.8.0_401-b10)
    • Unconfirmed
    • Commands

      doing

      /data get @s Inventory[0].components.minecraft:writable_book_content.pages[0]

       on a writable book will return {raw: "text"} so using this in something like a macro will give text but using

      /data get @s Inventory[0].components.minecraft:written_book_content.pages[0]

       on a written book returns {raw: '"text"'} so in a macro it will give "text" side by side that's

      text , "text"

      the written book has extra quotes witch makes it imposable to convert between them or run functions from a written book as you can not use quotes in a function name

            Unassigned Unassigned
            ObsidianMonolith ObsidianMonolith
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: