@minecraft/server / PlayerBreakBlockAfterEvent
Class: PlayerBreakBlockAfterEvent ​
Defined in: @minecraft/server/index.d.ts:16956
Contains information regarding an event after a player breaks a block.
Extends ​
Properties ​
block ​
readonlyblock:Block
Defined in: @minecraft/server/index.d.ts:4790
Remarks ​
Block currently in the world at the location of this event.
Inherited from ​
brokenBlockPermutation ​
readonlybrokenBlockPermutation:BlockPermutation
Defined in: @minecraft/server/index.d.ts:16964
Remarks ​
Returns permutation information about this block before it was broken.
dimension ​
readonlydimension:Dimension
Defined in: @minecraft/server/index.d.ts:4797
Remarks ​
Dimension that contains the block that is the subject of this event.
Inherited from ​
itemStackAfterBreak? ​
readonlyoptionalitemStackAfterBreak?:ItemStack
Defined in: @minecraft/server/index.d.ts:16971
Remarks ​
The item stack that was used to break the block after the block was broken, or undefined if empty hand.
itemStackBeforeBreak? ​
readonlyoptionalitemStackBeforeBreak?:ItemStack
Defined in: @minecraft/server/index.d.ts:16978
Remarks ​
The item stack that was used to break the block before the block was broken, or undefined if empty hand.
player ​
readonlyplayer:Player
Defined in: @minecraft/server/index.d.ts:16984
Remarks ​
Player that broke the block for this event.