Skip to content

Smithing Recipes ​

Smithing recipes are used to upgrade the base item with the addition item using a template.

Properties


template Ingredient ​

The template required to upgrade the base.

base Ingredient ​

The base item to upgrade with the addition.

addition Ingredient ​

The addition with which to upgrade the base.

result Result ​

The result of the smithing recipe, including the modifiers to apply and actions to be performed.

copyOptions CopyOptions optional ​

Optional options specifying how ItemStack components are copied from the base into the result.

hocon
type = smithing

template {
  // Ingredient settings
}

base {
  // Ingredient settings
}

addition {
  // Ingredient settings
}

result {
  // Result settings
}

copyOptions {
  // See Copy Options
}

Copy Options CopyOptions ​

Defines which components are preserved or excluded when copying from the base to the result.

Properties


preserveComponents list<Key> ​

The components to preserve from the base item.

excludeComponents list<Key> ​

The components to exclude from the base item.

hocon
copyOptions {
  preserveComponents = ["minecraft:custom_data"]
  excludeComponents = ["minecraft:display_name"]
}