ItemUseOnAfterEvent Class
Classes that extend ItemUseOnAfterEvent
Contains information related to an item being used on a block. This event fires when an item used by a player successfully triggers a block interaction.
Properties
block
read-only block: Block;
The block that the item is used on.
Type: Block
blockFace
read-only blockFace: Direction;
The face of the block that an item is being used on.
Type: Direction
faceLocation
read-only faceLocation: Vector3;
Location relative to the bottom north-west corner of the block where the item is placed.
Type: Vector3
itemStack
read-only itemStack: ItemStack;
The impacted item stack that is being used on a block.
Type: ItemStack
source
read-only source: Player;
Returns the source entity that triggered this item event.
Type: Player
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for