Minecraft wiki entry for Sharpness, associated text: An anvil is required for the player to apply Sharpness V to a wooden, stone, iron, diamond, or netherite weapon, though iron and diamond swords with it can generate in end city and bastion remnant chests. Golden weapons can get Sharpness V through enchanting.