The best enchantments for every sword, bow, tool and armor piece in Minecraft, which ones can't be combined and where to get Mending and the other treasure enchantments.
The best enchantments in Minecraft are Mending and Unbreaking III on everything, Protection IV on all armor, Sharpness V on your sword and Efficiency V with Fortune III or Silk Touch on your pickaxe. The rest depends on the item.
The table below lists the best set for every weapon, tool and armor piece, followed by how to get each enchantment and which ones can't be combined.

Every item here also takes Mending and Unbreaking III. Those two keep your gear alive for good, so put them on first:
| Item | Best Enchantments | Pick One |
|---|---|---|
| Sword | Sharpness V, Looting III, Fire Aspect II, Sweeping Edge III (Java) | Sharpness, Smite or Bane of Arthropods |
| Axe | Efficiency V, Sharpness V | Fortune III or Silk Touch |
| Pickaxe | Efficiency V | Fortune III or Silk Touch |
| Shovel and Hoe | Efficiency V | Fortune III or Silk Touch |
| Bow | Power V, Punch II, Flame | Infinity or Mending |
| Crossbow | Quick Charge III | Multishot or Piercing IV |
| Trident | Impaling V | Loyalty III (with Channeling) or Riptide III |
| Mace | Wind Burst III, Fire Aspect II | Density V or Breach IV |
| Spear | Sharpness V, Looting III, Lunge III, Fire Aspect II | Sharpness, Smite or Bane of Arthropods |
| Helmet | Protection IV, Respiration III, Aqua Affinity | One Protection type |
| Chestplate | Protection IV, Thorns III (optional) | One Protection type |
| Leggings | Protection IV, Swift Sneak III | One Protection type |
| Boots | Protection IV, Feather Falling IV, Soul Speed III | Depth Strider III or Frost Walker II |
| Elytra | Unbreaking III, Mending | None |
| Fishing Rod | Luck of the Sea III, Lure III | None |
Sharpness V raises damage against every mob, so it beats Smite and Bane of Arthropods for an all round sword. Looting III gives more mob drops, Fire Aspect II sets targets on fire, and Sweeping Edge III (Java only) makes sweep attacks hit harder.
Skip Knockback on a farming or melee sword. It pushes mobs out of reach and makes combos harder.
For the bow, take Power V, Flame and Punch II, and then choose between Infinity and Mending. They can't go on the same bow: Infinity saves arrows, Mending saves the bow itself.
For the crossbow, Quick Charge III is a must. Then pick Multishot, which fires three arrows at once, or Piercing IV, which shoots through up to five targets.
The trident needs Loyalty III to come back after a throw, plus Impaling V for damage in water and rain. Riptide III instead launches you through water and rain, but it can't go with Loyalty or Channeling.
The Mace takes Density V for falling damage or Breach IV against armor, plus Wind Burst III to bounce back up. The spear takes Sharpness V, Looting III and Lunge III, which pushes you forward on each jab.

Every tool wants Efficiency V for speed. For the pickaxe, the one hard choice is Fortune III or Silk Touch, since the two can't be combined:
Most players keep one pickaxe of each. On a shovel, Silk Touch is handy for grass and mycelium, and Fortune III on a hoe gives more seeds and crops.
The axe is a tool and a weapon. Efficiency V and Silk Touch make it a fast wood cutter, while Sharpness V turns it into a heavy weapon. Any axe also disables shields for a few seconds.
The fishing rod takes Luck of the Sea III for more treasure and Lure III for faster bites. Shears and the brush only need Efficiency, Unbreaking and Mending.
Put Protection IV on every piece. It lowers almost every kind of damage, while Fire, Blast and Projectile Protection only help against one kind and can't be combined with Protection.
Note: Depth Strider and Frost Walker can't share a pair of boots. Depth Strider is the better pick for most players, since Frost Walker only matters when you walk across water.

Most enchantments come from an enchanting table. Surround it with 15 bookshelves, each one block away from the table, to unlock level 30 offers. Each enchant costs up to 3 lapis lazuli and experience levels.

Some of the best ones never appear on the table. These treasure enchantments come from other places:
A librarian villager is the easiest source for most books. Place a lectern next to an unemployed villager, check the book it offers, and break and replace the lectern until you see the one you want. This only works before you trade with it.
Use an anvil to put enchanted books onto your gear or to merge two books into a higher level. Two Sharpness IV books make one Sharpness V book, for example.
Every anvil use raises the item's repair cost. In Java Edition, the anvil refuses any job of 40 levels or more with "Too Expensive", so add the most valuable books first and combine books with each other before you put them on the item.
A grindstone removes all enchantments except curses and gives back some experience. Use it to clean up an item that rolled a bad enchantment.
For the gear to put these enchantments on, see How To Get Netherite and How To Find A Trial Chamber And Get The Mace.