Skip to content

Resist Spell

MomoPewpew edited this page Jul 28, 2023 · 9 revisions

Source Code

spell-class: ".buff.ResistSpell"

Targeting:

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

Description:

A buff spell that reduces the amount of damage taken from specified sources.

Buff spell Uses increment whenever the entity resists a spell.

Configuration:

Option Description Default Value
multiplier How much to reduce the damage taken. Accepts decimal values; use a number below 1 to make it reduce damage. 0.5, for example, will reduce incoming damage by 50%. 0.5
power-affects-multiplier Self-explanatory. true
spell-damage-types A list of the types of damage to reduce, specifically from spells. null
normal-damage-types A general list of damage types to reduce globally. List of damage types here. null

Example:

Pavise:
    spell-class: ".buff.ResistSpell"
    duration: 6
    toggle: false
    str-cast-self: "**Pavise**"
    str-fade: "&7**Pavise Over**"
    normal-damage-types:
        - ENTITY_ATTACK
    multiplier: 0.5
Clone this wiki locally