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

    Class BlockComponentNamedTickEventBeta

    Contains information regarding a named tick event for a specific block.

    export class BlockComponentNamedTickEvent extends BlockEvent {
    private constructor();
    isName(eventName: string): boolean;
    }

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    block: Block

    Block currently in the world at the location of this event.

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

    dimension: Dimension

    Dimension that contains the block that is the subject of this event.

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

    Methods

    • Parameters

      • eventName: string

        The name to check against this event.

      Returns boolean

      Returns true if the event name matches the specified name; otherwise, false.

      Checks whether this named tick event has the specified name. Events are namespaced with their content UUID. Two named tick events with the same name but scheduled from different packs will not respond the same to this method.

      This function can't be called in early-execution mode.