Radical Cobblemon Trainers API

Radical Cobblemon Trainers API

Mod

Trainer management and battle API for Cobblemon.

Server

13.8k downloads
10 followers
Follow Save
90% of ad revenue goes to creators. Go ad-free while supporting creators with Modrinth Plus. Subscribe today!
Filter loader...

Changelog

[0.10.6-beta] - 2025-01-07

Fixed:

  • #17 Trainer pokemon being saved to the world

Changelog

[0.10.5-beta] - 2025-01-07

Added:

  • #16 Methods for initialization and retrieval of different RCTApi instances by id or in bulk (fallback to RCTApi#DEFAULT_INSTANCE)
    • RCTApi#getInstance(String)
    • RCTApi#getInstances()
    • RCTApi#initInstance(String)
    • RCTApi#initInstance(String, TrainerRegistry)
    • RCTApi#initInstance(String, TrainerRegistry, BattleManager)
  • #15 Methods to retrieve Trainers from the TrainerRegistry by the original trainer (OT) of a given Pokemon
    • TrainerRegistry#getByOT(Pokemon)
    • TrainerRegistry#getByOT(Pokemon, Class<T>)

Deprecated:

  • #14 RCTApi#init() use new methods instead (see #16)

Changelog

[0.10.4-beta] - 2024-12-30

Fixed

  • Issues with entity selector in battle command for formats with multiple participants

Changelog

[0.10.3-beta] - 2024-12-29

Added

  • RCTApiCommands.register(String) allows to register RCTApi commands with a different prefix
  • TrainerRegistry#getId(LivingEntity) retrieves the trainer id for any given LivingEntity

Changed

  • battle command now supports entity selectors

Changelog

[0.10.2-beta] - 2024-12-23

Fixed

  • Battle music themes not playing in trainer battles (battle.pvn)

Changelog

[0.10.1-beta] - 2024-12-09

Fixed

  • Missing Cobblemon (version) dependency check
  • Replaced redundant PokemonEntityMixin with event handler (which also fixed a crash caused by that mixin on startup)

Changelog

[0.10.0-beta] - 2024-12-09

Added

  • Added ai configs RCTBattleAIConfig, SelfdotGen5AIConfig, StrongBattleAIConfig and registered corresponding JTO parsers (rct, sd5 and cbl)
  • Generic JTO (json to object) flexible parser system

Removed

  • AIType enum (TrainerModel.ai is now defined as JTO<BattleAI>)

Changelog

[0.9.1-beta] - 2024-12-09

Changed

  • RCTBattleAI adjustments/fixes: improved switch evaluation + trainers now actually consider the use of (mostly healing) items

Fixed

  • Issues with RCTBattleAI and switch instructions potentially causing softlocks as well as some other corner cases that could cause a battle failure (this might not fixed all issues but it appeared rather stable now during my testings)

Changelog

[0.9.0-beta] - 2024-12-03

Added

  • Initial release (trainer management, battle formats, battle ai, trainer models)

Project members

hd42

Member

Details

Licensed LGPL-3.0-only
Published a month ago
Updated a day ago