![[Cobblemon] TrainerAttributesLib](https://cdn.modrinth.com/data/P7tBjBML/1b1b9581b6b3724e60b2dd46c7468871f9994126.png)
[Cobblemon] TrainerAttributesLib
Integrates Minecraft's attributes with Cobblemon.
Screenshots
![[Cobblemon] TrainerAttributesLib Screenshot 1](https://cdn.modrinth.com/data/P7tBjBML/images/0480ac6918d59a55763df0cfba90121837d0fe85.png)
About this Mod
Integrates Minecraft's attribute system with Cobblemon.
Things such as catch chance, shiny chance, and experience earned per battle can be modified.
Mostly intended for use with Accessories or Curios, though the attributes do apply when on pieces of armor. (but not tools)
If I ever truly decide to stop being lazy I'll port it over to forge as well.
Free for use whereva.
Features
Current Attributes Supported:
- Pokemon Experience Boost (+ Various types)
- Catch Chance Boost (+ Various Types)
- Shiny Chance Boost (+ Various Types)
- Hidden Ability Chance Boost (+ Various Types)
- Crit Catch Chance Boost (+ Various types)
- Spawn Chance Boost (+ Various Types)
- Bonus IVs (+ Various Types / For Specific Stats)
Example
class MudkipCharm() : AccessoryItem(
Item.Settings().component(
DataComponentTypes.ATTRIBUTE_MODIFIERS as ComponentType<AttributeModifiersComponent>,
AttributeModifiersComponent.builder()
.add(
Registries.ATTRIBUTE.getEntry(TrainerAttributes.TYPED_SPAWN_CHANCE_ATTRIBUTE.getAttributeOfType(
ElementalTypes.FIRE
)),
EntityAttributeModifier(
TrainerAttributes.TYPED_SPAWN_CHANCE_ATTRIBUTE.getIdentifierOfTypedAttribute(ElementalTypes.FIRE),
5.50,
EntityAttributeModifier.Operation.ADD_MULTIPLIED_BASE
),
AttributeModifierSlot.ANY
)
.add(
Registries.ATTRIBUTE.getEntry(TrainerAttributes.TYPED_BONUS_IVS_ATTRIBUTE.getAttributeOfType(
ElementalTypes.WATER
)),
EntityAttributeModifier(
TrainerAttributes.TYPED_BONUS_IVS_ATTRIBUTE.getIdentifierOfTypedAttribute(ElementalTypes.WATER),
5.0,
EntityAttributeModifier.Operation.ADD_VALUE
),
AttributeModifierSlot.ANY
)
.add(
Registries.ATTRIBUTE.getEntry(TrainerAttributes.STAT_BONUS_IVS_ATTRIBUTE.getAttributeOfStat(Stats.HP)),
EntityAttributeModifier(
TrainerAttributes.STAT_BONUS_IVS_ATTRIBUTE.getIdentifierOfStatAttribute(Stats.HP),
5.0,
EntityAttributeModifier.Operation.ADD_VALUE
),
AttributeModifierSlot.ANY
)
.add(
Registries.ATTRIBUTE.getEntry(TrainerAttributes.BONUS_IVS_ATTRIBUTE),
EntityAttributeModifier(
TrainerAttributesLib.getIdentifier("bonus_ivs"),
5.0,
EntityAttributeModifier.Operation.ADD_VALUE
),
AttributeModifierSlot.ANY
)
.add(
Registries.ATTRIBUTE.getEntry(TrainerAttributes.CATCH_CHANCE_BOOST_ATTRIBUTE),
EntityAttributeModifier(
TrainerAttributesLib.getIdentifier("catch_chance_boost"),
0.05,
EntityAttributeModifier.Operation.ADD_MULTIPLIED_BASE
),
AttributeModifierSlot.ANY
)
.add(
Registries.ATTRIBUTE.getEntry(
TrainerAttributes.TYPED_CATCH_CHANCE_BOOST_ATTRIBUTE.getAttributeOfType(ElementalTypes.WATER)
),
EntityAttributeModifier(
TrainerAttributes.TYPED_CATCH_CHANCE_BOOST_ATTRIBUTE.getIdentifierOfTypedAttribute(ElementalTypes.WATER),
0.10,
EntityAttributeModifier.Operation.ADD_MULTIPLIED_BASE
),
AttributeModifierSlot.ANY
)
.build()
)
) {
}
Available Versions
How to Install [Cobblemon] TrainerAttributesLib on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set fabric Loader
In the panel under "Egg", select the fabric loader and matching Minecraft version (1.21.1).
Install Mod
Open the mod browser in the dashboard and search for "[Cobblemon] TrainerAttributesLib". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
1.21.1
Server-side
✓ RequiredRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
[Cobblemon] TrainerAttributesLib server crashes on startup – what to do?
Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21.1). You can switch loaders with one click in the panel.
Is [Cobblemon] TrainerAttributesLib compatible with fabric?
[Cobblemon] TrainerAttributesLib officially supports fabric for Minecraft 1.21.1. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with [Cobblemon] TrainerAttributesLib – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if [Cobblemon] TrainerAttributesLib consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Similar Mods
Rent Modded Server
Install [Cobblemon] TrainerAttributesLib with just one click on your server.