Skip to content

@minecraft/server


@minecraft/server / BlockRaycastOptions

Interface: BlockRaycastOptions ​

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

Contains additional options for configuring a block raycast query.

Extends ​

Properties ​

excludePermutations? ​

optional excludePermutations?: BlockPermutation[]

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

Remarks ​

Array of block permutations that the filter should reject if any matches.

Inherited from ​

BlockFilter.excludePermutations


excludeTags? ​

optional excludeTags?: string[]

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

Remarks ​

Array of block tags that the filter should reject if any matches.

Inherited from ​

BlockFilter.excludeTags


excludeTypes? ​

optional excludeTypes?: string[]

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

Remarks ​

Array of block types that the filter should reject if any matches.

Inherited from ​

BlockFilter.excludeTypes


includeLiquidBlocks? ​

optional includeLiquidBlocks?: boolean

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

Remarks ​

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


includePassableBlocks? ​

optional includePassableBlocks?: boolean

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

Remarks ​

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


includePermutations? ​

optional includePermutations?: BlockPermutation[]

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

Remarks ​

Array of block permutations that the filter should select if at least one matches.

Inherited from ​

BlockFilter.includePermutations


includeTags? ​

optional includeTags?: string[]

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

Remarks ​

Array of block tags that the filter should select if at least one matches.

Inherited from ​

BlockFilter.includeTags


includeTypes? ​

optional includeTypes?: string[]

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

Remarks ​

Array of block types that the filter should select if at least one matches.

Inherited from ​

BlockFilter.includeTypes


maxDistance? ​

optional maxDistance?: number

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

Remarks ​

Maximum distance, in blocks, to process the raycast.