Перейти к основному содержимому

Discovery Category

The Discovery Codex Definition defines a category of unlockable items (e.g., "Fishing Log", "Monster Bestiary"). It controls the menu layout and the criteria for unlocking the category itself.

Configuration

categoryString

Unique identifier for this discovery category.

titleString

Title displayed at the top of the GUI.

rowsInt

Number of rows for the inventory GUI (1-6).

parentCategoryString

Optional ID of a parent category, creating a hierarchy.

Display & Icon

iconItem

Icon used when referencing this category in a main menu.

iconNameString

Custom display name for the icon.

iconLore

"> Lore lines for the icon.

lockedIconLore

"> Lore displayed if the category itself is locked for the player.

criteria

"> Conditions required for the player to access this category.

Layout Settings

backgroundItem

Optional filler item for empty slots.

itemSlotRange

"> Specific slots where items can appear.

fillByRowBoolean

If true, items fill row-by-row. If false, column-by-column.

navigationButtonsNavigationConfig

Configuration for Previous, Next, Back, and Info buttons.

Items Configuration

The items list defines what can be unlocked in this category.

entryIdString

Unique ID for this discovery entry.

itemItem

The item to display when unlocked.

criteria

"> The conditions that trigger the unlock (e.g. has_item, killed_mob).

lockedItemItem

Item to display when not yet discovered (e.g. bedrock or question mark).

unlockedLore

"> Lore appended when unlocked.

lockedLore

"> Lore displayed when locked.