> For the complete documentation index, see [llms.txt](https://edseries-plugins.gitbook.io/p/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://edseries-plugins.gitbook.io/p/pinnaprison/tools-and-items/bombs.md).

# Bombs

Bombs are throwable items that fly in the direction the player looks and explode a **sphere** of mine blocks on impact (or when their fuse runs out). Configured in `bombs.yml`.

```yaml
enabled: true
not-in-mine-message: '&cYou can only throw bombs inside a mine!'

bombs:
  common:
    name: 'Common Grenade'
    explosion-radius: 3
    fuse-ticks: 60
    throw-speed: 1.4
    tnt-block: TNT
    affect-block-currencies: false
    affect-autosell: true
    affect-tokengreed: false
    explosion-sound: true
    explode-message: '&c&lBOOM! &7Your grenade mined &c{blocks} &7blocks!'
    commands-on-throw: []
    commands-on-explode:
      - 'give-eco tokens {blocks}'
    item:
      material: TNT
      name: '&a&lCommon Grenade'
      glow: true
      lore:
        - '&7Throw this grenade into your mine to blow up a sphere of blocks.'
        - '&a[ʀɪɢʜᴛ ᴄʟɪᴄᴋ ᴛᴏ ᴛʜʀᴏᴡ]'
```

## Global

| Key                   | Description                                              |
| --------------------- | -------------------------------------------------------- |
| `enabled`             | Master toggle for the bomb system.                       |
| `not-in-mine-message` | Sent when a player tries to throw a bomb outside a mine. |

## Per-bomb (`bombs.<id>`)

| Key                       | Description                                                                                                 |
| ------------------------- | ----------------------------------------------------------------------------------------------------------- |
| `name`                    | Display name (used in messages).                                                                            |
| `explosion-radius`        | Sphere radius (blocks) destroyed on detonation.                                                             |
| `fuse-ticks`              | Max flight before it explodes mid-air (20 ticks = 1s). It also explodes on contact with a solid mine block. |
| `throw-speed`             | Initial speed in the look direction (blocks/tick).                                                          |
| `tnt-block`               | The block shown inside the thrown primed-TNT entity.                                                        |
| `affect-block-currencies` | Broken blocks pay block currencies (rankup/pickaxe XP).                                                     |
| `affect-autosell`         | Broken blocks go to the backpack / autosell.                                                                |
| `affect-tokengreed`       | Broken blocks also pay the Token Greed enchant.                                                             |
| `explosion-sound`         | Whether to play the explosion sound.                                                                        |
| `explode-message`         | Chat message on explosion. `{blocks}` = blocks mined.                                                       |
| `commands-on-throw`       | [Action lines](/p/pinnaprison/customization/item-format.md#actions) run when thrown (`{player}`).           |
| `commands-on-explode`     | Action lines run on explosion (`{player}`, `{blocks}`).                                                     |
| `item`                    | The bomb item (`material`, `name`, `glow`, `lore`).                                                         |

{% hint style="info" %}
The example `commands-on-explode` uses `give-eco tokens {blocks}` to pay **1 token per block** the explosion mined.
{% endhint %}

## Usage

* **Right-click** a bomb item inside your mine → throws it.
* Admins: **`/bomb give <player> <bomb-id> [amount]`** (alias `/bombs`).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://edseries-plugins.gitbook.io/p/pinnaprison/tools-and-items/bombs.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
