Skip to content

Categories

Vortianski edited this page Nov 28, 2026 · 1 revision

Working with Categories

Categories allow you to organize entries inside your guidebook. To create a category create a JSON file inside assets/<modid>/guided/<book_id>/categories/.

The name of the file without .json will be used as the category identifier. For example, getting_started.json creates a category with the identifier getting_started.

Parameters

All category parameters are optional. Appearance parameters override the corresponding values from your book definition or style.

Parameter Type Required Default Description
name string No Category ID Display name or translation key.
priority integer No 0 Ascending sort order; equal priorities sort by ID.
icon string No minecraft:book Item rendered in category lists and browser bookmarks.
icon_texture string No Absent 16 × 16 PNG replacing item icon.
book_texture string No Style book Traditional book background; 272 × 180 PNG.
browser_frame string No guided:core/frame Browser frame overlay.
browser_background string No guided:textures/gui/sprites/core/browser_background.png Fallback tiled browser background.
parallax_image string No Browser background Overrides tiled background; moves at one quarter of pan speed.
parallax_width integer No 32 Tile width, clamped to 1–4096.
parallax_height integer No 32 Tile height, clamped to 1–4096.
top_overlay string No guided:core/top_overlay Top frame decoration; none disables it.
bottom_overlay string No guided:core/bottom_overlay Bottom frame decoration; none disables it.
left_overlay string No guided:core/left_overlay Left frame decoration; none disables it.
right_overlay string No guided:core/right_overlay Right frame decoration; none disables it.
divider_texture string No guided:page/divider Divider below an entry title.
preview_frame string No guided:page/preview_frame Frame around visual previews.
advancement_frame string No guided:page/advancement_frame Advancement icon frame.
slice_button string No guided:widgets/slice_button Multiblock layer control.
slice_button_hovered string No guided:widgets/slice_button_hovered Hovered layer control.
shaped_crafting_texture string No guided:page/recipes/shaped_crafting Recipe diagram background.
shapeless_crafting_texture string No guided:page/recipes/shapeless_crafting Recipe diagram background.
smelting_texture string No guided:page/recipes/smelting Recipe diagram background.
smoking_texture string No guided:page/recipes/smoking Recipe diagram background.
blasting_texture string No guided:page/recipes/blasting Recipe diagram background.

Minimal example

The simplest category definition is an empty JSON object.

Example categories/default.json definition:

{}

By default the category will use its identifier as its name and a book as its icon. A category will not appear until it contains at least one visible entry.

Category priority

The priority parameter determines the order in which categories appear in your guidebook. Categories with lower priority values appear first. If two categories have the same priority they are sorted by their identifiers.

Example definition:

{
  "name": "Getting Started",
  "priority": -10
}

Category icons

To change the icon of your category use the icon parameter with an item ID.

Example definition:

{
  "name": "Crafting",
  "icon": "minecraft:crafting_table"
}

You can also use a custom 16 × 16 texture using the icon_texture parameter. If both parameters are specified, icon_texture takes priority.

Example definition:

{
  "name": "Crafting",
  "icon_texture": "example:textures/gui/icons/crafting.png"
}

Appearance

Each category can have its own appearance without requiring a separate guidebook or style. For example, you can change the parallax background of a category in a browser guidebook.

Example definition:

{
  "name": "Exploration",
  "parallax_image": "example:textures/gui/exploration.png",
  "parallax_width": 64,
  "parallax_height": 64,
  "top_overlay": "none"
}

Appearance parameters are resolved in the following order:

  1. Category definition
  2. Book definition
  3. Style definition
  4. Built-in default values

The category overrides apply when that category is active, not on the book landing page. For more information about texture and sprite IDs see Book Definition and Styles.

Adding entries

Categories do not contain pages directly. To add content to a category you need to create entries and assign them to that category using the category parameter.

Example entries/welcome.json definition:

{
  "name": "Welcome",
  "category": "getting_started",
  "pages": [
    {
      "type": "guided:text",
      "definition": {
        "text": "Welcome to my guidebook!"
      }
    }
  ]
}

This entry requires a categories/getting_started.json file. If you do not specify the category parameter in an entry, Guided uses default.

Important

Every guidebook must contain at least one category. Every entry must reference an existing category identifier, not its display name. Referencing a missing category can invalidate your guidebook.

Category visibility

Guided does not display categories without visible entries. Categories do not have their own condition parameter. To hide a category until a player meets a condition, apply the condition to its entries.

For more information see Condition Providers.

Category completion

In browser guidebooks, a category bookmark changes to its completed appearance when all visible entries in that category have been read. Category redirection entries are treated as already read.

Guidebook types

The way categories are displayed depends on the type of guidebook.

  • book - Categories are displayed on the landing page.
  • browser - Categories are displayed as bookmarks above the browser.
  • pamphlet - Opens the first available category directly.
  • network - Opens the first available category without category bookmarks.
  • entry - Opens the first available entry directly.

Use one category for pamphlet and network guidebooks, and one entry for entry guidebooks.

Localization

You can use a translation key instead of plain text for the category name.

Example definition:

{
  "name": "category.example.getting_started"
}

Inside assets/example/lang/en_us.json:

{
  "category.example.getting_started": "Getting Started"
}

For more information see Localization.

Now that you have created a category you can start Working with Entries.

Clone this wiki locally