Radical Cobblemon Trainers API
API for trainer management and battles in the Cobblemon modification.
This library was created as a foundation for the Radical CobblemonTrainers mod and replaces the outdated CobblemonTrainers dependency for Minecraft version 1.21 and above, as well as Cobblemon version 1.6 and above. At the same time, it is developed as an independent tool providing developers with a similar set of features for free use.
Key Features
- Trainer management system and entity binding (trainer registry)
- Support for various battle formats: single (1v1), double (1v1 with two Pokémon), team (2v2), and others
- Customizable battle rules, including limits on item usage per battle
- Extended artificial intelligence features (currently supported only by RCTBattleAI):
- Standard battle actions: move selection, Pokémon switching
- Special mechanics: mega evolution, dynamaxing, Z-moves, terastallization (in development)
- Trainer item usage in battles
- Trainer and Pokémon models for easy data parsing
- Converters to Cobblemon types
- Model validation with preliminary collection of all errors before exception generation
To review usage examples, refer to the project repository.