Edit

PlayerDimensionChangeSource Enumeration

Caution

This enum is still in pre-release. Its signature may change or it may be removed in future releases.

Describes what caused a player to change dimensions. Sent as part of @minecraft/server.PlayerDimensionChangeAfterEvent.

Constants

PlayerRespawn

PlayerRespawn = "PlayerRespawn"

The player respawned in another dimension after dying.

Portal

Portal = "Portal"

The player changed dimensions through a portal.

TeleportCommand

TeleportCommand = "TeleportCommand"

The player was teleported to another dimension by a command, such as /tp or /execute, or by a script teleport.

Unknown

Unknown = "Unknown"

The cause of the dimension change is not known.