promotional bannermobile promotional banner

KubeJS Custom Rarity

Let you create new custom rarities using KubeJS

KubeJS addon that allows you to create custom rarities.

Create and customize your own rarity types with support for hex colors and text formatting.

Limits:

  • Forge / NeoForge: up to 200 custom rarities
  • Fabric / Quilt: unlimited custom rarities, available only for 1.20.1

You can apply custom colors using hex color codes and add formatting styles to each rarity.

Available formatting codes:

bold, italic, underlined, strikethrough, obfuscated

Examples:

StartupEvents.registry('item', event => {
  event.createRarity('mint', 0x98FF98)
  event.createRarity('fire', 0xE25822, bold, italic)
  event.createRarity('teal', 0x008080, bold, italic, underlined, strikethrough, obfuscated)

  event.create('mint_gem')
    .displayName('Mint Gem')
    .rarity('mint')
 
 event.create('fire_gem')
    .displayName('Fire Gem')
    .rarity('fire')
 
   event.create('teal_gem')
    .displayName('Teal Gem')
    .rarity('teal')
})


The KubeJS Custom Rarity Team

profile avatar
Owner
  • 1
    Followers
  • 3
    Projects
  • 1.3K
    Downloads

More from maxkuka