Villager trading in Minecraft: professions, workstations, best trades
enchanted iron and diamond swords, diamond axes

The Diamond Sword is a sword, the standard melee weapon: quicker than an axe, with a sweeping attack that hits several mobs at once. Made from diamonds, it deals 7 damage and lasts 1561 hits; a netherite ingot on a smithing table takes it one step further. It works like every other sword; the Iron Sword page explains sweeping attacks and enchantments.
It is made with the Crafting Table from Stick and 2 × Diamond.
2 × Diamond + Stick → Diamond Sword
// Slots with several items cycle through every accepted option.
enchanted iron and diamond swords, diamond axes
Craft a Diamond Sword and enchant it as diamond.
A Diamond Sword with Smite V deals 7 + 12.5 = 19.5 damage to undead mobs, enough to kill an 18 health zombie or skeleton in one hit; with Sharpness V (10 damage) it…
A Netherite Sword or Diamond Sword with Smite V:
At the Crafting Table: 1 × Stick and 2 × Diamond give 1 × Diamond Sword. It can be found as loot in Trial Chambers, Bastion Remnant and End City. Sold by Villager: Weaponsmith (Master).
It is the standard melee weapon, with sweeping attacks, and cuts cobwebs and bamboo. It is an ingredient in one recipe: Netherite Sword.
1,561 durability points: each use removes one, and it breaks when none are left. Mending and Unbreaking can extend it.
No: only one per inventory slot.
10 enchantments: Bane of Arthropods, Fire Aspect, Knockback, Looting, Mending, Sharpness, Smite, Sweeping Edge and 2 more.