TrainerEdit banner
TrainerEdit icon

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...

100Free
fabricServer1.21.1mod

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 name
  • moves= - Four moves separated by commas
  • ivs= - Individual Values (HP, ATK, DEF, SPATK, SPDEF, SPD) - max 31 each
  • evs= - Effort Values (HP, ATK, DEF, SPATK, SPDEF, SPD) - max 252 each
  • item= - 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.