-
Notifications
You must be signed in to change notification settings - Fork 57
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.
| 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) |
| 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.
/bombs give <player> <type> <amount> Give a bomb to a player
/bombs list List all configured bomb types
Aliases: /bombs → /bomb
| Permission | Description |
|---|---|
xprison.bombs.admin |
All bomb commands |
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: 0Throw 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
- Currencies
- Ranks
- Prestiges
- Rebirths
- Mines
- AutoSell
- AutoMiner
- Enchants
- Pickaxe Levels
- Pickaxe Skins
- Pickaxe Quality
- Pickaxe Settings
- Gangs
- Multipliers
- Blocks
- Bombs
- History
- Mining Stats
- Nicknames
- Battle Pass
- Quests
- Daily Rewards
- config.yml
- autominer.yml
- autosell.yml
- block-rewards.yml
- enchants.yml
- currencies.yml
- multipliers.yml
- ranks.yml
- prestiges.yml
- pickaxe-levels.yml
- pickaxe-skins.yml
- pickaxe-quality.yml
- gangs.yml
- mines.yml
- bombs.yml
- blocks.yml
- history.yml
- logging.yml
- mining-stats.yml
- rebirths.yml
- battlepass.yml
- quests.yml
- dailyrewards.yml
- efficiency.json
- fortune.json
- unbreaking.json
- haste.json
- speed.json
- fly.json
- nightvision.json
- jumpboost.json
- autosell.json
- tokenfinder.json
- gemfinder.json
- salary.json
- charity.json
- blessing.json
- gangvaluefinder.json
- prestigefinder.json
