Skip to content
JasperLorelai edited this page May 19, 2024 · 9 revisions

Source Code

spell-class: ".targeted.ExplodeSpell"
Value Supported
entity false
location true
entity_from_location false

Description:

Targeted Spell. Creates an explosion at the targeted location.

Configuration:

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

Example:

explode:
    spell-class: ".targeted.ExplodeSpell"
    name: explode
    spell-icon: tnt
    description: Create an explosion.
    cast-item: blaze_rod
    cooldown: 30
    range: 25
    explosion-size: 4
    backfire-chance: 3
    prevent-block-damage: false
    prevent-player-damage: false
    damage-multiplier: 10
    add-fire: false
    simulate-tnt: true
    ignore-cancelled: false
    cost:
        - mana 40
        - gunpowder 1
    str-cost: 40 mana and 1 gunpowder
    str-no-target: You cannot create an explosion there.
    str-cast-self: Boom!
    str-cast-others: Boom!
Clone this wiki locally