promotional bannermobile promotional banner

RarityJS

Create new rarity for modpack through kubejs.
Back to Files

RarityJS 1.0.4 (Forge)

File nameraritymod-1.0.4.jar
Uploader
TokyoSUTokyoSU
Uploaded
Mar 27, 2025
Downloads
94
Size
52.1 KB
Mod Loaders
Forge
File ID
6355102
Type
R
Release
Supported game versions
  • 1.20.1

Curse Maven Snippet

Forge

implementation fg.deobf("curse.maven:custom-rarity-1037072:6355102")

Learn more about Curse Maven

What's new

Changelogs:

  • Optimized the codes making it more readable and faster.
  • Added new function: setRarityByMod("modid, "rarityId")
  • Added new function: setDefaultRarity("rarityId")
  • Support minecraft rarity: "minecraft:common", "minecraft:uncommon", "minecraft:rare" and "minecraft:epic".

Description:

Added new function: setRarityByMod("modid, "rarityId")

  • This function will set the rarity to all items inside the mod you defined.

Added new function: setDefaultRarity("rarityId")

  • This function will set a default rarity to all items, it have the lowest priority over other function: setRarity and setRarityByMod.

Both these command are usable inside RarityJSEvents.clientRegister

  • If any function fail or is not used, the default rarity of the item will be used.

Now you can also define minecraft rarity using these as rarityId (through custom rarity take priority):

"minecraft:common", "minecraft:uncommon", "minecraft:rare" and "minecraft:epic".

This mod has no additional files