Skip to content

Page Providers

Vortianski edited this page Nov 28, 2026 · 1 revision

Working with Page Providers

Guided offers page providers that allow you to change what happens when a page condition fails. Unlike entry conditions, page conditions allow you to hide or replace individual pages without hiding the entire entry.

Parameters

All of the following parameters are defined inside the page's definition object.

Parameter Type Required Default Description
condition json object No Always passes Condition that determines whether the original page is displayed
provider_type string No guided:hide ID of page provider used when condition fails
alternative json object For guided:alternative null Page displayed instead of the original page

Page provider types

Guided offers 2 built-in page providers:

  • guided:hide - hides the page if its condition fails
  • guided:alternative - replaces the page with another page if its condition fails

If no condition is specified or the condition passes, the original page is displayed regardless of its page provider.

Hiding pages

By default Guided uses the guided:hide page provider. You do not need to specify provider_type if you only want to hide a page.

Example page definition:

{
  "type": "guided:text",
  "definition": {
    "text": "You have discovered diamonds!",
    "condition": {
      "type": "guided:advancement",
      "advancement": "minecraft:story/mine_diamond"
    }
  }
}

This page will only be displayed after the player completes the specified advancement. Hidden pages do not leave empty spaces between other pages.

Alternative pages

To display another page when a condition fails use the guided:alternative page provider and specify the replacement page using the alternative parameter.

Example page definition:

{
  "type": "guided:text",
  "definition": {
    "text": "You have discovered diamonds!",
    "condition": {
      "type": "guided:advancement",
      "advancement": "minecraft:story/mine_diamond"
    },
    "provider_type": "guided:alternative",
    "alternative": {
      "type": "guided:text",
      "definition": {
        "text": "Discover diamonds to unlock this page."
      }
    }
  }
}

An alternative page is defined the same way as a regular page. It must contain its own type and definition parameters. The alternative does not have to use the same page type as the original page.

Nested alternatives

Alternative pages can have their own conditions and page providers. This allows you to display different content depending on player progression.

Example page definition:

{
  "type": "guided:text",
  "definition": {
    "text": "You have discovered diamonds!",
    "condition": {
      "type": "guided:advancement",
      "advancement": "minecraft:story/mine_diamond"
    },
    "provider_type": "guided:alternative",
    "alternative": {
      "type": "guided:text",
      "definition": {
        "text": "You have acquired iron!",
        "condition": {
          "type": "guided:advancement",
          "advancement": "minecraft:story/smelt_iron"
        },
        "provider_type": "guided:alternative",
        "alternative": {
          "type": "guided:text",
          "definition": {
            "text": "Start by acquiring iron."
          }
        }
      }
    }
  }
}

Guided checks the original page first, then checks each alternative only if the previous condition fails. If an alternative fails its condition and has no further alternative, the page is hidden.

Guided allows up to 16 nested alternative steps from the original page. Pages beyond this limit are hidden.

Testing page providers

You can use guided:true and guided:false conditions to test page providers without completing advancements.

Example page definition:

{
  "type": "guided:text",
  "definition": {
    "text": "This text will not be displayed.",
    "condition": {
      "type": "guided:false"
    },
    "provider_type": "guided:alternative",
    "alternative": {
      "type": "guided:text",
      "definition": {
        "text": "This is an alternative page."
      }
    }
  }
}

For more information about available conditions see Condition Providers. For available page types see Page Types.

Reloading conditions

Press R while your guidebook is open to reevaluate entry and page conditions using the current client data. If you change the JSON files themselves, use F3 + T to reload resource packs.

Custom page providers

Developers can register their own page providers through Guided's Java API. For more information see Addon Development.

Clone this wiki locally