Book JSON

A book.json file is what tells Modopedia the basic properties of a book such as the title, subtitle, type and many other properties. Without a book.json, Modopedia will not be aware of your book existing and therefore be unable to load it.

Datapack Location

The book.json for your book should be located in a datapack at data/<namespace>/modopedia/books/<book_id>.json where namespace is the ID of your mod or namespace of your modpack and book_id is the ID of your book, both of these need to follow Minecraft's ResourceLocation rules. When referencing your book, for example on a book item, namespace:book_id should be used.

JSON Schema

IDTypeRequiredDefaultDescription
titleString✓-Title of the book, supports translation keys.
subtitleString✗-Subtitle of the book, supports translation keys.
typeBookType✗*Type of book, this is further explained in Book Types. It will default to the modopedia:classic type with it's default values.
landing_textFString✗-Landing text displayed on the book's front page.
textureResourceLocation✗modopedia:defaultGUI texture for this book. This is explained further in Book Textures
modelResourceLocation✗modopedia:item/modopedia_books/book_defaultItem model for this book. These models must be placed in models/item/modopedia_books for Modopedia to load them for you.
fontResourceLocation✗modopedia:defaultDefault font for all formatted text in this book. Other options include minecraft:default and minecraft:uniform.
text_colourHString✗"000000"Default colour for formatted text in this book.
header_colourHString✗"000000"Default colour for headers in this book.
line_widthInteger✗100Default line width for formatted text in this book.
creative_tabResourceLocation✗-Creative tab this book should be added to.
open_soundResourceLocation✗modopedia:book_openSound played when opening this book.
flip_soundResourceLocation✗modopedia:book_flipSound played when turning pages in this book.