Skip to content

Switch Health Spell

JasperLorelai edited this page May 19, 2024 · 8 revisions

Source Code

spell-class: ".targeted.SwitchHealthSpell"
Value Supported
entity true
location false
entity_from_location false

Description:

A targeted spell that allows you to switch health with an enemy.

Configuration:

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

Option Description Type Default
require-greater-health-percent Defines whether to require that the caster have a higher health percentage than the target. Boolean false
require-lesser-health-percent Defines whether to require that the caster have a lower health percentage than the target. Boolean false

Example:

switchhealth:
    spell-class: ".targeted.SwitchHealthSpell"
    range: 10
    can-target: players,nonplayers
Clone this wiki locally