1. Wiki
  2. /Items
  3. /minecraft:rarity

minecraft:rarity

Don't want to write this by hand? GodCraft sets minecraft:rarity for you with a switch.Get GodCraft

Overview

minecraft:rarity is an item component: it goes in the components object of a custom item. Sets how rare the item looks, which also sets the color of its name. Enchanting bumps it up one level: common and uncommon become rare, and rare becomes epic.

Fields

FieldTypeDefaultDescription
valuestring""The starting rarity: "common", "uncommon", "rare" or "epic".

Example

Inside the components object of BP/items/<name>.json (values are the defaults or placeholders):

BP/items/<name>.json
{
  "minecraft:rarity": {
    "value": ""
  }
}

Items: Behavior pack

We use cookies to improve your experience and analyse site traffic. Learn more