Skip to content
JasperLorelai edited this page Jul 16, 2026 · 10 revisions

Source Code

spell-class: ".targeted.ExplodeSpell"
ValueSupported
entityfalse
locationtrue
entity_from_locationfalse

Description:

This spell creates an explosion at the targeted block.

Configuration:

Since 4.0 Beta 13 these options support dynamic values through numeric or string expressions.

OptionDescriptionTypeDefault
explosion-sizeSize of the explosion.Float4
power-affects-explosion-sizeSince 4.0 Beta 13.Booleantrue
backfire-chanceBackfire chance.Integer0
damage-multiplierDamage multiplier.Float0
power-affects-damage-multiplierSince 4.0 Beta 13.Booleantrue
add-fireWhether fire should be added into the explosion.Booleanfalse
simulate-tntWhether the explosion should simulate tnt.Booleantrue
ignore-cancelledWhether a cancelled explosion should be ignored.Booleanfalse
prevent-block-damageWhether the explosion should prevent blocks from taking damage.Booleanfalse
prevent-player-damageWhether the explosion should prevent players from taking damage.Booleanfalse
prevent-animal-damageWhether the explosion should prevent animals from taking damage.Booleanfalse

Example:

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!

Clone this wiki locally