Skip to content

Teleport Spell

MomoPewpew edited this page Jul 28, 2023 · 6 revisions

Source Code

spell-class: ".targeted.TeleportSpell"

Description:

A targeted spell that teleports the caster to the location they're looking at.

Configuration:

Option Description Default Value
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. 0,0.1,0
pitch The pitch to set the caster to when teleporting. Does nothing if set to 0. 0
yaw The yaw to set the caster to when teleporting. Does nothing if set to 0. 0
str-cant-teleport String message sent if the targeted block cannot be teleported to for some reason. ""

Example:

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