Question: how do anvils work in minecraft?
Answer: Place the item in the first slot. Place the sacrifice piece in the second slot. For enchantments, you place the enchantment book in the second slot. For other items, you place an ingredient (such as iron ingot to repair an iron sword) in the second slot.