Discovery Codex Recipe Category
Defines a discovery codex recipe category
Manifest entry describing a recipe category displayed in the discovery codex.
Campos
| Campo | Tipo | Padrão | Descrição | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
category | String | — | Unique identifier for this recipe category | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
title | String | — | Title displayed at the top of the recipe category inventoryPlaceholders | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
rows | Int | 6 | Number of rows for the recipe category inventory (1-6) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
order | Int | 0 | Display order when listing recipe categories | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
icon | Item | — | Icon used when referencing this recipe category | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
iconName | String? | — | Optional custom name for the category icon in menus. Placeholders: {unlocked}, {total}Placeholders | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
iconLore | List<String> | empty | Optional lore lines for the category icon. Placeholders: {unlocked}, {total}PlaceholdersVárias linhas | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
lockedIconLore | List<String> | empty | Lore to display for the icon when the recipe category is lockedPlaceholdersVárias linhas | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
background | Item? | — | Optional background filler item for the recipe category inventory | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
itemSlotRange | String | — | Range of slots where recipe entries will be displayed (e.g. '1-25') | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
startSlot | Int | 0 | Slot index where recipe entries start (0-based) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fillByRow | Boolean | true | If true, recipe entries fill row by row; otherwise column by column | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
previousButton | Item? | — | Item used for the previous page button in the recipe category inventory | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
previousButtonSlot | Int | 0 | Slot for the previous page button | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
previousButtonName | String? | — | Custom name for the previous page buttonPlaceholders | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
previousButtonLore | List<String> | empty | Lore for the previous page buttonPlaceholdersVárias linhas | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
nextButton | Item? | — | Item used for the next page button in the recipe category inventory | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
nextButtonSlot | Int | 8 | Slot for the next page button | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
nextButtonName | String? | — | Custom name for the next page buttonPlaceholders | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
nextButtonLore | List<String> | empty | Lore for the next page buttonPlaceholdersVárias linhas | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
backButton | Item? | — | Item used for the back button in the recipe category inventory | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
backButtonSlot | Int | 44 | Slot for the back button (default: 44) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
backButtonName | String? | — | Custom name for the back buttonPlaceholders | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
backButtonLore | List<String> | empty | Lore for the back buttonPlaceholdersVárias linhas | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
parentCategory | String? | — | Optional parent category identifier | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
guiLayout | CodexGuiLayout | PAGINATED | GUI layout type for the recipe category menuValores:PAGINATEDSCROLLABLEFRAMESIMPLE | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
onUnlockTriggers | List<Ref<TriggerableEntry>> | empty | Triggers to fire when this recipe category is unlocked by a player | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
items | List<RecipeItemConfig> | empty | Recipes contained within this category
|
| Campo | Tipo | Padrão | Descrição |
|---|---|---|---|
entryId | String | — | Unique identifier for this recipe entry |
recipeKey | String | — | Minecraft recipe key (NamespacedKey, e.g. 'minecraft:iron_pickaxe') |
item | Item | — | Icon displayed when the recipe is unlocked |
lockedItem | Item? | — | Icon displayed when the recipe is locked |
lockedLore | List<String> | empty | Lore displayed while the recipe is lockedPlaceholdersVárias linhas |
unlockedLore | List<String> | empty | Lore displayed when the recipe is unlockedPlaceholdersVárias linhas |
criteria | List<Criteria> | empty | Criteria that unlock the recipe |
menuStationSlot | Int? | — | Optional override for the crafting station slot in the detailed recipe menu |
menuStationItem | Item? | — | Optional override of the crafting station item for this recipe |
menuStationName | String? | — | Custom name applied to the crafting station item for this recipePlaceholders |
menuStationLore | List<String> | empty | Lore applied to the crafting station item for this recipePlaceholdersVárias linhas |
menuIndicatorButton | Item? | — | Optional indicator button displayed in the detailed recipe menu for this recipe |
menuIndicatorButtonSlots | List<Int> | empty | Slots (0-based) where the indicator button will be placed for this recipe |
menuIndicatorButtonName | String? | — | Custom name applied to the indicator button for this recipePlaceholders |
menuIndicatorButtonLore | List<String> | empty | Lore applied to the indicator button for this recipePlaceholdersVárias linhas |
onUnlockTriggers | List<Ref<TriggerableEntry>> | empty | Triggers to fire when this specific recipe is unlocked by a player |
menuTitleStringmenuRowsInt4menuBackgroundItem?resultSlotInt24craftingGridSlotsList<Int>menuBackButtonItem?menuBackButtonSlotInt31menuBackButtonNameString?menuBackButtonLoreList<String>emptymenuStationSlotInt-1menuStationItemItem?menuStationNameString?menuStationLoreList<String>emptymenuIndicatorButtonItem?menuIndicatorButtonSlotsList<Int>emptymenuIndicatorButtonNameString?menuIndicatorButtonLoreList<String>emptyCampos comuns do TypeWriter (criteria)
| Campo | Tipo | Padrão | Descrição |
|---|---|---|---|
criteria | List<Criteria> | empty | Default criteria that unlock recipes in this category |
How to use it
Each recipe in items has an entryId and a recipeKey, the namespaced key of a recipe registered on the server (for example minecraft:iron_pickaxe). Clicking an unlocked recipe opens the detail view: the ingredients in craftingGridSlots (nine slots by default) and the result in resultSlot. Shaped, shapeless, furnace-type, stonecutting and smithing recipes are supported.
Recipe criteria fall back to the category criteria when empty. Link the category to a parent with parentCategory, or put the recipe's entryId in a normal category item to open the recipe from there.
The menuStation* and menuIndicator* fields decorate the detail view of a recipe:
- Crafting station —
menuStationSlot(-1, the default, disables it),menuStationNameandmenuStationLore. The item ismenuStationItem; when it is empty, the workstation of the recipe type is shown (crafting table, furnace, blast furnace, smoker, campfire, stonecutter or smithing table). - Indicator —
menuIndicatorButtonplaced inmenuIndicatorButtonSlots, withmenuIndicatorButtonNameandmenuIndicatorButtonLore.
Each recipe in items has the same fields, and a value set on the recipe wins over the one of the category. A station slot of -1 on a recipe disables the station decor for that recipe.