Skip to content
Minecraft Command List

Enchant Item with Mending

Repair a tool or armor automatically using XP

✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026

Applies 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
21 characters

How to use

  1. Hold the tool or armor piece you want to enchant.
  2. Open chat (T on Java, / on Bedrock) and paste the command.
  3. Press Enter — collect XP orbs and watch the item repair itself.
  4. Combine with Unbreaking III for a tool that never breaks.

Related commands

Add Sharpness V to the sword or axe you are holding

/enchant @s sharpness 5

Add maximum Protection to the armor piece you are holding

/enchant @s protection 4

Make your pickaxe, axe, or shovel mine much faster

/enchant @s efficiency 5

Make ores and crops drop more loot

/enchant @s fortune 3

Mine blocks and get the block itself instead of its drops

/enchant @s silk_touch 1

Make any item last much longer before it breaks

/enchant @s unbreaking 3