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.
Поля
| Поле | Тип | По умолчанию | Описание |
|---|---|---|---|
inventoryTitle | Var<String> | Codex | Title of the inventory (supports placeholders and MiniMessage)Плейсхолдеры |
inventoryRows | Int | 6 | Number of rows (1-6) |
guiType | GuiType | CUSTOM | GUI type to use (CUSTOM, BOOK, FURNACE, etc.) |
layoutPool | List<LayoutData> | empty | Pool of layout definitions for this codex menu |
mainLayoutId | String? | — | ID of the main layout to display from the pool |
views | List<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. |
defaultViewId | String? | — | Vue ouverte en premier. Vide = la première vue déclarée. |
breadcrumbSeparator | String | — | Séparateur MiniMessage inséré entre les segments du fil d'Ariane par le token {breadcrumb}. |
baseMenuId | String | — | Entrée open_gui servant de châssis partagé : son layoutPool et ses vues fusionnent sous les nôtres. |
audio | GuiAudioData | — | Audio configuration for the GUI |
Общие поля TypeWriter (criteria, modifiers, triggers)
| Поле | Тип | По умолчанию | Описание |
|---|---|---|---|
criteria | List<Criteria> | empty | — |
modifiers | List<Modifier> | empty | — |
triggers | List<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.