@minecraft/server / EntityHitBlockAfterEvent
Class: EntityHitBlockAfterEvent ​
Defined in: @minecraft/server/index.d.ts:10625
Contains information related to an entity hitting a block.
Properties ​
blockFace ​
readonlyblockFace:Direction
Defined in: @minecraft/server/index.d.ts:10632
Remarks ​
Face of the block that was hit.
damagingEntity ​
readonlydamagingEntity:Entity
Defined in: @minecraft/server/index.d.ts:10638
Remarks ​
Entity that made the attack.
hitBlock ​
readonlyhitBlock:Block
Defined in: @minecraft/server/index.d.ts:10644
Remarks ​
Block that was hit by the attack.
hitBlockPermutation ​
readonlyhitBlockPermutation:BlockPermutation
Defined in: @minecraft/server/index.d.ts:10650
Remarks ​
Block permutation that was hit by the attack.