Skip to main content

Class: ItemStopUseOnAfterEvent

Contains information related to an item that has stopped being used on a block. This event fires when a player successfully uses an item or places a block by pressing the Use Item / Place Block button. If multiple blocks are placed, this event will only occur once at the beginning of the block placement. Note: This event cannot be used with Hoe or Axe items.

Constructors

new ItemStopUseOnAfterEvent()

private new ItemStopUseOnAfterEvent(): ItemStopUseOnAfterEvent

Returns

ItemStopUseOnAfterEvent

Properties

block

readonly block: Block

Remarks

The block that the item is used on.


itemStack?

optional readonly itemStack: ItemStack

Remarks

The impacted item stack that is being used on a block.


source

readonly source: Player

Remarks

Returns the source entity that triggered this item event.