Skip to content
Vortianski edited this page Nov 28, 2026 · 1 revision

Working with Styles

Guided allows you to create reusable styles for your guidebooks using JSON. A single style can be used by multiple guidebooks without defining the same textures in every book definition.

To create your own style create a JSON file inside assets/<modid>/guided/styles/.

Parameters

All parameters are optional. If a parameter is not specified, Guided uses its default value.

Parameter Type Required Default Description
book_texture string No Style book Traditional book background; 272 × 180 PNG (texture ID).
browser_frame string No guided:core/frame Browser frame overlay (sprite ID).
browser_background string No guided:textures/gui/sprites/core/browser_background.png Fallback tiled browser background (texture ID).
parallax_image string No Browser background Overrides tiled background; moves at one quarter of pan speed (texture ID).
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 (sprite ID or none).
bottom_overlay string No guided:core/bottom_overlay Bottom frame decoration; none disables it (sprite ID or none).
left_overlay string No guided:core/left_overlay Left frame decoration; none disables it (sprite ID or none).
right_overlay string No guided:core/right_overlay Right frame decoration; none disables it (sprite ID or none).
divider_texture string No guided:page/divider Divider below an entry title (sprite ID).
preview_frame string No guided:page/preview_frame Frame around visual previews (sprite ID).
advancement_frame string No guided:page/advancement_frame Advancement icon frame (sprite ID).
slice_button string No guided:widgets/slice_button Multiblock layer control (sprite ID).
slice_button_hovered string No guided:widgets/slice_button_hovered Hovered layer control (sprite ID).
shaped_crafting_texture string No guided:page/recipes/shaped_crafting Recipe diagram background (sprite ID).
shapeless_crafting_texture string No guided:page/recipes/shapeless_crafting Recipe diagram background (sprite ID).
smelting_texture string No guided:page/recipes/smelting Recipe diagram background (sprite ID).
smoking_texture string No guided:page/recipes/smoking Recipe diagram background (sprite ID).
blasting_texture string No guided:page/recipes/blasting Recipe diagram background (sprite ID).
book string No guided:textures/gui/sprites/core/book.png Traditional default-style panel (distinct from book_texture override) (texture ID).
point string No guided:textures/gui/sprites/core/point.png 24 × 24 default entry background (texture ID).
point_goal string No guided:core/goal_square Goal entry background (sprite ID).
point_challenge string No guided:core/challenge_square Challenge entry background (sprite ID).
unread string No guided:core/unread 4 × 4 unread marker (sprite ID).
bookmark string No guided:widgets/bookmark Bookmark state texture (sprite ID).
bookmark_selected string No guided:widgets/bookmark_selected Bookmark state texture (sprite ID).
bookmark_complete string No guided:widgets/bookmark_complete Bookmark state texture (sprite ID).
bookmark_complete_selected string No guided:widgets/bookmark_complete_selected Bookmark state texture (sprite ID).
tab string No guided:widgets/tab Bookmark state texture (sprite ID).
tab_selected string No guided:widgets/tab_selected Bookmark state texture (sprite ID).
left string No Vanilla navigation fallback 20 × 16 custom button texture (texture ID).
left_highlighted string No Vanilla navigation fallback 20 × 16 custom button texture (texture ID).
left_disabled string No Vanilla navigation fallback 20 × 16 custom button texture (texture ID).
left_disabled_highlighted string No Vanilla navigation fallback 20 × 16 custom button texture (texture ID).
right string No Vanilla navigation fallback 20 × 16 custom button texture (texture ID).
right_highlighted string No Vanilla navigation fallback 20 × 16 custom button texture (texture ID).
right_disabled string No Vanilla navigation fallback 20 × 16 custom button texture (texture ID).
right_disabled_highlighted string No Vanilla navigation fallback 20 × 16 custom button texture (texture ID).
back string No Vanilla navigation fallback 20 × 16 custom button texture (texture ID).
back_highlighted string No Vanilla navigation fallback 20 × 16 custom button texture (texture ID).
back_disabled string No Vanilla navigation fallback 20 × 16 custom button texture (texture ID).
back_disabled_highlighted string No Vanilla navigation fallback 20 × 16 custom button texture (texture ID).
connection_horizontal string No guided:core/connections/horizontal Connection geometry sprite (sprite ID).
connection_vertical string No guided:core/connections/vertical Connection geometry sprite (sprite ID).
connection_small_left_up string No guided:core/connections/small_left_up Connection geometry sprite (sprite ID).
connection_small_left_down string No guided:core/connections/small_left_down Connection geometry sprite (sprite ID).
connection_small_right_up string No guided:core/connections/small_right_up Connection geometry sprite (sprite ID).
connection_small_right_down string No guided:core/connections/small_right_down Connection geometry sprite (sprite ID).
connection_large_left_up string No guided:core/connections/large_left_up Connection geometry sprite (sprite ID).
connection_large_left_down string No guided:core/connections/large_left_down Connection geometry sprite (sprite ID).
connection_large_right_up string No guided:core/connections/large_right_up Connection geometry sprite (sprite ID).
connection_large_right_down string No guided:core/connections/large_right_down Connection geometry sprite (sprite ID).
connection_arrow_left string No guided:core/connections/arrow_left Connection geometry sprite (sprite ID).
connection_arrow_right string No guided:core/connections/arrow_right Connection geometry sprite (sprite ID).
connection_arrow_up string No guided:core/connections/arrow_up Connection geometry sprite (sprite ID).
connection_arrow_down string No guided:core/connections/arrow_down Connection geometry sprite (sprite ID).
square string No guided:core/square Normal square entry background (sprite ID).
circle string No guided:core/circle Normal circle entry background (sprite ID).
pentagon string No guided:core/pentagon Normal pentagon entry background (sprite ID).
octagon string No guided:core/octagon Normal octagon entry background (sprite ID).
goal_square string No guided:core/goal_square Goal square entry background (sprite ID).
goal_circle string No guided:core/goal_circle Goal circle entry background (sprite ID).
goal_pentagon string No guided:core/goal_pentagon Goal pentagon entry background (sprite ID).
goal_octagon string No guided:core/goal_octagon Goal octagon entry background (sprite ID).
challenge_square string No guided:core/challenge_square Challenge square entry background (sprite ID).
challenge_circle string No guided:core/challenge_circle Challenge circle entry background (sprite ID).
challenge_pentagon string No guided:core/challenge_pentagon Challenge pentagon entry background (sprite ID).
challenge_octagon string No guided:core/challenge_octagon Challenge octagon entry background (sprite ID).
landing_texture string No null Landing page illustration.
landing_texture_width integer No 128 Source width, clamped to 1–4096.
landing_texture_height integer No 128 Source height, clamped to 1–4096.
landing_text string No Empty Landing page introduction.

Minimal example

Create assets/example/guided/styles/custom.json:

{
  "point": "example:textures/gui/point.png"
}

To use this style specify its ID inside your book.json:

{
  "name": "Example Guidebook",
  "style": "example:custom"
}

If the style does not exist Guided uses guided:default. JSON styles take precedence over Java styles with the same ID.

Textures and sprites

There is a difference between texture and sprite IDs:

  • example:textures/gui/book.png - texture located at assets/example/textures/gui/book.png
  • example:custom/frame - sprite located at assets/example/textures/gui/sprites/custom/frame.png

Sprites support Minecraft's built-in animation and nine-slice scaling using .png.mcmeta files. Use the texture or sprite type described in the parameter table.

Entry backgrounds

You can change the appearance of built-in entry backgrounds through your style. Entry backgrounds are rendered at 24 × 24 pixels.

Example style definition:

{
  "square": "example:entries/square",
  "goal_circle": "example:entries/goal_circle",
  "challenge_octagon": "example:entries/challenge_octagon"
}

The point, point_goal and point_challenge parameters correspond to the default, goal and challenge background identifiers. The legacy goal and challenge identifiers use their square variants by default.

For more information see Entries.

Connections

Connections between entries use separate sprites for straight lines, small and large corners and arrows. You can replace each sprite individually.

Example style definition:

{
  "connection_horizontal": "example:connections/horizontal",
  "connection_vertical": "example:connections/vertical",
  "connection_arrow_right": "example:connections/arrow_right"
}

Navigation buttons

Navigation buttons use 20 × 16 textures. You can define separate textures for normal, highlighted and disabled states. If a highlighted texture is not specified the corresponding normal texture is used when available. Missing button textures fall back to vanilla navigation buttons where supported.

Example style definition:

{
  "left": "example:textures/gui/left.png",
  "left_highlighted": "example:textures/gui/left_highlighted.png",
  "right": "example:textures/gui/right.png",
  "right_highlighted": "example:textures/gui/right_highlighted.png"
}

The tab and tab_selected parameters are used by the legacy tab renderer. Current browser category navigation uses the bookmark parameters.

Animated sprites

The unread marker is rendered at 4 × 4 pixels and supports Minecraft's sprite animation system. To animate it create a texture containing vertically stacked 4 × 4 frames and a matching .png.mcmeta file.

Example unread.png.mcmeta definition for four frames:

{
  "animation": {
    "frametime": 5,
    "frames": [0, 1, 2, 3]
  }
}

Example style definition:

{
  "unread": "example:custom/unread"
}

Appearance priority

For shared appearance overrides Guided looks for parameters in the following order:

  1. Category definition
  2. Book definition
  3. Style definition
  4. Default values

Style-specific parameters such as navigation buttons and connection sprites are resolved by the selected style. The landing page uses book and style values.

For more information about appearance overrides see Book Definition.

Java styles

Developers can register their own styles through Guided's Java API to customize rendering behavior. The browser culling margin is controlled by a Java style method and is not a JSON parameter.

For more information see Addon Development.

Clone this wiki locally