Purge Spell - TheComputerGeek2/MagicSpells GitHub Wiki

Source Code

spell-class: ".instant.PurgeSpell"

targeting cast argument values:

Value Supported
entity false
location true
entity_from_location false

Description:

An instant spell that kills all monsters and animals around you.

Configuration:

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

Option Description Type Default Supports expressions
radius Radius of the spell. Double 15 true
power-affects-radius Since 4.0 Beta 13. Boolean true true
entities You can optionally restrict the spell to a list of entity types. String List false

Example:

purge:
    spell-class: ".instant.PurgeSpell"
    cast-item: bone
    cooldown: 60
    radius: 8
    can-target: monsters,animals
    cost:
        - mana 50
    str-cost: 50 mana
    str-cast-self: You purge all life around you.
    str-cast-others: "%a purges all nearby life."