@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 ​
readonlyblock:Block
Defined in: @minecraft/server/index.d.ts:4790
Remarks ​
Block currently in the world at the location of this event.
Inherited from ​
dimension ​
readonlydimension:Dimension
Defined in: @minecraft/server/index.d.ts:4797
Remarks ​
Dimension that contains the block that is the subject of this event.
Inherited from ​
face ​
readonlyface:Direction
Defined in: @minecraft/server/index.d.ts:4521
Remarks ​
The block face that was interacted with.
faceLocation? ​
readonlyoptionalfaceLocation?: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? ​
readonlyoptionalplayer?:Player
Defined in: @minecraft/server/index.d.ts:4534
Remarks ​
The player that interacted with this block.