Play Strawberry Docs
Referencia

Esta página se muestra en inglés.

teleport

Moving a player with a cause, as Paper's teleport causes.

Declarations from the script contract strawberry:plugin, version 0.2.0, without source comments.

WIT declarations

text
use common.{position};
use event.{teleport-cause};
use player.{player, world-change-error};
use %world.{%world};
teleport-player: func(player: borrow<player>, %world: borrow<%world>, position: position, yaw: option<f32>, pitch: option<f32>, cause: teleport-cause) -> result<_, world-change-error>;

En esta página