Skip to content

Teleport

Information
Type Entity Function
Namespace moxlib:api/helpers/player/teleport
Versions 1.17+

Overview

Teleports the executing player to the given coordinates, within the same dimension.

Example

data modify storage moxlib:api/helpers/player/teleport target set value [0,64,0]
execute as Steve run function moxlib:api/helpers/player/teleport
Steve teleports to 0 64 0.

API

Expects

Array of co-ordinates for the destination.