Skip to content

Smithing Recipes

Smithing recipes support two subtypes: Transform (equipment upgrade) and Trim (decoration).

Transform Recipe

Used to upgrade equipment, such as upgrading diamond gear to netherite.

YAML Example

yaml
type: 'vanilla_smithing_transform'
result: 'minecraft:netherite_sword'
base: 'minecraft:diamond_sword'
addition: 'minecraft:netherite_ingot'
template: 'minecraft:netherite_upgrade_smithing_template'
copy_components_rules:
  - 'enchantments'
  - 'display_name'
  - 'custom_model_data'

Fields

FieldTypeRequiredDescription
typestringYesMust be vanilla_smithing_transform
resultstringYesOutput item ID
basestringYesBase item (the item being upgraded)
additionstringYesAddition material
templatestringYesSmithing template (1.20+)
copy_components_ruleslistNoComponent copy rules
fake_result_previewstringNoFake preview item shown during crafting

Trim Recipe

Used to add decorative trims to equipment. Requires Minecraft 1.20+.

YAML Example

yaml
type: 'vanilla_smithing_trim'
base: 'minecraft:diamond_chestplate'
addition: 'minecraft:iron_ingot'
template: 'minecraft:coast_armor_trim_smithing_template'

Fields

FieldTypeRequiredDescription
typestringYesMust be vanilla_smithing_trim
basestringYesEquipment being trimmed
additionstringYesTrim material
templatestringYesTrim template
fake_result_previewstringNoFake preview item shown during crafting

Note: Trim recipes cannot set the result — the result configuration option is not available.

Copy Components Rules

Specifies which components to copy from the base item to the output item:

RuleDescription
allCopy all components
enchantmentsEnchantments
attributesAttributes
display_nameDisplay name
custom_model_dataCustom model data
custom_model_data_componentCustom model data component (1.20.5+)
foodFood properties
item_flagItem flags
loreLore text
max_stack_sizeMax stack size
rarityRarity
toolTool properties
fire_resistanceFire resistance
hide_tooltipHide tooltip
unbreakableUnbreakable
trimTrim
item_modelItem model
item_nameItem name
custom_persistent_dataCustom persistent data

基于 GPL-3.0 许可证发布