forked from nisovin/MagicSpells
-
Notifications
You must be signed in to change notification settings - Fork 68
Buff Spell
JasperLorelai edited this page Nov 1, 2020
·
19 revisions
Option | Description | Variable Type | Default Value |
---|---|---|---|
can-cast-with-item |
Defines if this spell is castable with items. | Boolean | true |
can-cast-by-command |
Defines if this spell is castable with the /cast (spell) command. |
Boolean | true |
targeted |
Defines if this spell should become a targeted spell (it will accept Targeted Spell Configuration options). For versions below MS 4.0 this option will not be able to target entities other than players. | Boolean | false |
toggle |
Defines whether the spell can be deactivated while it's still active. It will only apply cooldown when its duration fades. | Boolean | true |
use-cost |
A string list of reagent costs required for the buff to be active. The cost will be charged on the interval defined with the option below. The list of cost reagents includes: health , mana , hunger , experience , levels , durability , money (if Vault plugin is present), and Item Type. All items on this list require quantity separated from the reagent by a space character except Item Type which will assume the quantity of 1 if not specified. |
String List | null |
use-cost-interval |
Interval defined in ticks for the use-cost option. |
Integer | 0 |
num-uses |
Number of uses before the buff spell expires. | Integer | 0 |
duration |
Buff spell duration specified in seconds before the buff expires. Set to 0 do define an infinite duration. | Float | 0 |
power-affects-duration |
Defines whether Spell Power can affect the duration of the spell. | Boolean | true |
cancel-on-give-damage |
Defines whether the buff spell will cancel if the caster deals damage to another entity. | Boolean | false |
cancel-on-take-damage |
Defines whether the buff spell will cancel if the caster receives damage. | Boolean | false |
cancel-on-death |
Defines whether the buff spell will cancel if the caster dies. | Boolean | false |
cancel-on-teleport |
Defines whether the buff spell will cancel if the server emits a teleport event for the caster. | Boolean | false |
cancel-on-change-world |
Defines whether the buff spell will cancel if the caster switches worlds. | Boolean | false |
cancel-on-spell-cast |
Defines whether the buff spell will cancel if the caster casts a spell. | Boolean | false |
cancel-on-logout |
Defines whether the buff spell will cancel if the caster leaves the game. | Boolean | false |
spell-on-use-increment |
Spell that will be casted whenever the buff spell has been used. This spell will be casted once even if num-uses is set to 0. |
String | null |
spell-on-cost |
Spell that will be casted whenever the buff spell tries to charge cost. | String | null |