> For the complete documentation index, see [llms.txt](https://esmp-fun.gitbook.io/plugins/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://esmp-fun.gitbook.io/plugins/better-trial-chambers/getting-started/installation.md).

# Installation

Getting BetterTrialChambers up and running is easier than finding diamonds at Y=11. Let's do this!

## Prerequisites

Before you start, make sure you have:

* **Paper 1.21.x** (or forks like Purpur, Pufferfish, Folia)
* **Java 21** or newer
* **WorldEdit** (optional but highly recommended for chamber creation)

{% hint style="info" %}
**Why Paper?** BetterTrialChambers uses Paper-specific APIs for better performance and features. Spigot and CraftBukkit won't work!
{% endhint %}

## Download

Grab the latest version from one of these sources:

* [GitHub Releases](https://github.com/ESMP-FUN/BetterTrialChambers/releases) (recommended)
* [Modrinth](https://modrinth.com/plugin/trialchamberpro)
* [SpigotMC](https://www.spigotmc.org/resources/trialchamberpro)

Look for the file named something like `BetterTrialChambers-<version>.jar`.

## Installation Steps

### 1. Stop Your Server

Yeah, yeah, you know the drill. Shut it down properly with `/stop`.

### 2. Drop the JAR

Move `BetterTrialChambers-<version>.jar` into your server's `plugins/` folder.

```
your-server/
├── plugins/
│   ├── BetterTrialChambers-<version>.jar  ← Put it here!
│   ├── WorldEdit.jar
│   └── ... other plugins
└── ...
```

### 3. Start Your Server

Fire it back up! Watch the console for this beautiful message:

```
[BetterTrialChambers] Enabling BetterTrialChambers v<version>
[BetterTrialChambers] Database connected successfully
[BetterTrialChambers] Loaded 2 loot tables
[BetterTrialChambers] BetterTrialChambers enabled successfully!
```

{% hint style="success" %}
**Seeing errors?** Check the [Troubleshooting](/plugins/better-trial-chambers/troubleshooting/troubleshooting.md) page!
{% endhint %}

### 4. Check the Config Files

The plugin creates several files in `plugins/BetterTrialChambers/`:

```
plugins/BetterTrialChambers/
├── config.yml      # Main configuration
├── loot.yml        # Loot table definitions
├── messages.yml    # Customizable messages
├── data.db         # SQLite database
└── snapshots/      # Block snapshots (created later)
```

Don't touch anything yet! We'll configure everything in the next section.

## Optional Dependencies

BetterTrialChambers works great on its own, but these plugins add extra functionality:

### WorldEdit / FAWE

**Purpose:** Makes chamber creation 10x easier **Required?** No, but seriously get it **Download:** [WorldEdit](https://dev.bukkit.org/projects/worldedit)

With WorldEdit, you can select chamber boundaries with your wand instead of typing coordinates. Life-changing stuff.

### Vault

**Purpose:** Economy integration for loot rewards **Required?** Only if you want to give coins/money as loot **Download:** [Vault](https://www.spigotmc.org/resources/vault.34315/)

Lets you give players money when they open vaults. Works with every economy plugin ever made.

### PlaceholderAPI

**Purpose:** Show stats in chat, scoreboards, etc. **Required?** Only if you want player stat placeholders **Download:** [PlaceholderAPI](https://www.spigotmc.org/resources/placeholderapi.6245/)

Display things like "Chambers Completed: 5" in your custom UIs.

### WorldGuard

**Purpose:** Enhanced region protection **Required?** No, built-in protection works fine **Download:** [WorldGuard](https://dev.bukkit.org/projects/worldguard)

If you already use WorldGuard, BetterTrialChambers can integrate with it for protection.

### Residence / Lands / GriefPrevention

**Purpose:** Stop players claiming registered Trial Chambers *(1.5.15+)* **Required?** No — only matters if you run one of these land-claim plugins **Download:** [Residence](https://www.spigotmc.org/resources/11480/) · [Lands](https://www.spigotmc.org/resources/53313/) · [GriefPrevention](https://github.com/GriefPrevention/GriefPrevention)

If any of these is installed, BetterTrialChambers blocks claim creation/expansion that overlaps a chamber and can scan for pre-existing conflicts (`/trial claims scan`). Enabled by default per plugin; see [protection config](/plugins/better-trial-chambers/configuration/config.yml.md) and the `btc.bypass.*` [permissions](/plugins/better-trial-chambers/reference/permissions.md).

### AdvancedEnchantments

**Purpose:** Stop AE enchants (e.g. Blast Mining) breaking blocks inside chambers *(1.5.18+)* **Required?** No — only matters if you run AdvancedEnchantments **Download:** [AdvancedEnchantments](https://www.spigotmc.org/resources/76519/)

AE custom enchants break blocks through their own effect path that ignores BTC's block-break cancel, so they can bypass chamber protection. Set `protection.block-advanced-enchantments: true` to make BTC cancel AE enchant activations that affect a registered chamber (with an allowlist for enchants you want to keep working). As of **1.5.21** this also stops mining a chamber wall from just outside it, tunable via `protection.advanced-enchantments-block-radius`. **Off by default.** See [protection config](/plugins/better-trial-chambers/configuration/config.yml.md#block-advanced-enchantments).

Hotkey-style **vein miners** (e.g. VeinMiner) don't need this — they fire a normal block-break per block, so BTC's standard protection already blocks the ones inside a chamber. The toggle is only for effect engines (like AE) that skip block-break events.

## Verify Installation

Run this command in-game:

```
/trial help
```

You should see a list of commands. If you do — congrats, you're installed!

{% hint style="success" %}
**Next, head to** [**Quick Start**](/plugins/better-trial-chambers/getting-started/quick-start.md)**.** Run `/trial setup` and turn on auto-discovery + snapshots, and BTC will find and manage every natural Trial Chamber on your server automatically. For most servers, that's the entire setup.
{% endhint %}

## Updating

Updating is just as easy:

1. Stop your server
2. Replace the old JAR with the new one
3. Start your server
4. Check console for "Successfully updated database to version X"

{% hint style="warning" %}
**Always backup first!** Before updating, copy your `plugins/BetterTrialChambers/` folder somewhere safe. Better safe than sorry when dealing with player data.
{% endhint %}

## What's Next?

Now that you're installed, get BTC running — for most servers it's a single command:

{% content-ref url="/pages/yFMhJvRTjU4aHUlYGatn" %}
[Quick Start](/plugins/better-trial-chambers/getting-started/quick-start.md)
{% endcontent-ref %}

***

## Quick Tips

{% hint style="info" %}
**Folia Support:** BetterTrialChambers works on Folia out of the box! Just make sure `use-folialib: true` in config.yml.
{% endhint %}

{% hint style="info" %}
**MySQL Support:** By default, the plugin uses SQLite (easy mode). For networks with multiple servers, you can switch to MySQL in config.yml.
{% endhint %}

{% hint style="warning" %}
**Java Version:** Java 21 is required. If you're on Java 17 or older, the plugin won't even load. Time to upgrade!
{% endhint %}
