Minecraft wiki entry for Item_repair, associated text: Some items can be repaired by "covering" the damage with a specific material. The item to be repaired is put into the first input slot, and the corresponding material is put into the second slot. Each material item (unit) heals the item's durability by 25% its maximum durability, rounded down.