WarpSpell - MomoPewpew/MagicSpells GitHub Wiki

Source Code

spell-class: ".instant.WarpSpell"

Description:

Instant spell. Warps the caster to a CMI warp location. This spell is capable of remembering the casters offset to a nearby warp and applying them to the warp location. This means that you can use it to transport between identical copies of the same structure, and have the caster end up on the exact same spot on the target structure as where they started.

Configuration Options:

Option Description Default Value
warp-name The name of the CMI warp that will be used as the target location. null
remember-offset Whether your distance to whichever warp is nearest to you will be remembered after the warp. true
warp-name-contains If remember-offset is used, the name of the reference warp must contain the string in this config. null

Example:

airship-warp-1-warp:
    spell-class: ".instant.ext.WarpSpell"
    warp-name-contains: "-airship"
    warp-name: 1-airship