RPG Lore: Lore Books & Reading
On this page (5)
RPG Lore adds two items under the Tools & Utilities creative tab: the Lore Book (rpg_lore:lore_book) and the Lore Codex (rpg_lore:lore_codex). There are no crafting recipes, scrolls, or tablets—every lore entry in the game is a data-driven Lore Book.
Item appearance and tooltips
A populated Lore Book item has custom styling driven by its JSON definition and NBT:
- Item name: Bold colored book title (defaults to yellow
#FFFF55whentitle_coloris omitted). - Enchantment glint: Enabled by default (
show_glint: true). Blank template books obtained via/give @s rpg_lore:lore_bookwithout NBT do not glint. - Author line: Bold
By <author>(defaults to gray#AAAAAAin the tooltip). - Generation label: Shown in italics unless
hide_generationistrue:0— Original (gold)1— Copy (dark gray)2— Copy of Copy (dark gray)3— Tattered (dark gray)
- Description: If defined, shown below a
----------divider in italics (defaults to aqua#55FFFF). - Internal Lore ID: Hidden by default; pack makers can enable
display.showLoreIdInTooltip = truein Client configuration to inspect each book’slore_iddirectly in its tooltip.
The custom book reader
Right-clicking a Lore Book in your hand opens a custom book screen (textures/gui/book.png) distinct from vanilla written books:
- Auto-generated title page (page 0): Every Lore Book opens on a dedicated title page showing:
- The bold colored title, centered and scaled (
1.5xbase, stepped from1.0xdown to0.75x) across up to two lines, truncating with...only if needed. - A
* * *divider in dark gray. - Bold centered
By <author>(defaults to dark gray on the title page), wrapped and ellipsized if too long to fit the page height.
- The bold colored title, centered and scaled (
- Long title safety: Unlike vanilla written books—which reject titles longer than 32 characters as invalid book tags—RPG Lore reads page lists directly so long titles stay readable.
- Content pages (page 1+): Content pages begin immediately after the title page, with the page indicator (
1 / N) counting content pages only. - Automatic read tracking: Opening a physical Lore Book in your hand automatically marks that entry as Read in your Lore Codex (if you have collected it and the Codex system is enabled).
Interactive text while reading
Content pages support vanilla JSON text components, including hover notes and clickable actions (the title page itself has no clickable elements):
- Hover tooltips (
show_text): Hovering over highlighted text displays extra notes or lore annotations. - Page links (
change_page): Clicking jumps directly to another content page in the book (1-based content page number, excluding the title page). - Command suggestions (
suggest_command): Pastes a command into your chat box without running it. - Clipboard (
copy_to_clipboard): Copies a string (such as a coordinate, seed, or book ID) to your clipboard. - Web links (
open_url): Prompts with Minecraft’s standard URL confirmation screen before opening a link. - Running commands (
run_command): Blocked by default for server safety; only runs if the server operator setsreader.allowRunCommandClicks = true. - Opening local files (
open_file): Always blocked.
See Interactive text if you are authoring interactive pages.
Lecterns and Chiseled Bookshelves
Lore Books integrate with vanilla book furniture:
- Lecterns: Right-click an empty vanilla Lectern with a Lore Book in your main hand (works in both Survival and Creative) to place one book on the lectern. Players can right-click the lectern to read it, redstone comparators read page progress normally, and taking the book or breaking the lectern returns the exact Lore Book item.
- Chiseled Bookshelves: Both
rpg_lore:lore_bookandrpg_lore:lore_codexbelong to theminecraft:bookshelf_booksitem tag, so they can be inserted into and removed from vanilla Chiseled Bookshelves alongside written books, with full comparator output.
[!NOTE] Placing a Lore Codex on a Lectern works too: right-clicking a Codex-holding lectern opens the interacting player’s own synced Codex browser rather than vanilla’s empty book reader. See The Lore Codex.
How lore books are found in the world
Server owners and modpacks control where each book appears using three additive acquisition systems:
| Source | How players obtain books | Default state |
|---|---|---|
Mob & boss drops |
Killed mobs drop matching books based on mob type/tag (including specific bosses), biome, dimension, Y-level, time of day, weather, and Looting enchantment |
Enabled ( acquisition.enableEntityDrops = true); default global chance 0.05 on player-killed hostile mobs |
Loot tables (chests, fishing, gameplay) |
Books inject into named non-entity loot tables such as dungeon chests, temple chests, or fishing loot (at most one book per table roll) |
Enabled ( acquisition.enableLootTables = true) |
Advancements |
Earning a configured advancement unlocks a book directly in your Codex or delivers a one-time physical copy into your inventory |
Enabled ( acquisition.enableAdvancements = true) |
On a brand-new installation without a custom pack or datapack, RPG Lore creates one starter book (config/rpg_lore/books/the_fallen_kingdom.json, “The Fallen Kingdom”) that drops from any player-killed hostile mob.