Pular para o conteúdo principal

Codex Global Menu

Open a codex global menu

Action entry that opens a global codex menu showing discovery categories. Uses the declarative layout pool system from the GUI Extension.

Campos

CampoTipoPadrãoDescrição
inventoryTitleVar<String>CodexTitle of the inventory (supports placeholders and MiniMessage)Placeholders
inventoryRowsInt6Number of rows (1-6)
guiTypeGuiTypeCUSTOMGUI type to use (CUSTOM, BOOK, FURNACE, etc.)
layoutPoolList<LayoutData>emptyPool of layout definitions for this codex menu
mainLayoutIdString?—ID of the main layout to display from the pool
viewsList<MenuViewData>emptyÉcrans adressables de ce menu. Les frames en '@view' et les slots taggés 'view:<id>' se résolvent contre la vue active.
defaultViewIdString?—Vue ouverte en premier. Vide = la première vue déclarée.
breadcrumbSeparatorString—Séparateur MiniMessage inséré entre les segments du fil d'Ariane par le token {breadcrumb}.
baseMenuIdString—Entrée open_gui servant de châssis partagé : son layoutPool et ses vues fusionnent sous les nôtres.
audioGuiAudioData—Audio configuration for the GUI
Campos comuns do TypeWriter (criteria, modifiers, triggers)
CampoTipoPadrãoDescrição
criteriaList<Criteria>empty—
modifiersList<Modifier>empty—
triggersList<Ref<TriggerableEntry>>empty—

How to use it​

The fields inventoryTitle, inventoryRows, guiType, layoutPool, mainLayoutId, views and audio work as in the GUI extension. The layout decides where categories go: put codex_button:CODEX_CATEGORY items in a layout, and use count, gap and direction to repeat one marker over several slots. The first marker receives the first top-level category (sorted by order), and so on. Sub-categories are reached by clicking their parent.

gap is a step: 1 is adjacent, 2 leaves one empty slot. Set baseMenuId to merge your layouts and views with a shared chassis.