The BlockComponentPlayerInteractEvent class in @minecraft/server.
Class in @minecraft/server
Extends BlockEvent
import { BlockComponentPlayerInteractEvent } from '@minecraft/server';Constructor
Section titled “Constructor”protected constructor();Properties
Section titled “Properties”read-only
readonly face: Direction;Types
faceLocation
Section titled “faceLocation”read-only optional
readonly faceLocation?: Vector3;Types
player
Section titled “player”read-only optional
readonly player?: Player;Types
Used by
Section titled “Used by”BlockCustomComponent.onPlayerInteract
Inherited
Section titled “Inherited”From BlockEvent: block, dimension