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

    Class PortalActivateAfterEventBeta

    Contains information about a successfully activated Nether portal, including its dimension, ignition location, and initiating player (when known).

    export class PortalActivateAfterEvent {
    private constructor();
    readonly dimension: Dimension;
    readonly location: Vector3;
    readonly player?: Player;
    }
    Index
    dimension: Dimension

    The dimension in which the portal was activated, not its destination dimension.

    This property can't be read in early-execution mode.

    location: Vector3

    The coordinates of the ignition position used to activate the portal. This is not necessarily the center or corner of the portal.

    This property can't be read in early-execution mode.

    player?: Player

    The player who directly activated the portal using an item, if known. Undefined for fire-based activation without a known initiating player, including dispenser-fired fire charges. Nearby players are not used for attribution.

    This property can't be read in early-execution mode.