Teleport (Section) — Skript

Addon: Skript · Category: Section

Syntax

teleport %entities% to %point% [instance:in [(world|instance)] %instance%] [:sync]

Description

Teleports one or more entities to a location. Optionally specify an instance to move entities into a different world. Use 'sync' to wait for each teleport to finish before continuing. An optional subsection runs once the teleport completes.

Examples

teleport player to vector(0, 64, 0):
    broadcast "Player arrived!"
teleport {_entity} to {_loc} in instance {_instance} sync:
    set health of entity to 20

View source