Skip to content

@minecraft/server


@minecraft/server / BlockFilter

Interface: BlockFilter ​

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

Options to include or exclude blocks based on type, tag or permutation. If no include options are added it will select all blocks that are not rejected by the exclude options. If at least one include option is added the block must match one of the include options to not be rejected.

Extended by ​

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.


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.


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.


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.


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.


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.