LevitateSpell - TheComputerGeek2/MagicSpells GitHub Wiki
Source Code
spell-class: ".targeted.LevitateSpell"
Value |
Supported |
entity |
true |
location |
false |
entity_from_location |
false |
casterprojectile
- Plays the effect from the caster towards the target's location.
Description:
A targeted spell that levitates the targeted entity, following your mouse movements. Can be set to pull the target in as well.
Configuration:
- This spell supports Spell Filter options.
- Since 4.0 Beta 13 these options support dynamic values through numeric or string expressions.
Option |
Description |
Type |
Default |
Supports expressions |
tick-rate |
How often to pull the target towards the player's mouse. Lower numbers can cause lag, but are more accurate and steady, while higher numbers can cause the target to be thrown around somewhat. |
Integer |
5 |
true |
duration |
Time in ticks that the spell will last. |
Integer |
10 |
true |
y-offset |
Modifies the y-offset of the location. |
Double |
0 |
true |
min-distance |
The minimum distance the target can be. Mostly used to counterbalance distance-change. |
Double |
1 |
true |
max-distance |
The maximum distance the target can be. |
Double |
200 |
true |
distance-change |
How many blocks to pull the target towards the caster. |
Double |
0 |
true |
cancel-on-item-switch |
Whether to cancel the levitation if you switch items. |
Boolean |
true |
false |
cancel-on-take-damage |
Whether to cancel the levitation if you take damage. |
Boolean |
true |
false |
cancel-on-spell-cast |
Whether to cancel the levitation if you cast another spell (see below). |
Boolean |
false |
false |
Example:
Levitate:
spell-class: ".targeted.LevitateSpell"
tick-rate: 5
duration: 200
distance-change: 20
range: 25
min-distance: 5
cancel-on-item-switch: true
cancel-on-spell-cast: false
cancel-on-take-damage: true