InvulnerabilitySpell - TheComputerGeek2/MagicSpells GitHub Wiki
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 Uses:
Buff spell Uses increment whenever the entity receives damage.
Configuration:
Option | Description | Type |
---|---|---|
damage-causes |
A list of damage causes to make the caster invulnerable. If left blank, all damage causes will be blocked. You may use spaces or dashes (- ) instead of underscores (_ ). |
String List |
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. |
String List |
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