Back to mods
RarityJS project artwork

CurseForge · Minecraft mod

RarityJS

Create new rarity for modpack through kubejs.

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which RarityJS release should I use?

Updated last month
Latest stable file RarityJS 1.1.7
Game version 1.20.1
Loader Forge

RarityJS 1.1.7 targets 1.20.1 with Forge. The project page does not say whether this file belongs on the client, dedicated server, or both. All 2 required mods have matching files.

Where it goes

Is RarityJS required on the client, server, or both?

The project page does not say whether this file belongs on the client, dedicated server, or both.

Client Source doesn’t say
Dedicated server Source doesn’t say
Loader for this release Forge
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source does not explicitly classify this release as client-only or server-only.

What else does RarityJS 1.1.7 need?

RarityJS 1.1.7. Change the file and its required mods may change too.

All 2 required mods have matching files

Install ApocalypseLib, Fragmentum 🧩 Forge first. We found matching files for this game-version and loader setup.

ApocalypseLib Needed by RarityJS 1.1.7
required
Matching file found Matched file: ApocalypseLib 1.2.0
Obscure Tooltips Optional for RarityJS 1.1.7
optional
Matching file found Matched file: Obscure Tooltips 3.10.1
Fragmentum 🧩 Forge Needed by RarityJS 1.1.7
required
Matching file found Matched file: Fragmentum 5.4.0

We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add RarityJS without breaking your instance.

Built for RarityJS 1.1.7. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use RarityJS 1.1.7. It targets 1.20.1 with Forge; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install ApocalypseLib, Fragmentum 🧩 Forge first. We found matching files for this game-version and loader setup.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside RarityJS 1.1.7. It opens that exact file at the source.

About this project

What does RarityJS add?

RarityJS is a Forge mod for Minecraft 1.20.1 made for modpack creators who want full control over item rarities through KubeJS.

Create your own rarity levels, assign them to individual items or entire groups of content, and optionally give them enhanced tooltip visuals with Obscure Tooltips.

Features

  • Create custom rarities with KubeJS.
  • Built-in Common, Uncommon, Rare, Unique, Legendary, Epic, Mythic, and God rarity IDs.
  • Assign rarities by item ID, item tag, NBT, or mod ID.
  • Set a global default rarity for otherwise-unmatched items.
  • Replace Minecraft's built-in Common/Uncommon/Rare/Epic rarities without overriding explicit RarityJS assignments.
  • In-game Rarity Editor for Creative players — press F7, right-click an item, and choose its rarity.
  • Export editor changes directly to kubejs/startup_scripts/ with /rarityjs export <filename>.
  • Optional built-in Rarity Tooltips resource pack for Obscure Tooltips, registered through Fragmentum.
  • JEI-aware editor integration.

Example

RarityJSEvents.register(event => {
    event.addRarity('example.ancient', 'dark_aqua')

    event.setRarity('minecraft:nether_star', 'example.ancient')
    event.setRarityByTag('forge:ingots/netherite', 'raritymod.legendary')
    event.setRarityByMod('examplemod', 'raritymod.unique')
    event.replaceRarityBy('minecraft:rare', 'raritymod.legendary')
})

Put your scripts in:

kubejs/startup_scripts/

Required Dependencies

  • Minecraft Forge 47+
  • KubeJS 2001.6.5-build.26+
  • ApocalypseLib 1.2.0+

Optional Integrations

  • Fragmentum 5.0.0+
  • Obscure Tooltips 3.10.1+
  • JEI

Project description from CurseForge.

Pick your setup

RarityJS by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

2 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

RarityJS versions and loaders

13 of 13 releases match

Looking for an older file? The official CurseForge project page is in Resources.