Datapack Codex

Data component format/writable book content

Minecraft Wiki article. Categories: Top-level_data_pages

📌 Mirrored from Minecraft Wiki

This article is reproduced from Data component format/writable book content on the Minecraft Wiki. Mirrored from revision 3277474. It is licensed CC BY-NC-SA 3.0 by the Minecraft Wiki contributors — not under the Codex’s CC BY-SA 4.0, and it may not be used commercially. Edits belong upstream, not here.

    • [NBT Compound / JSON Object] minecraft:writable_book_content: The contents of this book and quill. Adding this component to any item other than a writable_book does nothing. If this component is removed from a writable_book item, attempting to use the item will still swing the arm and increment its used statistic, but no UI will appear.
      • [NBT List / JSON Array] pages: A list of the pages in the book.
        • [String][NBT Compound / JSON Object] title: The title of this written book. If set to a string, it corresponds to [String] raw.
          • [String] raw: The plain text content of the page.
          • [String] filtered: The filtered text of the page. Optional. Shown only to players with chat filter enabled, instead of [String] raw.

Sources