Teleport (Effect) — Skript

Addon: Skript · Category: Effect · Since: 1.0, 2.10 (flags)

Syntax

[force] teleport %entities% (to|%direction%) %location% [[while] retaining %-teleportflags%]

Description

Teleport an entity to a specific location. This effect is delayed by default, as it waits for the chunk of the location to be loaded before teleporting. The keyword 'force' may be used to bypass this behavior (preventing the delay), but note that it may cause lag spikes or other server performance issues when teleporting to unloaded chunks. Teleport flags are properties to retain during a teleport, such as direction, passengers, and velocities.

Examples

teleport the player to {home::%uuid of player%}
teleport the attacker to the victim
on dismount:
	cancel event
	teleport the player to {server::spawn} retaining vehicle and passengers

View source