HealSpell - TheComputerGeek2/MagicSpells GitHub Wiki

Source Code

spell-class: ".targeted.HealSpell"

targeting cast argument values:

Value Supported
entity true
location false
entity_from_location false

Description:

Targeted Spell that heals the target.

Configuration:

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

Option Description Type Default Supports expressions
heal-amount Defines the amount of health to heal. Double 10 true
power-affects-heal-amount Since 4.0 Beta 13. Boolean true true
heal-percent Defines the percentage of health to heal. Double 0 true
check-plugins Defines if the spell should emit events for other plugins to check. Boolean true true
cancel-if-full Defines if the spell should heal even if full health. Boolean true true
ignore-if-full Since 4.0 Beta 13. Defines whether the spell should ignore targets at full health. String false true
str-max-health Defines a message to be sent if the target is at max health. Rich Text "%t is already at max health." true

Example:

heal: 
    spell-class: ".targeted.HealSpell"
    name: heal
    range: 12
    cooldown: 9
    cast-item: stick
    can-target: players,wolf,cat
    heal-amount: 5
    cancel-if-full: true
    str-cast-self: "You have healed %t."
    str-cast-target: "%a has healed you."
    str-no-target: "No target to heal."
    str-max-health: "%t is already at max health."