# 🌋 Floor is Lava

## Information

<figure><img src="https://cdn.phoenixplugins.com/zswjhhoo2mtl4mg2vwm9dw0wc006" alt="" width="188"><figcaption><p>Floor is Lava - Add-On </p></figcaption></figure>

### Installation <a href="#installation" id="installation"></a>

To install this add-on, simply drag and drop the jar file into the PhoenixDuels/addons folder, or include the add-on while using the bundle download option to download the plugin.

This add-on adds Floor is Lava as a [gamemode rule](../../main-features/create-a-mode/README.md#mode-rules) to the plugin.

### Create a Gamemode

Create a gamemode, for the lava is lava gamemode.

### Select Rule

Select the Generated rule `Floor is Lava` alongside your other rules.

### Create a Map

This map doesn't require a specific build, you can use any of your liking.

### Regeneration

Make sure that the Regeneration is enabled for your map, otherwise the lava will not clear between matches.

> **Info:**
This add-on supports [Folia](../../first-installation.md#version-support), which is still experimental.

## How it works

Every few seconds, the lava rises by one layer from the bottom of the battle region up. You can configure:

* **Lava Rise Interval** - how many seconds between each rise.
* **Replace Air Only** - when enabled, the rising lava only fills air blocks and leaves solid terrain untouched. When disabled, it consumes everything as it rises.
* **Rise Title** - an optional title/subtitle warning shown to all players right before each rise.
* **Action Bar** - an optional action bar reminder.

## Placeholders

The Floor is Lava add-on adds the following placeholders that you can use on the Scoreboard:

1. `%floorislava_countdown%` - Returns the number of seconds until the next rise.
2. `%floorislava_team1_remaining%` through `%floorislava_team4_remaining%` - Returns the number of players still alive on that team slot.

## PlaceholderAPI Placeholders

The following is the list of the available placeholders that Floor is Lava has.

| Placeholders                              | Description                                |
| ------------------------------------------- | --------------------------------------------- |
| %phoenixduels_floorislava_countdown%       | Returns the seconds until the next lava rise. |
| %phoenixduels_floorislava_team1_remaining% | Returns the players remaining on team 1.     |
| %phoenixduels_floorislava_team2_remaining% | Returns the players remaining on team 2.     |
| %phoenixduels_floorislava_team3_remaining% | Returns the players remaining on team 3.     |
| %phoenixduels_floorislava_team4_remaining% | Returns the players remaining on team 4.     |

Source: https://www.phoenixplugins.com/docs/phoenix-duels/add-ons/gamemodes/floor-is-lava