Difference between revisions of "Trainer Commands"
Line 1: | Line 1: | ||
Trainer Commands is a Pixelmon [[sidemod]] that allows [[NPC Trainers]] to run commands once defeated or victorious. | Trainer Commands is a Pixelmon [[sidemod]] that allows [[NPC Trainers]] to run commands once defeated or victorious. | ||
==Installation== | ==Installation== | ||
− | Trainer Commands functions for Pixelmon 3.3.2 and upwards. In order for Trainer Commands to be used on servers, command blocks must be enabled by setting "enable-command-block" to ''true'' in the server.properties file; failing to do so will prevent commands from being executed by NPC Trainers. | + | Trainer Commands functions for Pixelmon 3.3.2 and upwards. On servers, the mod is server-side and does not need to be installed by each individual player to be used. |
+ | |||
+ | In order for Trainer Commands to be used on servers, command blocks must be enabled by setting "enable-command-block" to ''true'' in the server.properties file; failing to do so will prevent commands from being executed by NPC Trainers. | ||
+ | ===''Minecraft'' launcher=== | ||
#Download Trainer Commands [http://pixelmonmod.com/downloads.php here]. | #Download Trainer Commands [http://pixelmonmod.com/downloads.php here]. | ||
− | #Place the downloaded | + | #Place the downloaded jar file in the mods folder. |
− | + | ===[[Pixelmon launcher]]=== | |
+ | #Edit your profile and choose the "Add Official Side-Mod" option. | ||
+ | #Select Trainer Commands from the list. | ||
==Overview== | ==Overview== | ||
Trainer Commands allows players to specify a command or list of commands to be executed when an NPC Trainer loses a battle or wins a battle (using separate command lists for each). Both Pixelmon and ''Minecraft'' commands can be executed by NPC Trainers. 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 who defeated/lost to the NPC Trainer (e.g., "/pokeheal @pl"). 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, an example being /kill. | Trainer Commands allows players to specify a command or list of commands to be executed when an NPC Trainer loses a battle or wins a battle (using separate command lists for each). Both Pixelmon and ''Minecraft'' commands can be executed by NPC Trainers. 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 who defeated/lost to the NPC Trainer (e.g., "/pokeheal @pl"). 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, an example being /kill. |
Revision as of 14:37, 10 September 2015
Trainer Commands is a Pixelmon sidemod that allows NPC Trainers to run commands once defeated or victorious.
Contents
Installation
Trainer Commands functions for Pixelmon 3.3.2 and upwards. On servers, the mod is server-side and does not need to be installed by each individual player to be used.
In order for Trainer Commands to be used on servers, command blocks must be enabled by setting "enable-command-block" to true in the server.properties file; failing to do so will prevent commands from being executed by NPC Trainers.
Minecraft launcher
- Download Trainer Commands here.
- Place the downloaded jar file in the mods folder.
Pixelmon launcher
- Edit your profile and choose the "Add Official Side-Mod" option.
- Select Trainer Commands from the list.
Overview
Trainer Commands allows players to specify a command or list of commands to be executed when an NPC Trainer loses a battle or wins a battle (using separate command lists for each). Both Pixelmon and Minecraft commands can be executed by NPC Trainers. 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 who defeated/lost to the NPC Trainer (e.g., "/pokeheal @pl"). 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, an example being /kill.
The lists of commands will be executed in the order that they are added to the NPC Trainer. They will be executed once the battle concludes, after the NPC Trainer says his/her win/loss message.
Commands
- /tedit add win/loss command: The specified command will be added to a list of commands that will be executed once the NPC Trainer wins/loses. After using the command, right-clicking an NPC Trainer will add the command to the Trainer.
- /tedit remove win/loss command: The first occurrence of the specified command will be removed from the win/loss command list of the next NPC Trainer that is right-clicked. If the command is not in the respective list, nothing will happen upon right-clicking.
- /tedit list: After using this command, right-clicking an NPC Trainer will display the lists of commands to be executed upon winning or losing a battle.
Permission nodes
- /tedit: com.trainercommands.commands.TEdit