ResistSpell - TheComputerGeek2/MagicSpells GitHub Wiki

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 Uses:

Buff spell Uses increment whenever the entity resists a spell.

Configuration:

Since 4.0 Beta 13 some of these options support dynamic values through numeric or string expressions.

Option Description Type Default Supports expressions
multiplier Defines 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%. Float 0.5 true
power-affects-multiplier Boolean true true
constant-multiplier Since 4.0 Beta 13. Defines expression evaluation behaviour. Boolean true true
flat-modifier Since 4.0 Beta 14. Applies a flat modifier to damage. Double 0 true
power-affects-flat-modifier Since 4.0 Beta 14. Boolean true true
constant-flat-modifier Since 4.0 Beta 14. Defines expression evaluation behaviour. Boolean true true
spell-damage-types A filter list of damage tags. Since 4.0 Beta 16 you can list * to filter all damage types. String List false
normal-damage-types A filter list of damage causes.

Since 4.0 Beta 16 you can list * to filter all damage types.

Since 4.0 Beta 17 this option has been deprecated in favour of damage-types.
DamageCause List false
damage-types Since 4.0 Beta 17. true for all types, otherwise a list of Damage Types or Damage Type Tags (prepend with #) false false

Example:

Pavise:
    spell-class: ".buff.ResistSpell"
    duration: 6
    toggle: false
    str-cast-self: "**Pavise**"
    str-fade: "&7**Pavise Over**"
    damage-types: [player_attack, mob_attack]
    multiplier: 0.5
⚠️ **GitHub.com Fallback** ⚠️