Skip to content
[/craft]

Mending Enchantment Command

Copy the /enchant command for Mending in Minecraft Java 26.2 and Bedrock 26.32. All levels and a pre-enchanted /give variant are shown below.

/enchant command — all levels

Hold a compatible item before running. /enchant cannot exceed the enchantment's normal max level.

Java/enchant @p minecraft:mending 1
Bedrock/enchant @p mending 1

/give equivalent — Diamond Sword with Mending

Java/give @p minecraft:diamond_sword[enchantments={mending:1}] 1

Uses the 1.21.5+ flat component syntax. For Bedrock, give the item first then use /enchant @p mending 1 while holding it.

See all Mending levels on Diamond Sword

Works on

Items listed here are covered by the site's give pages. Some additional items (hoes, turtle helmet, etc.) also accept this enchantment but are not listed.

What Mending does

Uses XP orbs to repair the item instead of adding to your XP bar. Each orb restores 2 durability. Mutually exclusive with Infinity on bows.

Frequently asked questions

How do I get Mending in Minecraft?
Hold a compatible item and run /enchant @p minecraft:mending 1 (Java) or /enchant @p mending 1 (Bedrock). Alternatively, use the /give command above to spawn a pre-enchanted item directly into your inventory.
What is the max level of Mending?
Mending only has one level — it's either present on an item or it isn't.
Does the Mending command work in Bedrock Edition?
Yes. On Bedrock use /enchant @p mending 1 while holding a compatible item. Bedrock omits the "minecraft:" namespace prefix.
Diamond Sword with MendingDiamond Sword give command →Browse all Enchant commands →