Script API - v26.70.26
    Preparing search index...

    Enumeration PlayerDimensionChangeSourceBeta

    Describes what caused a player to change dimensions. Sent as part of PlayerDimensionChangeAfterEvent.

    Index
    PlayerRespawn: "PlayerRespawn"

    The player respawned in another dimension after dying.

    Portal: "Portal"

    The player changed dimensions through a portal.

    TeleportCommand: "TeleportCommand"

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

    Unknown: "Unknown"

    The cause of the dimension change is not known.