forked from nisovin/MagicSpells
-
Notifications
You must be signed in to change notification settings - Fork 69
TeleportSpell
JasperLorelai edited this page Nov 24, 2024
·
1 revision
spell-class: ".targeted.TeleportSpell"
Value | Supported |
---|---|
entity |
true |
location |
false |
entity_from_location |
false |
A targeted spell that teleports the caster to the entity target.
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 |
Teleport:
spell-class: ".targeted.TeleportSpell"
range: 30
cost:
- mana 50
str-cant-teleport: "You can't teleport there!"