RarityJS

Create new rarity for modpack through kubejs.

File Details

RarityJS 1.0.4 (Forge)

  • R
  • Mar 27, 2025
  • 52.11 KB
  • 79
  • 1.20.1
  • Forge

File Name

raritymod-1.0.4.jar

Supported Versions

  • 1.20.1

Curse Maven Snippet

Forge

implementation fg.deobf("curse.maven:custom-rarity-1037072:6355102")
Curse Maven does not yet support mods that have disabled 3rd party sharing

Learn more about Curse Maven

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".