KubeJS Custom Rarity

Quick rating

Community listing page, reviews here may not be monitored by the author.

KubeJS Custom Rarity

No reviews yet

Let you create new custom rarities using KubeJS

Mod Loaders
Minecraft

About

Description

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')
})


description_1d12e7fd-c6a3-4446-815d-6c5dc547a8a0.pngdescription_033d7558-ec04-46f2-84ae-a07a2b0d8d4e.pngdescription_a38ae71e-2f3b-4195-8341-e5fbc128e4bd.png