Battle Rules

Command name Permission Command result
/perules pixelmonessentials.perules Opens the Battle Rules menu.

This section is for managing custom battle rules that you can set up to use for NPCs like in the base mod. The bright side with our system is that custom rules that you set up will be saved as presets, which means that you won't need to set the rules again every time you want to set up a trainer with those rules.

There are 2 ways to open the custom rules menu. The first way is by using the /perules command, which is used to manage the rules, but you can also open it when setting the data for a NPC trainer, and create a new preset when doing so. The only difference is that you'll have 2 more buttons, to cancel selecting rules, and to finalize selecting rules. Once opening the rules screen, you will find be greeted with this GUI:


For this part o the guide, I'll be using the rules GUI from the command, and not from the Trainer menu. From this screen, you can either add a new ruleset by clicking add, or edit/remove, along with seeing an already existing ruleset's details by clicking its name.

Everything is shown from whether team preview is shown or not, the time for team preview/picking your moves per turn, whether it's a single/double/triple battle, the level cap, or how many Pokémon are brought, along with the clauses list. If the timer is set to 0 seconds, it means that the feature is disabled. If you click add/edit rules, you will be taken to this screen, where you will be asked to enter the rules' (new) name. You can't have an already existing name as a rules name.

Once a ruleset name was decided, you'll be taken to the pixelmon battle screen, where you will be able to select all of the battle rules that you want to save for the preset. You just click propose to save everything.

Every rules preset will be saved in the rulesets folder in the Pixelmon Essentials folder, in their respective .cfg file. While you can import rulesets with files, do not do it while the server is running, as when the server is closed, all of your files will be deleted for the ones on the server.