
TrainerEdit
Create a Minecraft Fabric mod for Cobblemon (Fabric, Minecraft 1.21.1+) that adds a custom NPC Trainer system. Features required: 1. A set of commands to...
Downloads
60
Remixes
0
Price
Free
fabric · Server · 1.21.1 · mod
TrainerEdit Mod - User Guide
Overview
TrainerEdit is a Minecraft mod that lets server admins create custom Pokémon trainers that players can battle. These trainers are persistent NPCs that stay in the world and can be challenged repeatedly (with a cooldown after losing). Perfect for creating gym leaders, rival encounters, or custom trainer battles on your Cobblemon server!
Features
- Create Custom Trainers - Add trainers with custom names and IDs
- Full Team Customization - Set up each trainer's Pokémon with specific species, levels, moves, abilities, items, and stats
- Persistent NPCs - Trainers spawn as villager-like NPCs that stay in place until removed
- Battle System - Right-click trainers to initiate Pokémon battles
- Cooldown System - Players who lose a battle must wait 20 minutes before challenging that trainer again
- Rewards - Award items or run commands when players defeat trainers
- Config Storage - All trainer data is saved to a config file and persists after server restart
How to Use
Creating a Trainer
/cobbletrainer add <trainer_id> <display_name>
Example: /cobbletrainer add gym_leader_1 "Brock the Rock Master"
Adding Pokémon to a Trainer's Team
/cobbletrainer setteam <trainer_id> <pokemon_data>
Example:
/cobbletrainer setteam gym_leader_1 species=onix level=15 nature=brave ability=rock_hard moves=tackle,rock_throw,bind,harden ivs=31,31,31,31,31,31 evs=0,0,252,0,0,0 item=assault_vest
Pokémon Data Format:
species=- Pokémon name (e.g., pikachu, charizard, metagross)level=- Level (1-100)nature=- Nature (e.g., jolly, brave, timid)ability=- Ability namemoves=- Four moves separated by commasivs=- Individual Values (HP, ATK, DEF, SPATK, SPDEF, SPD) - max 31 eachevs=- Effort Values (HP, ATK, DEF, SPATK, SPDEF, SPD) - max 252 eachitem=- Held item name
Setting Rewards
/cobbletrainer setrewards <trainer_id> <reward1>,<reward2>,...
Example: /cobbletrainer setrewards gym_leader_1 give @p diamond 5,give @p experience 1000
Spawning a Trainer
/cobbletrainer spawn <trainer_id>
The trainer will appear at your current location. Example: /cobbletrainer spawn gym_leader_1
Listing All Trainers
/cobbletrainer list
Shows all created trainers and their team sizes.
Removing a Trainer
/cobbletrainer remove <trainer_id>
Example: /cobbletrainer remove gym_leader_1
Tips & Tricks
- Build a Gym - Create multiple trainers with different teams and place them in a themed building
- Progressive Difficulty - Create trainers with increasing levels as players progress
- Rival Encounters - Use the same trainer ID in multiple locations for recurring battles
- Balanced Teams - Mix different Pokémon types to create interesting challenges
- Reward Progression - Give better rewards for harder trainers to incentivize progression
Known Limitations
- Trainers appear as villager-like NPCs (visual customization is limited)
- Cobblemon integration for actual battle mechanics requires Cobblemon mod to be installed
- Trainer data is stored in JSON format in the config folder
- Maximum 6 Pokémon per trainer team (standard Pokémon battle rules)
Need help? Check the server logs for any error messages if commands don't work as expected.
Tested by Player Games
We ran version 1 of this mod on a dedicated Fabric 1.21.1 server on 2026-11-16.
- Startup, launch to ready
- 38 s (one run, to the nearest 1 s)
- Peak memory at ready
- 2101 MiB (whole server container, not this mod alone)
- File size
- 22 KiB
The server's own startup timer (its "Done" log line) read 13.5 s. It covers only part of startup.
The server reached ready with this mod and its required dependencies. This checks startup, not every gameplay feature or client compatibility.
Test isolation was not recorded. Startup and whole-container memory are boot observations, not controlled comparisons of mod cost.
No performance profile yet. Mod CPU cost, allocations and gameplay tick impact have not been measured; missing data does not mean zero cost.
Measured by Player Games on our own test servers (validator image 9a71b55b0bf1). One run is an observation; a median over repeated runs is a measurement.

Effortless WorldBuilding Remix
make the supported environment to both server and client. add the option to see dimensions in numbers. for eg while placing a line of 5 blocks the review...

vault opener heavy core
a mod that opens a omnious vault when a specific item gets displayed inside the omnious vault, when the mod is activated through a keybind H it opens the...

Auto Mace
by calm_vole#6043
Equip a mace from anywhere in your inventory with one key. Cycle between hotbar maces or safely pull a stored mace into reach.

vault opener
a mod that opens a omnious vault when a specific item gets displayed inside the omnious vault, when the mod is activated through a keybind H it opens the...

Flashback inventory addon
Create a client-side Fabric Minecraft mod that makes the Flashback replay mod render and record all GUI elements when using Spectate → First-Person...

PVP Bot
PVP Bot is a Minecraft Fabric mod that gives players an armored opponent for melee practice at three difficulty levels.