> For the complete documentation index, see [llms.txt](https://adriansr.gitbook.io/battleroyale/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://adriansr.gitbook.io/battleroyale/mode/food-wars-mode.md).

# Food Wars Mode

### How to install:

* Download and drop into the folder 'plugins/BattleRoyale/mode'.
* Enter the name of the downloaded file in the modality option that is to be played (file **BattleRoyaleConfig.yml**): [Click here for more info](https://github.com/Isoface/BattleRoyale/wiki/Configuring-the-File-%22BattleRoyaleConfig.yml%22#file-name).

***

### Setup

#### Pets setup

Go to your battlefield setup (**/brl setup**); you will see **two new tools** in the setup gui:

![](https://i.imgur.com/HtDE46y.png)

#### **How to set a pet**:

Click the tool to set the pet (pet **A** for team **A**, pet B for team **B**) and then select the pet region (**the two corners**).

The way you use the item to set the pet is the same as you would when selecting a region in the **WorldEdit**: Just ***click on the two corners that surround the pet*** as you can see in the image below:

![](https://i.imgur.com/WHFk2sd.gif)

**The pet will get automatically saved after setting it**. **Please note that each battlefield will have a separate pet setup**.

***

#### Placeholders

This modality adds three new placeholders:

* **%br\_fw\_pet\_health\_a%**: Placeholder that will be replaced with the **health of the pet of the team A**.
* **%br\_fw\_pet\_health\_b%**: Placeholder that will be replaced with the **health of the pet of the team B**.
* **%br\_fw\_team%**: Placeholder that will be replaced with the **display name of team of the player**.

***

### File "FoodWarsConfig.yml" Setup:

This is the configuration file of this modality. You can find it in the folder '**plugins/BattleRoyale/mode**'.

#### Section "Game":

* Option "**start-health**": The initial health players will have when the game starts.
* Option "**max-health**": The maximum health players can have in this modality.
* Option "**enable-parachute-redeploy**": Whether or not to enable the **infinite** parachute redeploy.
* Option "**won-title**": The title players will receive when winning the game.
* Option "**won-subtitle**": The subtitle players will receive when winning the game.
* Option "**lost-title**": The title players will receive when losing the game.
* Option "**lost-title**": The subtitle players will receive when losing the game.
* Section "**pets**":
  * Option "**initial-health**": The initial health pets will have when the game starts.

#### Section "Team":

* Option "**max-players-per-team**": Maximum number of players per team.
* Option "**respawn-seconds**": How long it will take for a player to respawn after dying (**in seconds**).
* Option "**display-names.a**": Team A display name.
* Option "**display-names.b**": Team B display name.
