Skip to content

ExplodeSpell

MomoPewpew edited this page Jul 28, 2023 · 8 revisions

Source Code

spell-class: ".targeted.ExplodeSpell"

Description:

Targeted Spell. Creates an explosion at the targeted location.

Configuration Options:

Option Description Default Value
explosion-size Size of the explosion. 4
backfire-chance Backfire chance. 0
damage-multiplier Damage multiplier. 0
add-fire Whether fire should be added into the explosion. false
simulate-tnt Whether the explosion should simulate tnt. true
ignore-cancelled Whether a cancelled explosion should be ignored. false
prevent-block-damage Whether the explosion should prevent blocks from taking damage. false
prevent-player-damage Whether the explosion should prevent players from taking damage. false
prevent-animal-damage Whether the explosion should prevent animals from taking damage. false

Spell Default:

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