Options for Player.teleport.
Interface in @minecraft/server
Options for Player.teleport. Basalt keeps the rotation and ignores the rest.
import type { TeleportOptions } from '@minecraft/server';Properties
Section titled “Properties”checkForBlocks
Section titled “checkForBlocks”optional
checkForBlocks?: boolean;dimension
Section titled “dimension”optional
dimension?: Dimension;Accepted; Basalt has only the overworld.
Types
facingLocation
Section titled “facingLocation”optional
facingLocation?: Vector3;Types
keepVelocity
Section titled “keepVelocity”optional
keepVelocity?: boolean;rotation
Section titled “rotation”optional
rotation?: Vector2;x is the pitch, y the yaw.
Types