Contains information regarding an event after a player successfully interacts with a block.

Hierarchy

  • PlayerInteractWithBlockAfterEvent

Constructors

Properties

beforeItemStack?: ItemStack

Remarks

The ItemStack before the interaction succeeded, or undefined if hand is empty.

block: Block

Remarks

The block that will be interacted with.

blockFace: Direction

Remarks

The face of the block that is being interacted with.

faceLocation: Vector3

Remarks

Location relative to the bottom north-west corner of the block where the item is placed.

isFirstEvent: boolean

Remarks

This value will be true if the event was triggered on players initial interaction button press and false on events triggered from holding the interaction button.

itemStack?: ItemStack

Remarks

The ItemStack after the interaction succeeded, or undefined if hand is empty.

player: Player

Remarks

Source Player for this event.