Enchant Item with Mending
Repair a tool or armor automatically using XP
✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026Applies Mending (level 1, capped there) to the item you're holding. XP orbs you collect will repair the item instead of going toward your level — every 2 points of XP restores 1 durability. Normally only obtainable through fishing or treasure loot; this command gives it instantly.
/enchant @s mending 1- Java: yes
- Bedrock: yes
- Command block: no
- Needs cheats / OP: yes
How to use
- Hold the tool or armor piece you want to enchant.
- Open chat (T on Java, / on Bedrock) and paste the command.
- Press Enter — collect XP orbs and watch the item repair itself.
- Combine with Unbreaking III for a tool that never breaks.
Related commands
Enchant Held Item with Sharpness V
Add Sharpness V to the sword or axe you are holding
Enchant Armor with Protection IV
Add maximum Protection to the armor piece you are holding
Enchant Tool with Efficiency V
Make your pickaxe +2 more
Enchant Tool with Fortune III
Make ores and crops drop more loot
Enchant Tool with Silk Touch
Mine blocks and get the block itself instead of its drops
Enchant Item with Unbreaking III
Make any item last much longer before it breaks