Skip to content

@minecraft/server


@minecraft/server / BlockEventOptions

Interface: BlockEventOptions ​

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

Contains optional parameters for registering a block event.

Properties ​

blockTypes? ​

optional blockTypes?: string[]

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

Remarks ​

If this value is set, this event will only fire if the impacted block's type matches this parameter.


permutations? ​

optional permutations?: BlockPermutation[]

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

Remarks ​

If this value is set, this event will only fire if the impacted block's permutation matches this parameter.