Skip to content

@minecraft/server


@minecraft/server / ItemComponentMineBlockEvent

Class: ItemComponentMineBlockEvent ​

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

Contains information regarding the mining of a block using an item.

Properties ​

block ​

readonly block: Block

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

Remarks ​

The block impacted by this event.


itemStack? ​

readonly optional itemStack?: ItemStack

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

Remarks ​

The item stack used to mine the block.


minedBlockPermutation ​

readonly minedBlockPermutation: BlockPermutation

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

Remarks ​

The block permutation that was mined.


source ​

readonly source: Entity

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

Remarks ​

The entity that mined the block.