forked from nisovin/MagicSpells
-
Notifications
You must be signed in to change notification settings - Fork 73
LoopSpell
DT-FromNYU edited this page Apr 17, 2022
·
20 revisions
Note: This spell is only available in MagicSpells-4.0-Beta-11+
.
Description: Targeted spell. The LoopSpell allows for the caster to repeatedly cast spells at either a target's location or their own location for some duration of time and a certain amount of iterations.
Option | Description | Type | Default Value |
---|---|---|---|
delay |
How long, in ticks, before the loop starts. | Long | 0 |
duration |
How long, in ticks, the loop will last. If less than or equal to 0, the loop will last indefinitely unless iterations is specified. |
Long | 0 |
interval |
How long, in ticks, the interval between casting the spells . |
Long | 20 |
iterations |
How many total iterations the loop will do. If less than or equal to 0, the loop will last indefinitely unless duration is specified. | Integer | 0 |
y-offset |
Vertical offset when casting at a location | Double | 0 |
targeted |
If true , depending on require-entity-target and point-blank , the loop will target an entity or location. If false , spells will be casted without an entity or location target. |
Boolean | true |
point-blank |
If true and require-entity-target , the loop will target the initial location of the caster. |
Boolean | false |
stop-on-fail |
If true , if a spell fails to cast, the loop will stop. |
Boolean | false |
pass-targeting |
If true , the spell's can-target list will be passed down to targeted entity spells in spells when casting. |
Boolean | true |
cancel-on-death |
If true , dying will cancel the loop. Will always cancel if targeting a non-player entity. |
Boolean | false |
require-entity-target |
If true , targets an entity for the loop. |
Boolean | false |
cast-random-spell-instead |
If true , loop will instead randomly cast one spell in spells each iteration. |
Boolean | false |
skip-first |
If true , skips loop-modifiers , variable-mods-loop , loop-target-modifiers , loop-location-modifiers and variable-mods-target-loop on the first iteration of the loop. |
Boolean | false |
skip-first-loop-modifiers |
If true , skip loop-modifiers on the first iteration of the loop. Uses the value of skip-first as its default. |
Boolean | skipFirst |
skip-first-variable-mods-loop |
If true , skip variable-mods-loop on the first iteration of the loop. Uses the value of skip-first as its default. |
Boolean | skipFirst |
skip-first-loop-target-modifiers |
If true , skip loop-target-modifiers on the first iteration of the loop. Uses the value of skip-first as its default. |
Boolean | skipFirst |
skip-first-loop-location-modifiers |
If true , skip loop-location-modifiers on the first iteration of the loop. Uses the value of skip-first as its default. |
Boolean | skipFirst |
skip-first-variable-mods-target-loop |
If true , skip variable-mods-target-loop on the first iteration of the loop. Uses the value of skip-first as its default. |
Boolean | skipFirst |
str-fade-self |
Message sent to the caster when the loop ends. | String | "" |
str-fade-target |
Message sent to the target when the loop ends. | String | "" |
spell-on-end |
Spell casted when the loop ends. | String | null |
spells |
List of spells casted on each iteration of the loop. | String List | null |
variable-mods-loop |
List of variable modifications performed on the caster on each iteration of the loop. Performed before loop-modifiers and loop-target-modifiers are checked. |
String List | null |
variable-mods-target-loop |
List of variable modifications performed on the target on each iteration of the loop. Performed before loop-modifiers and loop-target-modifiers are checked. |
String List | null |
loop-modifiers |
List of modifiers checked at the beginning of each iteration of the loop. Checked after variable-mods-loop and variable-mods-target-loop are performed. |
String List | null |
loop-target-modifiers |
List of target modifiers checked at the beginning of each iteration of the loop. Checked after variable-mods-loop and variable-mods-target-loop are performed. |
String List | null |
loop-location-modifiers |
List of location modifiers checked at the beginning of each iteration of the loop. Checked after variable-mods-loop and variable-mods-target-loop are performed. |
String List | null |