Community listing page, reviews here may not be monitored by the author.
[Cobblemon] TrainerAttributesLib
No reviews yet
Integrates Minecraft's attributes with Cobblemon.
Provides a framework or library for other mods to use.
Fabric is a mod loader for versions 1.14+ of Minecraft, particularly popular for client side and optimization mods.
Community voices
Reviews
Filters
Click once to include, again to exclude, again to clear
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
Compatibility
Supported Environments
Must be installed on both the client and the server.
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
Resources
External Links
About
Description
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()
)
) {
}
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
Want to reach Minecraft players?
We're looking for a server hosting partner to feature here and other parts of the site. Interested? Send us a message!
Get in touchGet it on
Available Platforms
On ModDex
Community snapshot
By the numbers
Statistics
Resources