Shovel

Shovels are tools used to ease the process of collecting dirt and other blocks.

Unit repair
A shovel can be repaired in an anvil by adding units of the tiers' repair material, with each repair material restoring 25% the shovel's maximum durability, rounded down.

Equipment
Zombies and Husks have a 0.67% (3.33% in Hard difficulty) chance of spawning with an iron shovel. They have an 8.5% (9.5% with Looting I, 10.5% with Looting II and 11.5% with Looting III) chance of dropping that shovel if they are killed by the player. The dropped shovel is usually badly damaged, and may be enchanted: 0%–25% on Normal difficulty and 3.125%–25% on Hard difficulty, varying with regional difficulty, and enchanted as if on an enchantment table at level 5–22.

Raids
Vindicators and pillagers that spawn from raids have a 4.1% chance(5.12% on hard) to drop a badly-damaged iron shovel that is sometimes enchanted with a random enchantment.

Trading
Novice-level Toolsmith villagers have a 25% chance to sell stone shovels for one emerald, journeyman-level toolsmith villagers have a 25% chance to sell enchanted iron shovels for 2 emeralds, and expert-level toolsmith villagers have a 50% chance to sell enchanted diamond shovels for 5 emeralds as part of their trades.

Novice-level Toolsmith villagers have a 40% chance to sell stone shovels for one emerald, journeyman-level toolsmiths have a 40% chance to sell an enchanted iron shovel for 7-22 emeralds, and expert-level toolsmiths have a $2/3$ chance to sell an enchanted diamond shovel for 11-27 emeralds.

The enchantments are the same as the ones obtained from an enchantment table at levels 5–19.

Digging
A shovel can be used to break some materials faster. When breaking a block, it uses 1 durability. For blocks that break instantly, it uses 0 durability.

Durability
Each different tier of shovel has a different durability:

Speed
The following table summarizes the speed at which different quality shovels perform on different block types. Values with a red background indicate that no resource is dropped when the block is destroyed without a shovel.

Grass paths
A shovel can be used to create a grass path by (not digging) the shovel on a grass block. When creating a grass path, it uses 1 durability.

Campfire
A shovel can be used to extinguish a campfire (Bedrock Edition only)

Weapon
Hitting a mob while holding a shovel is a stronger attack than barehanded. Shovels take 2 damage when used as a weapon.

Java Edition
Shovels have an attack speed modifier of -3, meaning they take 1 second to recover. Shovels deal different damage based on the type:

Bedrock Edition
$$, shovels always attack instantly and do the following damage:

Enchantments
A shovel can receive the following enchantments:

Crafting ingredient
$$, wooden shovels are used as "paddles" when crafting the boat.

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