Skip to content

@minecraft/server


@minecraft/server / BlockComponentPlayerInteractEvent

Class: BlockComponentPlayerInteractEvent ​

Defined in: @minecraft/server/index.d.ts:4514

Contains information regarding a specific block being interacted with.

Extends ​

Properties ​

block ​

readonly block: Block

Defined in: @minecraft/server/index.d.ts:4790

Remarks ​

Block currently in the world at the location of this event.

Inherited from ​

BlockEvent.block


dimension ​

readonly dimension: Dimension

Defined in: @minecraft/server/index.d.ts:4797

Remarks ​

Dimension that contains the block that is the subject of this event.

Inherited from ​

BlockEvent.dimension


face ​

readonly face: Direction

Defined in: @minecraft/server/index.d.ts:4521

Remarks ​

The block face that was interacted with.


faceLocation? ​

readonly optional faceLocation?: Vector3

Defined in: @minecraft/server/index.d.ts:4528

Remarks ​

Location relative to the bottom north-west corner of the block that the player interacted with.


player? ​

readonly optional player?: Player

Defined in: @minecraft/server/index.d.ts:4534

Remarks ​

The player that interacted with this block.