Skip to content

Invulnerability Spell

MomoPewpew edited this page Jul 28, 2023 · 12 revisions

Source Code

spell-class: ".buff.InvulnerabilitySpell"

Targeting:

This spell can be cast by/on all living entities.

Description:

A buff spell that makes the entity invincible against the specified damage types.

Buff spell Uses increment whenever the entity receives damage.

Configuration:

Option Description
damage-causes A list of damage causes to make the caster invulnerable. If left blank, all damage causes will be blocked.
spell-damage-causes A list of custom spell damage types caused by damage spells to make the caster invulnerable. (Add * to block all spell damage)

Example:

EnvironmentInvuln:
    spell-class: ".buff.InvulnerabilitySpell"
    description: Makes you invulnerable to environmental damage.
    toggle: false
    damage-causes:
        - block explosion
        - contact
        - drowning
        - fall
        - fire
        - lava
        - lightning
        - suffocation
    duration: 60
    cooldown: 300
    cost: 
        - mana 30
    use-cost: 
        - mana 15
    use-cost-interval: 5
    str-cost: 30 mana, plus 15 mana when taking damage

TotalInvuln:
    spell-class: ".buff.InvulnerabilitySpell"
    description: Makes you invulnerable to everything.
    toggle: false
    duration: 5
    cooldown: 20
    cost: 
        - mana 80
    str-cost: 80 mana
Clone this wiki locally