Skip to content

Recipe System Overview

Craftorithm supports 12 recipe types, covering all crafting methods in Minecraft.

Supported Recipe Types

TypeDescriptionConfig type value
Shaped RecipeCrafting table with shapevanilla_shaped
Shapeless RecipeCrafting table without shapevanilla_shapeless
Furnace SmeltingFurnace smeltingvanilla_smelting_furnace
Blast FurnaceBlast furnace smeltingvanilla_smelting_blast
SmokerSmoker cookingvanilla_smelting_smoker
CampfireCampfire cookingvanilla_smelting_campfire
Smithing TransformSmithing table equipment upgradevanilla_smithing_transform
Smithing TrimSmithing table trim decoration (1.20+)vanilla_smithing_trim
StonecuttingStonecutter processingvanilla_stonecutting
BrewingPotion brewing (Paper only)vanilla_brewing
AnvilAnvil craftinganvil

Recipe Files

  • Location: plugins/Craftorithm/recipes/
  • Format: YAML
  • Namespace: filename becomes the recipe namespace, e.g. my_recipe.ymlcraftorithm:my_recipe
  • Use the recipe_id field to specify a recipe ID different from the filename

Common Fields

All recipe types share these fields:

yaml
type: 'vanilla_shaped'      # Recipe type (required)
result: 'minecraft:diamond'  # Output item (required)
group: 'example'             # Recipe group (optional)
recipe_id: 'my_recipe'       # Custom recipe ID (optional, defaults to filename)
recipe_book_category: misc   # Recipe book category (optional, 1.19.3+)

Item Reference Formats

When specifying items in recipes, the following formats are supported:

FormatExampleDescription
Vanilla itemminecraft:diamondMinecraft vanilla item ID
Item packitem_pack:oresReferences an item pack defined in item_packs.yml
Custom itemcraftorithm:my_itemReferences a custom item from the items/ directory
External plugin itemitemsadder:my_itemReferences an item from an external item plugin

Creation Methods

/cra create <type> [recipe_id] [filename]

Opens a graphical interface to create recipes through click-based interaction.

Create YAML files directly in the recipes/ directory. Best for batch creation or precise control.

基于 GPL-3.0 许可证发布