Script API - v1.26.10
    Preparing search index...

    Class ItemReleaseUseAfterEvent

    Contains information related to a chargeable item when the player has finished using the item and released the build action.

    export class ItemReleaseUseAfterEvent {
    private constructor();
    readonly itemStack?: ItemStack;
    readonly source: Player;
    readonly useDuration: number;
    }
    Index

    Constructors

    Properties

    Constructors

    Properties

    itemStack?: ItemStack

    Returns the item stack that triggered this item event.

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

    source: Player

    Returns the source entity that triggered this item event.

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

    useDuration: number

    Returns the time, in ticks, for the remaining duration left before the charge completes its cycle.

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