Lore Books
Factory for creating in-game written books from lore entries.
This object handles the formatting and pagination of lore content into Minecraft's written book format, respecting line length and page limits.
Book Types
News Book: Weekly gazette with recent headlines
History Book: Player-facing narrative compilation of realm lore
Archive Book: Raw archive records for admin review
See also
for the source of lore entries
Properties
Title used for the admin-facing raw archive ledger.
Title used for the player-facing compiled history book.
Maximum title length for written books (Minecraft serialization limit).
Maximum characters per line before wrapping (vanilla-safe for written book rendering).
Maximum lines per book page (vanilla-safe for written book rendering).
Maximum entries included in a news book.
Prefix for weekly gazette book titles.
Prefix used for Lorekeeper-issued player biography titles.
Functions
Creates a player-facing realm history book from all lore entries.
Creates a weekly news book (Lorekeeper Gazette) from lore entries.
Creates a raw archive ledger book for admin review.
Extracts content from a player-written book.
Extracts only the author from a written book.
Extracts only the content from a written book.
Extracts only the title from a written book.
Formats a single lore entry for display in a book.
Formats the header line for a news gazette.
Returns the sale price stored on a submitted book copy.
Returns the submitting player's UUID string stored on a submitted book copy.
Returns the submitting player's display name stored on a submitted book copy.
Returns the submission timestamp stored on a submitted book copy, or 0 when absent.
Returns the total number of volumes for a submitted book copy.
Returns the 1-based volume number for a submitted book copy.
Checks if an ItemStack is a book issued by the Lorekeeper.
Returns true when the stack is a Lorekeeper issued copy of a submitted player book.