Skip to content

BlockHitResult

Inherits from: HitResult

Represents the result of a raycast that hits a block, providing details about the block's position, the side that was hit, and whether the hit was inside the block's boundaries.

Fields

blockPos: Vec3 Read-Only

A copy of the exact position of the block that was hit.

side: string Read-Only

The side of the block that was hit (e.g., "north", "south", "east", "west", "up", "down").

inside: boolean Read-Only

Indicates whether the raycast hit was inside the block's boundaries.