Skip to content

@minecraft/server


@minecraft/server / BlockComponentPlayerBreakEvent

Class: BlockComponentPlayerBreakEvent ​

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

Contains information regarding a specific block being broken by a player.

Extends ​

Properties ​

block ​

readonly block: Block

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

Remarks ​

Block currently in the world at the location of this event.

Inherited from ​

BlockEvent.block


brokenBlockPermutation ​

readonly brokenBlockPermutation: BlockPermutation

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

Remarks ​

Returns permutation information about this block before it was broken.


dimension ​

readonly dimension: Dimension

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

Remarks ​

Dimension that contains the block that is the subject of this event.

Inherited from ​

BlockEvent.dimension


player? ​

readonly optional player?: Player

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

Remarks ​

The player that broke this block.