Compatibility
Minecraft: Java Edition
b1.7.3
Platforms
Fabric
Supported environments
75% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Creators
Details
Licensed CC-BY-NC-4.0
Published 5 months ago
Updated 3 months ago
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;