Skip to content

Repairing Recipes

Repairing recipes are used to repair items in the Anvil.

Properties


base Ingredient

The base ingredient, the first slot in the Anvil menu (the item to repair/enchant).

addition Ingredient

The addition ingredient, the second slot in the Anvil menu (the item to sacrifice for repair/enchanting).

process Process

The process to produce the result in the Anvil menu.

hocon
type = repairing

base {
  // Ingredient settings
}

addition {
  // Ingredient settings
}

process {
  // Process settings
}

Process Process

The process property defines how the repairing process is handled.

Fixed Result type = fixed_result

Always uses the specified result and computes the resulting stack based on the data and context.

Properties


rename ProcedureRename optional

How the item name is handled.

result Result

The resulting item.

cost int

The experience cost for the repair.

hocon
type = "fixed_result"
cost = 1
rename = {
  // See ProcedureRename documentation
  type = "..."
}
result {
  // Result settings
}

Custom Process type = custom

Tries to mirror the vanilla logic of the anvil as much as possible, while providing lots of customization options.

Properties


rename ProcedureRename optional

How the item name is handled.

damageCombine ProcedureDamageCombine optional

How damage is combined.

itemRepair ProcedureItemRepair optional

How the item is repaired.

enchanting ProcedureEnchanting optional

How enchanting is handled.

hocon
process {
  type = "custom"
  rename = {
    // See ProcedureRename documentation
    type = "..."
  }
  damageCombine = {
    // See ProcedureDamageCombine documentation
    type = "..."
  }
  itemRepair = {
    // See ProcedureItemRepair documentation
    type = "..."
  }
  enchanting {
    // See ProcedureEnchanting documentation
    type = "..."
  }
}