minecraft:rarity
Specifies the base rarity and subsequently color of the item name when the player hovers the cursor over the item.
Properties
Can be written as a single value: text.
| Property | Type | Default | What it does |
|---|---|---|---|
value | Text | "" | Sets the base rarity of the item. The rarity of an item automatically increases when enchanted, either to Rare when the base rarity is Common or Uncommon, or Epic when the base rarity is Rare. |
Used by
No vanilla item file in the official samples uses this component. It is still part of the schema, so add-ons can use it.
Set it without writing JSON
The item maker writes this component for you from a form and puts it in a ready-to-import .mcaddon.