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 or as the contents of a shulker box), 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.
|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
|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, and smooth blocks, which are Common).|| Command Blocks
Enchanted Golden Apple
Jigsaw Block[upcoming 1.14]
All Challenge Advancements
|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.|