Repository navigation
Getting Started
Unlike many other guidebook mods, Guided stores all guidebook data on the client using resource packs.
To get started, create the assets/<modid>/guided/ folder inside your resource pack. This folder will contain all your guidebooks. To create your first guidebook, create a new folder with a lowercase identifier inside it. In this example we will use book_id as the identifier and example as the namespace (<modid>).
Important
Book, category and entry identifiers must contain only lowercase letters, numbers, underscores, hyphens and periods. Uppercase letters or unsupported symbols can prevent your guidebook from loading.
Create a book.json file inside your new folder. This file will define the properties of your guidebook. By default, only the name parameter is required.
Example book.json definition:
{
"name": "My First Guidebook"
}For more information about configuring your guidebook see Book Definition.
Categories allow you to organize entries inside your guidebook. To create your first category, create a categories folder next to your book.json file and create a default.json file inside it.
Example categories/default.json definition:
{
"name": "Getting Started"
}The name of the file without .json will be used as the category identifier. In this example the category identifier is default.
Important
Every guidebook must contain at least one category. A category will not appear until it contains at least one visible entry.
For more information see Categories.
Entries contain the pages that players can open and read. To create your first entry, create an entries folder next to your book.json file and create a welcome.json file inside it.
Example entries/welcome.json definition:
{
"name": "Welcome",
"category": "default",
"pages": [
{
"type": "guided:text",
"definition": {
"text": "Welcome to my first guidebook!"
}
}
]
}The category parameter must point to an existing category identifier. If this parameter is not specified, Guided will use default.
The pages array contains all pages of your entry in the order they are displayed. Each page has a type and a definition object containing its parameters.
For more information see Entries and Page Types.
Your resource pack should now have the following structure:
My Resource Pack/
├── pack.mcmeta
└── assets/
└── example/
└── guided/
└── book_id/
├── book.json
├── categories/
│ └── default.json
└── entries/
└── welcome.json
If you are creating a standalone resource pack for Minecraft 1.21.1, create a pack.mcmeta file at its root if you do not already have one.
Example pack.mcmeta definition:
{
"pack": {
"pack_format": 34,
"description": "My First Guidebook"
}
}The name parameter in book.json defines the name displayed inside the guidebook interface. To change the name of the guidebook item itself, create assets/example/lang/en_us.json with the following translation:
{
"guided.example.book_id": "My First Guidebook"
}The translation key follows the guided.<namespace>.<book_id> format. Replace example and book_id with your own namespace and book identifier.
This step is optional. For more information see Localization.
Enable your resource pack in Minecraft. If it is already enabled, press F3 + T to reload it after making changes.
To obtain your guidebook, use the following command (requires permission to use /give):
/give @s guided:guide_book[guided:book_id="example:book_id"]Replace example:book_id with your own namespace and book identifier if you used different names.
Open your guidebook. You should see the Getting Started category containing the Welcome entry. Open the entry to view your first text page.
You have now created your first guidebook! To customize it further, continue to the Book Definition documentation.
The /give command is useful for testing, but players can also obtain guidebooks through crafting recipes, loot tables and advancement rewards. You can even give a guidebook to every player automatically when they first join a world.
These methods use data packs rather than resource packs and do not require additional Java code. For examples see Obtaining Guidebooks.