Contains additional options for configuring a block raycast query.

interface BlockRaycastOptions {
    excludePermutations?: BlockPermutation[];
    excludeTags?: string[];
    excludeTypes?: string[];
    includeLiquidBlocks?: boolean;
    includePassableBlocks?: boolean;
    includePermutations?: BlockPermutation[];
    includeTags?: string[];
    includeTypes?: string[];
    maxDistance?: number;
}

Hierarchy (View Summary)

Properties

excludePermutations?: BlockPermutation[]
excludeTags?: string[]
excludeTypes?: string[]
includeLiquidBlocks?: boolean

If true, liquid blocks will be considered as blocks that 'stop' the raycast.

includePassableBlocks?: boolean

If true, passable blocks like vines and flowers will be considered as blocks that 'stop' the raycast.

includePermutations?: BlockPermutation[]
includeTags?: string[]
includeTypes?: string[]
maxDistance?: number

Maximum distance, in blocks, to process the raycast.