Skip to content

Shaped Recipes

Shaped recipes require materials to be arranged in a specific pattern in the crafting table.

YAML Example

yaml
type: 'vanilla_shaped'
result: 'minecraft:diamond_sword'
group: 'weapons'
shape:
  - 'ABA'
  - 'ABA'
  - ' C '
ingredients:
  A: 'minecraft:diamond'
  B: 'minecraft:stick'
  C: 'item_pack:ores'
recipe_book_category: equipment

Fields

FieldTypeRequiredDescription
typestringYesMust be vanilla_shaped
resultstringYesOutput item ID
shapelistYes1–3 strings, each 1–3 characters long
ingredientsmapYesCharacter → item ID mapping
groupstringNoRecipe group name
recipe_book_categorystringNoRecipe book category: misc, building, redstone, equipment
fake_result_previewstringNoFake preview item shown during crafting

Shape Rules

  • Minimum 1×1, maximum 3×3
  • Each character in a shape row maps to a key in ingredients
  • A space () means that slot is empty
  • Characters are case-sensitive (a and A are different materials)

Different Size Examples

yaml
# 2×2 recipe
shape:
  - 'AB'
  - 'AB'
ingredients:
  A: 'minecraft:iron_ingot'
  B: 'minecraft:stick'

# 1×3 recipe
shape:
  - 'A'
  - 'A'
  - 'B'
ingredients:
  A: 'minecraft:stick'
  B: 'minecraft:string'

Item Packs

Use the item_pack: prefix to reference item packs defined in item_packs.yml, allowing a recipe to accept multiple material variants:

yaml
ingredients:
  A: 'item_pack:all_wood'  # Accepts any wood type

基于 GPL-3.0 许可证发布