Minecraft Wiki

The Minecraft Wiki has moved from Fandom; see the linked discussion page for details.

READ MORE

Minecraft Wiki
Advertisement

New text for Combining enchantments, based on an IPanon's code-diving:

The anvil calculates cost in two groups of costs. Both of these are modified (several costs are halved) if the "sacrifice" is a book, see notes:

  • The first, "fixed" segment.
    • The cost for durability repair, as above.
    • For any sacrifice enchantments which are incompatible with the target: 1 per level of each such enchantment.
    • If renaming the item, a base cost of 7 for items with durability, 5 for other items.
    • For each level of new or increased enchantments, the cost-per-level,[note 1]
  • The "extra" cost segment: [note 2]
    • The target's base value (but reduced if combining with a book). [note 1]
    • The prior repair penalties (see above) for both target and sacrifice.
    • If renaming an item that has already been renamed, half the basic renaming cost (rounded down): That's 3 or 2, for items with or without durability.
    • Again, for each level of new or increased enchantment, the cost-per-level.[note 1]
    • If both items have the same enchantment at maximum level, add the cost per level once,without halving it for a book.
    • Cost for adding new enchantments: If no enchantments are added (raising the level doesn't count), this is 0. Otherwise, let X be the number of enchantments added, and T the total number of enchantments on the result. Add X×(T-1)+1.
  1. a b c If the sacrifice is a book, the cost per level of both old and new enchantments is halved, to a minimum of 1 per level. This includes when calculating the target's base value.
  2. If the sacrifice is a book, the "extra" cost is halved, rounding down (on top of the cost-per-level halvings). It can round down to 0.
Advertisement