@minecraft/server / ItemStopUseOnAfterEvent
Class: ItemStopUseOnAfterEvent ​
Defined in: @minecraft/server/index.d.ts:15156
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.
Properties ​
block ​
readonlyblock:Block
Defined in: @minecraft/server/index.d.ts:15163
Remarks ​
The block that the item is used on.
itemStack? ​
readonlyoptionalitemStack?:ItemStack
Defined in: @minecraft/server/index.d.ts:15169
Remarks ​
The impacted item stack that is being used on a block.
source ​
readonlysource:Player
Defined in: @minecraft/server/index.d.ts:15175
Remarks ​
Returns the source entity that triggered this item event.