# How to Configure TNT Duping and Exploits on Paper Minecraft Servers (/docs/minecraft/configure-tnt-exploits)



Paper patches several vanilla Minecraft exploits by default, including TNT duplication and sand duplication. If you rely on these mechanics (common in technical Minecraft), you can re-enable them.

Configuring Exploits [#configuring-exploits]

<div className="fd-steps">
  <div className="fd-step">
    Stop your server [#1-stop-your-server]

    Access the [XGamingServer panel](https://panel.xgamingserver.com) and stop your server.
  </div>

  <div className="fd-step">
    Open the Paper config [#2-open-the-paper-config]

    Go to `Files` and open `config/paper-global.yml` (Paper 1.19+) or `paper.yml` (older versions).
  </div>

  <div className="fd-step">
    Find the unsupported settings section [#3-find-the-unsupported-settings-section]

    Look for the `unsupported-settings` section:

    ```yaml
    unsupported-settings:
      allow-piston-duplication: false
      allow-headless-pistons: false
      allow-permanent-block-break-exploits: false
      allow-permanent-block-break-exploits-readme: ...
    ```
  </div>

  <div className="fd-step">
    Enable desired exploits [#4-enable-desired-exploits]

    Set the values to `true` for the exploits you want to allow:

    ```yaml
    unsupported-settings:
      allow-piston-duplication: true
      allow-headless-pistons: true
    ```
  </div>

  <div className="fd-step">
    Start your server [#5-start-your-server]

    Start the server for changes to take effect.
  </div>
</div>

Exploit Settings Reference [#exploit-settings-reference]

| Setting                                | Default | What It Controls                                   |
| -------------------------------------- | ------- | -------------------------------------------------- |
| `allow-piston-duplication`             | `false` | TNT duping, carpet duping, rail duping via pistons |
| `allow-headless-pistons`               | `false` | Headless piston exploits for block breaking        |
| `allow-permanent-block-break-exploits` | `false` | Breaking bedrock and other "permanent" blocks      |

> 📝 **Note:** These settings are marked "unsupported" because they re-enable bugs. They work fine but aren't officially maintained by Paper.

> ⚠️ **Warning:** Enabling piston duplication can be abused on public servers. Only enable on trusted/whitelisted servers or technical Minecraft communities.

> 💡 **Tip:** If you're running a technical Minecraft server and need full vanilla parity, consider using Fabric instead of Paper.

See also: [Performance Guide](/docs/minecraft/optimize-server) | [Server Types Explained](/docs/minecraft/server-types-explained)

If you need help, join our [Discord](https://discord.xgamingserver.com/).
