ModsJava
KubeJS Custom Rarity
Java mod listed for Minecraft 1.20–1.21. Downloads from the MC Java Mods app on Android.
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.
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')
})



Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.20.1, 1.20.4, 1.21
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on CurseForge — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
File checked by MCModsHub
- Ships as kubejs_rarity-1.20.4-1.0.0+neoforge.jar — drop this file into the mods folder
- Download size: 249 KB
- Download link checked 24 Oct 2026 — working
These come from our own check of the pack file, not from the source page.