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

    Class ItemComponentUseEvent

    Contains information regarding the use of an item.

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

    Constructors

    Properties

    Constructors

    Properties

    itemStack?: ItemStack

    The item stack when the item was used.

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

    source: Player

    The player who used the item.

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