Durability

Durability is a property that affects all tools, weapons, and armor, as well as certain other usable items. It represents the number of useful actions an item can perform and depletes upon item use. The bar starts at green, but as the durability decreases, the color turns to yellow, then orange, and finally red. When the durability is empty, the item is about to become destroyed. Durability may be increased by merging two damaged items or repairing them with materials in an anvil, or through the mending enchantment.

Interface
The remaining durability of any item can be seen by looking at the item's durability bar on the bottom of the item icon in the inventory and action bar. Unused items do not display a durability bar. As the item's durability decreases, the bar's colored area shortens right to left, changing color from green to red and leaving an empty gray part. When the item has a small number of uses left, the durability bar is represented as empty, due to rounding to the nearest pixel 1-down until the tool or armor is destroyed.

The numeric durability of the player's items can be displayed in-game by pressing +. (This enables various additional information in the tooltips for items in the player's inventory.)

A weapon or tool picked up by a mob does not decrease in durability; it remains the same as when the item was first picked up by the mob. However, a helmet worn by an undead mob in sunlight loses durability due to the helmet absorbing the mob's damage from burning.

Items with the Unbreakable tag do not deplete their durability or break when used. Their durability is not shown, even with advanced tooltips enabled, though it is retained in the NBT data. Such an item can be acquired using.

Armor durability
Armor durability is based on the armor's type (head, torso, legs, feet) and material (leather, gold, chain mail, iron, diamond, and netherite). Any time the player takes damage that can be reduced by armor, each piece of armor they are wearing loses 1 durability for every of incoming damage (rounded down, but never below 1).

Armor can reduce damage from the following sources:
 * Direct attacks from mobs and other players
 * Getting hit with an arrow, snowball or fireball
 * Touching a block of fire, lava, magma block, cactus, or moving in grown sweet berry bush
 * Explosions (deals more than one point of durability)

The following types of damage are not reduced by ordinary armor and have no effect on the armor's durability. Some enchantments can protect against them, but they still don't damage the armor.
 * Ongoing damage from being on fire
 * Suffocating inside a block
 * Drowning in water
 * Starvation
 * Fall damage
 * Falling into the void
 * The Poison, Wither and Instant Damage status effects.

Values in the table below represent the number of points of durability damage this armor can take before it is destroyed.

Note that every time the player takes damage that armor is capable of reducing (see above), it counts as one point of durability damage for every worn armor piece.

Tool durability
Some tools are not block-breaking tools: This includes bows, fishing rods, carrots on sticks, flint and steel, warped fungi on sticks, and elytra. Such tools are no better than bare fists at breaking blocks, but they do not take damage from doing so—they take damage by being used in their own various manners.

For block-breaking tools, a use is counted only if a player completely breaks apart one block or hits a mob. If a block is partially broken this is not counted as a full use.

Items with an Unbreaking enchantment do not always lose durability when used; for a given enchantment level, the chance of losing durability is 1 in (1+level). Such items last an extra level times their original durability, give or take a few.

Note that certain uses cause either no damage or extra damage to the tool:


 * Axes, pickaxes, and shovels:
 * Breaking a block that breaks instantly counts as 0 uses.
 * Breaking other blocks counts as 1 use.
 * Paving a grass block using a shovel to make a grass path counts as 1 use.
 * Using an axe on a log or wood to strip it counts as 1 use.
 * Hitting a mob (hostile, neutral or passive) counts as 2 uses.
 * Hoes:
 * Breaking a block that breaks instantly counts as 0 uses.
 * Breaking other blocks counts as 1 use.
 * Tilling dirt or grass counts as 1 use.
 * Hitting a mob counts as 1 use.
 * Shears:
 * Hitting a mob counts as 0 uses.
 * Shearing a sheep or a shearable animal counts as 1 use.
 * Breaking any block counts as 1 use.
 * Swords:
 * Breaking a block that breaks instantly counts as 0 uses.
 * Breaking other blocks counts as 2 uses.
 * Hitting a mob counts as 1 use.
 * Fishing rods:
 * Breaking a block or hitting a mob counts as 0 uses.
 * Casting the line and reeling it in empty, counts as 0 uses.
 * Reeling in an item counts as 1 use.
 * Catching the bobber/hook on a block, then reeling it in, counts as 2 uses.
 * Using the line to yank on an item counts as 3 uses.
 * Using the line to yank on a mob counts as 5 uses.
 * Carrot on a stick
 * Breaking a block or hitting a mob counts as 0 uses.
 * Using the boost counts as 7 uses.
 * Flint and steel
 * Breaking a block or hitting a mob counts as 0 uses.
 * Using it to set a block on fire or light a nether portal counts as 1 use.
 * Bow
 * Breaking a block or hitting a mob counts as 0 uses.
 * Firing an arrow counts as 1 use.
 * Tridents:
 * Breaking a block that breaks instantly counts as 0 uses.
 * Breaking other blocks counts as 2 uses.
 * Attacking a mob or throwing counts as 1 use.
 * Elytra
 * Flying for one second counts as 1 use. The durability cannot go below 1.
 * Shield
 * When the shield blocks an attack, it takes damage equal to the strength of the attack (rounded down) plus 1
 * Crossbow
 * Shooting an arrow counts as 1 use.
 * Shooting three arrows (when enchanted with multishot) counts as 3 uses.
 * Shooting a firework rocket counts as 3 uses.
 * Shooting three firework rockets (when enchanted with multishot) counts as 9 uses.
 * Warped Fungus on a Stick
 * Breaking a block or hitting a mob counts as 0 uses.
 * Using the boost counts as 1 use.
 * Sparkler and Glow Stick
 * Durability gradually decreases while the item is active and held in hand.
 * All other tools can be used indefinitely.

Using a tool properly maximizes its durability. Assuming a player uses a tool appropriately, the following list shows the maximum durability for tools of each material type.


 * Materials
 * Gold: 32 uses
 * Wood: 59 uses
 * Stone: 131 uses
 * Iron: 250 uses
 * Diamond: 1561 uses
 * Netherite: 2031 uses


 * Specific tools
 * Fishing rod: 64 uses or 384 uses ‌
 * Flint and steel: 64 uses
 * Carrot on a stick: 25 uses
 * Shears: 238 uses
 * Shield: 336 uses
 * Bow: 384 uses
 * Trident: 250 uses
 * Elytra: 432 uses
 * Crossbow: 326 uses
 * Warped Fungus on a Stick: 100 uses
 * Sparkler: 100 uses
 * Glow Stick: 100 uses