Skip to content

Lightning Spell

MomoPewpew edited this page Jul 28, 2023 · 7 revisions

Source Code

spell-class: ".targeted.LightningSpell"

Description:

A targeted spell that casts a lightning strike on the targeted block or player.

Configuration:

Option Description Default Value
additional-damage The amount of damage to deal on the secondary hit that comes with vanilla lightning strikes. 0
zap-pigs Whether the bolt should be able to turn pigs into zombie pigmen. true
no-damage Whether the initial strike should deal damage or not. false
check-plugins Whether the spell should check damage related plugins. true
charge-creepers Whether the bolt should be able to charge creepers. true
require-entity-target Whether to require a target to strike the lightning bolt on, or to target the ground. false

Example:

lightning:
    spell-class: ".targeted.LightningSpell"
    name: lightning
    description: Call down lightning.
    cast-item: blaze_rod
    cooldown: 15
    range: 20
    additional-damage: 0
    no-damage: false
    require-entity-target: false
    check-plugins: true
    cost:
        - mana 15
    str-cost: 15 mana
    str-cast-self: You call down lightning.
    str-cast-others: "%a calls down lightning."
    str-no-target: No target found.
Clone this wiki locally