Aller au contenu principal

Quest Category

Defines a quest category — a logical group of quests in the codex. Categories can be nested via the parent field to create sub-category hierarchies.

To add quests to this category, use Quest Assignment. To configure the menu layout for this category, use Category Menu.

Fields

FieldTypeDefaultDescription
categoryString""Unique category identifier — lowercase, no spaces. Used to reference this category in other entries.
titleString @Placeholder @Colored""Display title shown in the codex menu. Supports MiniMessage.
iconItem @ContentEditor(empty)Item used as the category icon in parent menus.
parentString""Parent category name. Leave empty for a top-level (root) category.
orderInt0Display order — lower numbers appear first. Same-order categories sort alphabetically.
activeCriteriaList<Criteria>[]Criteria that must be met for this category to appear.
completedCriteriaList<Criteria>[]Criteria that mark this category as completed.
blockedMessageString @Placeholder @Colored @MultiLine""Message shown when the category is locked.
activeMessageString @Placeholder @Colored @MultiLine""Message shown when the category is in progress.
completedMessageString @Placeholder @Colored @MultiLine""Message shown when the category is completed.
hideWhenLockedBooleanfalseIf true, hide this category entirely when locked. If false, show it greyed out with blockedMessage.

Nesting Categories

Categories support parent/child relationships through the parent field:

# Top-level category
quest_category:
category: "main_quests"
title: "<gold>Main Story"
icon: GOLDEN_SWORD
order: 0

# Sub-category nested under main_quests
quest_category:
category: "dungeons"
title: "<dark_red>Dungeons"
icon: IRON_SWORD
parent: "main_quests"
order: 0

A sub-category inherits visibility from its parent. If the parent is locked, the sub-category is also hidden regardless of its own criteria.

Category Status

Each category has a status determined by its criteria:

StatusConditionAppearance
BlockedactiveCriteria not metGreyed out or hidden (see hideWhenLocked). Shows blockedMessage.
ActiveactiveCriteria met, completedCriteria not metClickable. Shows activeMessage if set.
CompletedcompletedCriteria metShows completedMessage if set.

Example

{
"type": "quest_category",
"id": "cat_main",
"name": "Main Story Category",
"category": "main_quests",
"title": "<gold><bold>✦ Main Story ✦",
"icon": {
"case": "custom_item",
"value": {
"components": [
{ "case": "material", "value": { "material": "NETHER_STAR" } }
]
}
},
"parent": "",
"order": 0,
"activeCriteria": [],
"completedCriteria": [],
"blockedMessage": "<red>Complete previous quests to unlock.",
"hideWhenLocked": false
}