Skip to content
Jan Kluka edited this page Jul 23, 2026 · 2 revisions

Bombs

The Bombs module adds throwable explosive items that clear large areas of a mine in a single use. Bombs come in configurable size tiers (Tiny to Mega) and are given to players via admin commands or crate/vote rewards.


Overview

Feature Details
Storage Config (no DB)
Throw trigger Right-click (configurable)
Explosion delay Configurable per type (default: 3 s)
On explode Sells if player's AutoSell is on, else blocks go to inventory (never lost)
Custom model data Yes — resource-pack compatible
Throw cooldown Configurable (default: 3 s)

Default Bomb Types

Type Explosion Radius Material
Tiny 3 TNT
Small 5 TNT
Normal 7 TNT
Large 10 TNT
Mega 15 NETHER_STAR

All values are configurable in bombs.yml.


Commands

/bombs give <player> <type> <amount>    Give a bomb to a player
/bombs list                             List all configured bomb types

Aliases: /bombs/bomb


Permissions

Permission Description
xprison.bombs.admin All bomb commands

Configuration Tips

Adding bomb types — each entry in bombs.yml defines a bomb type with:

bombs:
  tiny:
    radius: 3
    material: TNT
    display-name: "<red>Tiny Bomb"
    lore:
      - "<gray>Radius: <white>3"
    drop-sound: ENTITY_TNT_PRIMED
    explosion-sound: ENTITY_GENERIC_EXPLODE
    explosion-delay: 3
    custom-model-data: 0

Throw cooldown — set throw-cooldown (seconds) to prevent players from spamming bombs. The cooldown is shared across all bomb types.

AutoSell on explode — blocks cleared by a bomb are never destroyed for nothing. If the player has AutoSell on, they are sold at the current AutoSell prices (the items_sold message). If AutoSell is off, or a block has no configured sell price, the blocks are placed into the player's inventory instead (the items_collected message), exactly like the area enchants. This works on both normal and packet/virtual mines.

Granting bombs via rewards — use the /bombs give command in crate or vote reward configs:

bombs give %player% mega 1

Related Pages

XPrison Logo

General

Modules

Default Configs

Enchant Configs — Passive

Enchant Configs — Currency Rewards

Enchant Configs — Key & Item Rewards

Enchant Configs — Area of Effect

Enchant Configs — Multipliers

Enchant Configs — Templates

Enchant Configs — Addons

Addons

Support

For Developers

Others

Clone this wiki locally