Zum Hauptinhalt springen

discovery_codex_category

Defines a discovery codex category — misc entry.

Entry Information

PropertyValue
Entry IDdiscovery_codex_category
TypeMisc
Color
Icon#A020F0

Description

GUI layout types supported by the Codex menu system. / enum class CodexGuiLayout { PAGINATED, SCROLLABLE, FRAME, SIMPLE } /* Manifest entry defining a discovery category and its menu layout.

Fields

FieldTypeDescription
categoryStringUnique identifier for this discovery category
titleStringTitle displayed at the top of the inventory
rowsIntNumber of rows for the inventory (1-6)
orderIntDisplay order when listing categories
iconItemIcon used when referencing this category
iconNameString?Optional custom name for the icon when displayed in menus. Placeholders: {unlocked}, {locked}, {total}, {percent}
iconLoreList<String>Optional lore lines for the icon when displayed in menus. Placeholders: {unlocked}, {locked}, {total}, {percent}
lockedIconLoreList<String>Lore to display for the icon when the category is locked. Placeholders: {unlocked}, {locked}, {total}, {percent}
backgroundItem?Optional background filler item
itemSlotRangeStringRange of slots where discovery items will be displayed (e.g. '1-25')
startSlotIntSlot index where items start (0-based)
fillByRowBooleanIf true, items fill row by row; otherwise column by column
previousButtonItem?Item used for the previous page button
previousButtonSlotIntSlot for the previous page button
previousButtonNameString?Custom name for the previous page button. Placeholders: {page}, {max_page}, {unlocked}, {locked}, {total}, {percent}
previousButtonLoreList<String>Lore for the previous page button. Placeholders: {page}, {max_page}, {unlocked}, {locked}, {total}, {percent}
nextButtonItem?Item used for the next page button
nextButtonSlotIntSlot for the next page button
nextButtonNameString?Custom name for the next page button. Placeholders: {page}, {max_page}, {unlocked}, {locked}, {total}, {percent}
nextButtonLoreList<String>Lore for the next page button. Placeholders: {page}, {max_page}, {unlocked}, {locked}, {total}, {percent}
backButtonItem?Item used for the back button
backButtonSlotIntSlot for the back button (default: 44, bottom-right area)
backButtonNameString?Custom name for the back button
backButtonLoreList<String>Lore for the back button
infoButtonItem?Item used for the info button
infoButtonSlotIntSlot for the info button
infoButtonNameString?Custom name for the info button. Placeholders: {unlocked}, {locked}, {total}, {percent}
infoButtonLoreList<String>Lore for the info button. Placeholders: {unlocked}, {locked}, {total}, {percent}
parentCategoryString?Optional parent category identifier; if set, this category becomes a sub category
criteriaList<Criteria>Criteria that must be met for this category to be unlocked
itemsList<DiscoveryItemConfig>Items contained within this category
guiLayoutCodexGuiLayoutGUI layout type for the codex menu
onUnlockTriggersList<Ref<TriggerableEntry>>Triggers to fire when this category is unlocked by a player

Usage Example

- entry: discovery_codex_category
name: "Defines a discovery codex category"
category: ""
title: ""
rows: 0
order: 0
icon: ""
iconName: ""
iconLore: []
lockedIconLore: []
background: ""
itemSlotRange: ""
startSlot: 0
fillByRow: false
previousButton: ""
previousButtonSlot: 0
previousButtonName: ""
previousButtonLore: []
nextButton: ""
nextButtonSlot: 0
nextButtonName: ""
nextButtonLore: []
backButton: ""
backButtonSlot: 0
backButtonName: ""
backButtonLore: []
infoButton: ""
infoButtonSlot: 0
infoButtonName: ""
infoButtonLore: []
parentCategory: ""
criteria: []
items: []
guiLayout: ""
onUnlockTriggers: []