PlayerInteractWithEntityBeforeEvent Class
Contains information regarding an event before a player interacts with an entity.
Properties
cancel
cancel: boolean;
If set to true the interaction will be cancelled.
Type: boolean
itemStack
read-only itemStack?: ItemStack;
The item stack that is being used in the interaction, or undefined if empty hand.
Type: ItemStack
player
read-only player: Player;
Source Player for this event.
Type: Player
target
read-only target: Entity;
The entity that will be interacted with.
Type: Entity
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