CobblemonTrainers (Discontinued) - Trainer System for Cobblemon

This mod adds a comprehensive trainer battle system to Cobblemon that seamlessly integrates with mods that add interactive NPCs. Trainers utilize advanced artificial intelligence inspired by Generation 5 Pokémon, providing engaging and challenging battles.
Main Features
You get complete control over creating trainers and their teams. You can configure attacks, individual values (IV), effort values (EV), abilities, levels, and Pokémon natures. The system supports all Pokémon available on the server, including those added through datapacks.
For convenient management, trainers are organized into groups through a special setup interface. After defeating a trainer, you can configure command execution, for example, to provide rewards through economic systems.
Management Commands
Creation and Configuration:
/trainers add <name> [<group>]- create a new trainer with an empty team/trainers setup- open the interface for configuring trainer teams/trainers rename <oldName> <newName>- change trainer name
Battle Management:
/trainers battle [<trainer>]- start battle with a trainer/trainers makebattle <player> <trainer>- start battle between player and trainer/trainers usegen5ai- set Generation 5 AI/trainers usestrongai <level>- set advanced AI
Team Settings:
/trainers setwincommand <trainer> <command>- command after victory/trainers setlosscommand <trainer> <command>- command after defeat/trainers addpokemon <trainer> <pokemon>- add Pokémon to team/trainers addfromparty <trainer> <slot>- add Pokémon from player's party
Restrictions and Requirements:
/trainers setcanonlybeatonce <trainer> true/false- can only be defeated once/trainers setcooldownseconds <trainer> <seconds>- cooldown time between battles/trainers setpartymaximumlevel <trainer> <maxLevel>- maximum player team level/trainers adddefeatrequirement <trainer> <requirement>- requirement to defeat another trainer
Technical Commands:
/trainers remove <trainer>- remove trainer/trainers setgroup <trainer> <group>- assign group/trainers reload- reload trainer data/trainers resetwintracker <player> <trainer>- reset victory status
Important Features
For trainer names or commands with spaces, use single quotes. For example: /trainers add 'Ash Ketchum'
If you need to use single quotes inside a string, use backslash: 'say \'hello\'' becomes say 'hello'
All commands require permission level 2 or corresponding permission nodes:
- "selfdot.trainers.reload" -
/trainers reload - "selfdot.trainers.battle" -
/trainers battle <trainer> - "selfdot.trainers.makebattle" -
/trainers makebattle <player> <trainer> - "selfdot.trainers.edit" - all other commands
Configuration Settings:
xpEnabled- determines whether player Pokémon will gain experience from trainer battles
Graphics by twsparklecat