In partnership with NodeCraft Logo NodeCraft

From Pixelmon Wiki
Revision as of 05:09, 29 December 2019 by Xpand (talk | contribs) (Installation: Version bump.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Trainer Commands is a Pixelmon sidemod that allows NPCs and Statues to run commands during player interactions.


Minecraft version Pixelmon version Trainer Commands version
1.12.2 7.0+ 2.5.1
1.12.2 6.0+ 2.4.0
1.10.2 5.0-5.1 2.1.5
1.8.9 4.3 2.1.3

Trainer Commands is server-side and does not need to be installed by each individual player to be used.

Minecraft launcher

  1. Download Trainer Commands for your version of Minecraft here.
  2. Place the downloaded jar file in the mods folder.

Pixelmon launcher

  1. Edit your profile and choose the "Add Official Sidemod" option.
  2. Select Trainer Commands from the list.


Trainer Commands allows players to specify a command or list of commands to be executed when an NPC or Statue is interacted with or when an NPC Trainer loses a battle, wins a battle, begins a battle, or has a battle be forfeited (using separate command lists for each). Both Pixelmon and Minecraft commands can be executed by NPCs. With commands that require a player to be specified as one of their arguments, @pl can be used in place of a player name to target the player that interacted with the NPC (e.g., /pokeheal @pl, /tp @pl 0 64 0). Commands that don't specifically target any player, such as /pokespawn, will work as well. However, commands that specifically target the user of the command and don't allow the player to be specified will not work unless the player flag is used, an example being /spawn.

The lists of commands will be executed in the order that they are added to the NPC or Statue. They will be executed once the battle concludes, after the NPC Trainer says his/her win/loss message, or immediately when the NPC or Statue is interacted with.

The types of commands are:

  • interact: when a player interacts with a Pixelmon NPC or Statue.
  • win: when an NPC Trainer defeats a player.
  • loss: when an NPC Trainer loses to a player.
  • forfeit: when a player forfeits a battle to an NPC Trainer.
  • battle_start: when a player and NPC Trainer begin a battle.


Note: Command syntax is displayed in the standard Minecraft command format. An explanation of this format can be found here.

  • /tedit add <win|loss|battle_start|forfeit|interact> <command> [flag]: The specified command will be added to a list of commands that will be executed once the NPC is interacting with in the specified way. After using the command, interacting with an NPC Trainer will add the command to the Trainer.
    • you can use one of 3 optional flags to specify how the command is run:
      • -e: runs the command as the NPC or Statue
      • -p: runs the command as the Player
      • -c: runs the command as Console (default)
  • /tedit remove <win|loss|battle_start|forfeit|interact> <command>: The first occurrence of the specified command will be removed from the specified command list of the next NPC that is interacted with. If the command is not in the respective list, nothing will happen upon interaction.
  • /tedit list: After using this command, interacting with an NPC will display the lists of commands to be executed.

Permission nodes

  • /tedit: trainercommands.command.tedit

Version history

Version history/Trainer Commands

© 2014 - 2019 Pixelmon Mod