RarityJS
Create new rarity for modpack through kubejs.
No ratings yet
Be the first to rate it.
Community listing page
Community listing page, reviews may not be monitored by the author.
Community voices
Reviews
Log in to review this mod
Reviews are written by ModDex members. Log in and you'll come right back to the review form.
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
About
Description
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
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
Stats
- Downloads
- 70k
- Used in
- 12 modpacks
- Followers
- 0
- In stacks
- 0
- Created
- Last synced
-
Nov 3, 2026 5:10 PM UTC
New file updates sync automatically.
When ModDex last fully re-synced this project from CurseForge or Modrinth. A new file release triggers a resync usually within minutes, and every project is also re-synced on a schedule. Edits that don't ship a file, such as a new description or screenshots, are checked every few hours and can appear before this date changes.
How syncing works
External Links
Stats
- Downloads
- 70k
- Used in
- 12 modpacks
- Followers
- 0
- In stacks
- 0
- Created
- Last synced
-
Nov 3, 2026 5:10 PM UTC
New file updates sync automatically.
When ModDex last fully re-synced this project from CurseForge or Modrinth. A new file release triggers a resync usually within minutes, and every project is also re-synced on a schedule. Edits that don't ship a file, such as a new description or screenshots, are checked every few hours and can appear before this date changes.
How syncing works