Teleport Spell - TheComputerGeek2/MagicSpells GitHub Wiki

Source Code

spell-class: ".targeted.TeleportSpell"

targeting cast argument values:

Value Supported
entity true
location false
entity_from_location false

Description:

A targeted spell that teleports the caster to the entity target.

Configuration:

Since 4.0 Beta 13 these options support dynamic values through numeric or string expressions.

Option Description Type Default
relative-offset This offset will move the player relative to the location they're targeting with the teleport spell. By default, it moves the player up a tenth of a block to prevent falling through blocks. Vector "0,0.1,0"
pitch The pitch to set the caster to when teleporting. Does nothing if set to 0. Float 0
yaw The yaw to set the caster to when teleporting. Does nothing if set to 0. Float 0
str-cant-teleport String message sent if the targeted block cannot be teleported to for some reason. Rich Text

Example:

Teleport:
    spell-class: ".targeted.TeleportSpell"
    range: 30
    cost:
        - mana 50
    str-cant-teleport: "You can't teleport there!"