TargetedMultiSpell - TheComputerGeek2/MagicSpells GitHub Wiki
This spell extends its options from Instant Spell.
spell-class: ".TargetedMultiSpell"
targeting
cast argument values:
Value | Supported |
---|---|
entity |
true |
location |
true |
entity_from_location |
true |
Description:
This is a special type of MultiSpell
that only works with targeted spells. It works with any spell that can target an entity or the ground. The difference with this spell is that it maintains the initial target, even if the caster moves or looks around, unlike the normal Multi Spell.
Configuration:
Since 4.0 Beta 13 some of these options support dynamic values through numeric or string expressions.
Option | Description | Type | Default | Supports expressions |
---|---|---|---|---|
require-entity-target |
Whether this spell requires the caster to target an entity. | Boolean | false |
true |
point-blank |
Whether the spell should be centered on the player, or if it should be targeted. If this is true, the spell is centered at the casting player. If it's false, it will be centered at the targeted block. | Boolean | false |
true |
y-offset |
Modifies the height of the targeted location | Float | 0 |
true |
cast-random-spell-instead |
Casts a random spell from the list instead of casting all the spells. | Boolean | false |
true |
stop-on-fail |
If this is true, the spell will stop executing spells if one of them fails. | Boolean | true |
true |
spells |
A list of sub-spells to cast, in order. You can delay spells individually using sub-spell cast modes, or alternatively you can also list DELAY <delayInTicks> to delay all subsequent spells by the specified delay. |
String List | false |
Example:
smite:
spell-class: ".TargetedMultiSpell"
cooldown: 10
cost:
- mana 5
str-cost: 5 mana
stop-on-fail: false
require-entity-target: false
spells:
- lightning
- DELAY 10
- lightning
- DELAY 10
- lightning