Skip to content

In-Game NBT Tag Rarity Control

New in Ver.13

Items with a raritycore:data NBT tag can directly control their rarity display. Controlled by server.jsonenableNbtRarityControl (off by default).

Enabling

In config/raritycore/server.json:

json
{
  "enableNbtRarityControl": true
}

Then /raritycore reload.

NBT Structure

raritycore:data
├── Level (int)           # Rarity level
├── Color (string)        # RGB color, e.g. "#FFAA00"
├── Tooltips (bool)       # Show tooltip
├── Renderer (bool)       # Render border
├── NameColor (bool)      # Recolor name
└── TextureBorder (string) # Texture path

All fields are optional — missing fields fall back to regular config.

Example

/give @p minecraft:diamond_sword{raritycore:data:{Level:6,Color:"#FF6666"}}

Rules

ConditionBehavior
Level not setNo effect, falls back to regular query
Level = 0No rarity, falls back
Level > 0Highest priority (overrides everything)
Color not setUses regular config

Priority

When raritycore:data.Level > 0, it has the highest priority, overriding:

  • NBT match rules
  • FinalRarity.json
  • TagRarity
  • Auto rarity calculation
  • Vanilla rarity
  • Apotheosis / Iron's Spellbooks adapters

Notes

  • Off by default for performance
  • NBT-controlled rarity is not synced — each client checks independently
  • Cache does not pollute original item ID rarity

Released under the MIT License