Rarity is a statistic applied to items, blocks and advancements to signify their value and ease in obtaining. The only effect rarity has on an item is the color with which their name appears when selected in the hotbar, moused over in the inventory or produced via the /give command (but not when viewed in an item frame, the contents of a shulker box or via statistics), and has no effect on gameplay whatsoever.
The only way to change an item's rarity is to enchant it, which brings its rarity to Rare from Common or Uncommon.
It is not well known how rarities are handled in-game; more information is needed on this matter.
|Applies to most items.||All blocks/items not listed||White|
|Mostly common treasure items, as well as drops from minor bosses.||Bottle o' Enchanting
Heart of the Sea
Totem of Undying
Advancement and goal advancements
|Items crafted from boss drops, as well as trickier to obtain treasures.||Beacon
Enchanted armor, tools and weapons
|Mostly reserved for extremely difficult-to-obtain treasures. Certain Creative-exclusive blocks and items are also contained here, however, exceptions exist (such as player heads, which are Uncommon).|| Command Blocks
Enchanted Golden Apple
All Challenge Advancements
|Applies only to the Ominous Banner. This is technically not a rarity, and instead is a custom name colour.||Ominous Banner||Orange|
|1.0.0||Beta 1.9 Prerelease 2||The tooltip of the golden apple is now magenta, making it the first item to have a tooltip with a color other than white.|
|1.3.1||12w21a||Golden apples now have a blue tooltip, and added enchanted golden apples, which have the same magenta tooltip color as normal golden apples previously did.|
|1.13||18w21a||Added different colored tooltips for certain items, based on their rarity.|
|pre2||Rarity colours now display over the hotbar.|
|Pocket Edition Alpha|
|0.12.1||build 1||The tooltip for enchanted book is yellow, while enchanted item is blue, making these items are the first items to have a tooltip with a color other than white.|
|1.2.0||?||Music disc now have blue tooltip.|
|1.12.0||beta 126.96.36.199||Golden apples now have a blue tooltip, while enchanted golden apples have magenta tooltip color.|