Skip to content
JasperLorelai edited this page May 19, 2024 · 10 revisions

Source Code

spell-class: ".instant.FlightPathSpell"
  • delayed - Plays the effect at the caster's location when they land.
  • special - Plays the effect at the caster's location on interval.

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 
Clone this wiki locally