Sword

Swords are melee weapons that are mainly used to deal damage to mobs and/or players.

Mobs
Some monsters can spawn with a sword, and have a 8.5% (9.5% with Looting I, 10.5% with Looting II and 11.5% with Looting III) chance of dropping them upon death by player: Zombies can drop iron swords, zombie pigmen can drop golden swords, and wither skeletons can drop stone swords. It will usually be badly damaged, and may be enchanted.

A vex wields an iron sword which normally has a 0% chance of dropping, because their main hand's  is 0. However, this chance increases by 1 percentage point per level of Looting. It is never damaged or enchanted.

Trading
Weapon Smith villagers sell enchanted iron swords for 9–10 emeralds as one of their second tier trades, and enchanted diamond swords for 12–15 emeralds as one of their third tier trades. The enchantments will be the same as might be obtained from an enchantment table at levels 5–19.

Attacking
Pressing while holding a sword will increase your damage to both mobs and players. Upon damaging a mob or player, the sword's durability will decrease by 1.

Attacking a boat or a minecart with a sword will instantly destroy it and will not decrease the sword's durability.

Sweep attack
If the attack recharge meter is full, and the player is standing or moving no faster than walking speed, the sword will perform a "sweep" attack which can hit nearby enemies. Enemies near the hit enemy will be knocked back and damaged by from the slashing attack. The Sweeping Edge enchantment will increase the damage dealt by 50% of the normal hit damage for level I, 67% for level II, and 75% for level III. The amount of knockback is 80% that of the knockback due to Knockback I, and does not benefit from that enchantment. All enemies within 1 block horizontally and 0.25 blocks vertically of any part of the attacked mob and within 3 blocks of the player will be knocked back.

Java Edition
Swords have an attack speed of 1.6 and take 0.625 seconds to recover.

Console and Bedrock editions
In the Console and Bedrock editions, swords have no attack cooldown and do the following damage:

Sword breaking times
A sword can also be used to destroy certain blocks more quickly than with fists. Using a sword to destroy any block that doesn't break instantly decreases its durability by 2.

The following table shows the time it takes to break blocks on which swords have any effect. Colors indicate what will be dropped:
 * White: an original block.
 * Blue: block's normal drop (e.g. seeds, sapling, apple).
 * Red: nothing.

Enchantments
Swords can receive the following enchantments:


 * Fire Aspect
 * Looting
 * Unbreaking
 * Sharpness
 * Smite
 * Bane of Arthropods
 * Knockback
 * Mending
 * Curse of Vanishing
 * Sweeping Edge

Fuel
Wooden swords can be used as a fuel in furnaces, smelting 1 item per sword.

Video
This video is outdated. Since 1.8, swords can no longer block attacks.

Trivia

 * The sword's texture came from Notch's abandoned RPG, Legend of the Chambered. The iron sword's texture was created first, as it was from the game, and the other swords followed.
 * If a sword is enchanted with Silk Touch, either using Creative or commands, it can collect cobwebs rather than getting the string drop. This is due to the sword being classified as the proper tool for cobwebs.

Meč Schwert Espada Épée Kard 剣 검 Zwaard Miecz pt-br:Espada Меч Kılıç 剑