forked from nisovin/MagicSpells
- Notifications
You must be signed in to change notification settings - Fork 72
ExplodeSpell
JasperLorelai edited this page Jul 16, 2026
·
10 revisions
spell-class: ".targeted.ExplodeSpell"| Value | Supported |
|---|---|
entity | false |
location | true |
entity_from_location | false |
This spell creates an explosion at the targeted block.
Since 4.0 Beta 13 these options support dynamic values through numeric or string expressions.
| Option | Description | Type | Default |
|---|---|---|---|
explosion-size | Size of the explosion. | Float | 4 |
power-affects-explosion-size | Since 4.0 Beta 13. | Boolean | true |
backfire-chance | Backfire chance. | Integer | 0 |
damage-multiplier | Damage multiplier. | Float | 0 |
power-affects-damage-multiplier | Since 4.0 Beta 13. | Boolean | true |
add-fire | Whether fire should be added into the explosion. | Boolean | false |
simulate-tnt | Whether the explosion should simulate tnt. | Boolean | true |
ignore-cancelled | Whether a cancelled explosion should be ignored. | Boolean | false |
prevent-block-damage | Whether the explosion should prevent blocks from taking damage. | Boolean | false |
prevent-player-damage | Whether the explosion should prevent players from taking damage. | Boolean | false |
prevent-animal-damage | Whether the explosion should prevent animals from taking damage. | Boolean | false |
explode:
spell-class: ".targeted.ExplodeSpell"name: explodespell-icon: tntdescription: Create an explosion.cast-item: blaze_rodcooldown: 30range: 25explosion-size: 4backfire-chance: 3prevent-block-damage: falseprevent-player-damage: falsedamage-multiplier: 10add-fire: falsesimulate-tnt: trueignore-cancelled: falsecost:
- mana 40
- gunpowder 1str-cost: 40 mana and 1 gunpowderstr-no-target: You cannot create an explosion there.str-cast-self: Boom!str-cast-others: Boom!