
CobblemonTrainers (Discontinued)
Adds a trainer battle system to Cobblemon with challenging trainer AI
About this Mod

Cobblemon Trainers introduces a trainer battle system to Cobblemon, designed to seamlessly integrate with interactable NPC mods.
These trainers feature a custom AI inspired by Generation 5's trainer AI, ensuring engaging and challenging battles.
- Customize trainer teams extensively, including Moves, IVs, EVs, Abilities, Level, and Nature, offering diverse and challenging battles.
- Access any Pokémon available on your server, including those from datapacks.
- Efficiently organize trainers into groups for streamlined navigation within the setup interface.
- Define win commands for trainers, enabling post-battle rewards such as economy-based incentives.
Commands Overview:
- /trainers add <name> [<group>]: Establish a new trainer with an empty team, optionally assigning them to a specific group.
- /trainers setup: Access the GUI to configure trainers' teams.
- /trainers setwincommand <trainer> <command>: Specify the command executed upon defeating a trainer, with automatic player name substitution (%player%).
- /trainers setlosscommand <trainer> <command>: Define the command executed when a player is defeated by a trainer, with automatic player name substitution (%player%).
- /trainers setgroup <trainer> <group>: Group trainers under specified names in the setup GUI for organizational purposes.
- /trainers remove <trainer>: Delete a trainer from the system.
- /trainers rename <oldName> <newName>: Modify a trainer's name (reflects in battle logs).
- /trainers setcanonlybeatonce <trainer> true/false: Toggle whether a trainer can only be defeated once.
- /trainers addpokemon <trainer> <pokemon>: Add a Pokémon to a trainer's team via command similar to /pokegive.
- /trainers addfromparty <trainer> <partySlot>: Add a Pokémon from the player's party to a trainer's team.
- /trainers setcooldownseconds <trainer> <cooldownSeconds>: Set the cooldown duration for battling the trainer.
- /trainers setpartymaximumlevel <trainer> <maxLevel>: Set a maximum level for the player's party to battle a trainer.
- /trainers adddefeatrequirement <trainer> <defeatRequirement>: Makes it so the given trainer cannot be battled unless the player has defeated a certain trainer.
- /trainers removedefeatrequirement <trainer> <defeatRequirement>: Removes a defeat requirement.
- /trainers resetwintracker <player> <trainer>: Clears whether the given player has defeated the given trainer in the past.
- /trainers usegen5ai: Set trainer battle AI to Generation 5 AI.
- /trainers usestrongai <level>: Set trainer battle AI to Strong AI currently under development for official trainers in Cobblemon.
- /trainers battle [<trainer>]: Initiate a battle with a trainer. Omitting the trainer argument will open a trainer select menu.
- /trainers makebattle <player> <trainer> [<trainerEntity>]: Commence a battle between a player and a trainer.
- /trainers reload: Refresh the trainer data file; caution advised for manual edits.
Utilize single quotes for trainer names or commands with spaces. For instance: /trainers add 'Ash Ketchum'
To include single quotes within a string, utilize ': 'say 'hello'' becomes say 'hello'
All commands require permission level 2 or their 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.
Config Options:
- xpEnabled: Controls whether player Pokémon will gain XP from battling trainers.
Graphics by twsparklecat
Available Versions
How to Install CobblemonTrainers (Discontinued) on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set fabric Loader
In the panel under "Egg", select the fabric loader and matching Minecraft version (1.20.1).
Install Mod
Open the mod browser in the dashboard and search for "CobblemonTrainers (Discontinued)". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
1.20.1, 1.19.2
Server-side
✓ RequiredRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
CobblemonTrainers (Discontinued) server crashes on startup – what to do?
Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.20.1). You can switch loaders with one click in the panel.
Is CobblemonTrainers (Discontinued) compatible with fabric and forge?
CobblemonTrainers (Discontinued) officially supports fabric, forge for Minecraft 1.20.1, 1.19.2. Note: Forge and Fabric mods are NOT cross-compatible – pick one loader and stick with it. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with CobblemonTrainers (Discontinued) – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if CobblemonTrainers (Discontinued) consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Similar Mods
Rent Modded Server
Install CobblemonTrainers (Discontinued) with just one click on your server.
