The formula for determining how many uses a repaired item can have restored to it in the crafting box, is as follows: Tools made of different materials (for example, a wood and a stone pickaxe) cannot be combined. Therefore, using a 'junk' item in a repair may sometimes be useful for removing an unwanted enchantment from an item prior to enchanting it again. The repaired object is never enchanted even if both items were to have the exact same enchantments, with the exception of curse enchantments, which are transferred to the repaired item.
Repairing gives a slight benefit in conserving inventory space, as it combines two non-stackable objects into one. The durability of the repaired item equals the sum of the old items' durability plus a 'repair bonus' of 5% of the item's maximum uses, up to a limit of the maximum durability for that item. Two items of the same type and material can be placed anywhere on the crafting grid or grindstone, which result in a single repaired item.