Mods
Resource Packs
Data Packs
Modpacks
Shaders
Plugins
Mods Resource Packs Data Packs Plugins Shaders Modpacks
Get Modrinth App Upgrade to Modrinth+
Sign in
ModsPluginsData PacksShadersResource PacksModpacks
Sign in
Settings
Rarity Lib

Rarity Lib

Methods for applying rarity levels to your items. Common, Uncommon, Rare, Ultra rare, Epic, Mythic

477
1
Library
Rarity Lib has been archived. Rarity Lib will not receive any further updates unless the author decides to unarchive the project.

Compatibility

Minecraft: Java Edition

b1.7.3

Platforms

Fabric

Supported environments

Client-side
Server-side
Client and server

90% of ad revenue goes to creators

Support creators and Modrinth ad-free with Modrinth+

Links

Report issues View source Visit wiki Join Discord server

Creators

Garkatron
Garkatron Member

Details

Licensed CC-BY-NC-4.0
Published last year
Updated last year
DescriptionGalleryChangelogVersions

Better than adventure

This mod uses a modified version of Fabric (Babric) and is designed only for Better than Adventure, a heavily modified version of Minecraft b1.7.3! For more information, join the discord server provided on this projects

BTA Rarity Library

What's this mod?

It's a library that helps you implement rarity levels directly into your items.

Main Features:

  • Rarity Levels: Assign a specific rarity to your items with six different levels:

    • COMMON
    • UNCOMMON
    • RARE
    • ULTRA RARE
    • EPIC
    • MYTHIC
  • Magnifying Glass: This item is used to check the rarity of any item.

How to Use This Library:

Installation

build.gradle
repositories {
   maven { url = "https://jitpack.io" }
}
dependencies {
   modImplementation "com.github.Garkatron:RarityLib:${project.rarity_lib_version}"
}

Simple code example

bta 7.2pre1
// Your item
public static Item your_item;

// Your item builder
public static final ItemBuilder GenericItemBuilder = new ItemBuilder(MOD_ID);

// Your item
Item _item = GenericItemBuilder.build(item);

// Casting and adding the rarity level
((IItemRarityMixin) _item).rarityLib$setRarityLevel(RarityLevel.COMMON);
your_item = _item;

Simple code example

bta 7.1
// Your item
public static Item your_item;

// Your item
Item _item = ItemHelper.createItem(arguments);

// Casting and adding the rarity level
((IItemRarityMixin) _item).rarityLib$setRarityLevel(RarityLevel.COMMON);
your_item = _item;

Modrinth is open source.

main@acf2694

© Rinth, Inc.

Company

TermsPrivacyRulesCareers

Resources

SupportBlogDocsStatus

Interact

Discord X (Twitter) Mastodon Crowdin
Get Modrinth App Settings
NOT AN OFFICIAL MINECRAFT SERVICE. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.