Item - Rarity (Expression) — Lusk

Addon: Lusk · Category: Expression · Since: 1.0.0, 1.2 (ItemRarity)

Syntax

[the] item rarity of %itemtypes%

Description

Returns the rarity of an item. Can be set.

Before Lusk 1.2 (and Minecraft 1.20.5), this expression returned strings and also worked for enchantments, due to some major changes enchantments no longer have a rarity.

Examples

broadcast item rarity of tool
set item rarity of {_sword} to epic

View source