FlightPathSpell - TheComputerGeek2/MagicSpells GitHub Wiki
spell-class: ".instant.FlightPathSpell"
Spell Effect Positions:
delayed
- Plays the effect at the caster's location when they land.special
- Plays the effect at the caster's location oninterval
.
Description:
A spell that makes the player mount an entity and travels to the specified location.
Configuration:
Since 4.0 Beta 13 some of these options support dynamic values through numeric or string expressions.
Option | Description | Type | Default | Supports expressions |
---|---|---|---|---|
speed |
The speed you travel at. | Float | 1.5 |
true |
x |
The x position to travel to. | Float | 0 |
true |
z |
The z position to travel to. | Float | 0 |
true |
interval |
Interval between traveling. | Integer | 5 |
false |
cruising-altitude |
The height the caster will fly to before flying toward the target position. | Integer | 150 |
true |
land-spell |
Since 4.0 Beta 14. Sub-spell to cast upon landing. | String | false |
Example:
flightpath:
spell-class: ".instant.FlightPathSpell"
cast-item: stick
cooldown: 20
x: 0
z: 0
cruising-altitude: 150
speed: 1.5