Radical Cobblemon Trainers API

Trainer management and battle API for Cobblemon.

File Details

rctapi-fabric-1.21.1-0.15.0-beta.jar

  • B
  • Mar 21, 2026
  • 227.66 KB
  • 585.9K
  • 1.21.1
  • Fabric

File Name

rctapi-fabric-1.21.1-0.15.0-beta.jar

Supported Versions

  • 1.21.1

Curse Maven Snippet

Fabric

modImplementation "curse.maven:radical-cobblemon-trainers-api-1152792:7791654"
Curse Maven does not yet support mods that have disabled 3rd party sharing

Learn more about Curse Maven

Changelog

As of version 0.15.0-beta, RCTApi may only be redistributed under the terms of the MCOML License.

[0.15.0-beta] - 2026-03-21

Added:

  • #128 BattleInstance: Associates a TrainerNPC with a PokemonBattle and the LivingEntity it was attached to at the start of that battle
  • #127 TrainerNPC#getBattleInstances(): Retrieves a list of all active BattleInstances the trainer is attending to

Changed:

  • #126 Adjustments to the battle AI switch evaluation, which makes it less likely for trainers to switch into pokemon with much higher stats
  • #125 Slight adjustment to battle AI to lower the chance to use (often waste) healing items on squishy pokemon on the field
  • #124 Trainers may now attend to multiple battles at the same time
    • Note that a trainer entity can still only attend to one battle at a time (a copy of that entity can attend to a different battle)
    • The entity the trainer was attached to at the start of a battle is stored to ensure recall animations of pokemon will always point towards that entity
    • This was possible in an older version of the API (with unexpected side effects) but was never an intended feature, now it is
  • #123 Trainers now support custom sound events. Use the battleTheme property to assign a custom resource location (falls back to battle.pvn.default if unset). Refer to the docs for more info

Fixed:

  • #122 Battle AI attempting to use baton pass when there is no pokemon to switch to and it will also avoid that move if the user has no stat buffs
  • #121 Battle AI not including active shield effects (light screen/reflect) in some damage calculations
  • #120 Battle AI not recognizing the weather effects "heavy rain", "extremely harsh sunlight" and "strong winds" (e.g. attempting to use fire or water moves when they would fail)
  • #119 BATTLE_STARTED event receiving null instead of the BattleState as parameter

Removed:

  • #118 Deprecated overloads of TypeChart#getEffectiveness()