rarity

fun rarity(weight: Int)

The rarity of this enchantment. The value is used as a weight, so enchantments with a higher value are more common. Defaults to 10.

Default vanilla rarities:

  • Common: 10

  • Uncommon: 5

  • Rare: 2

  • Very rare: 1