Skip to content

@minecraft/server


@minecraft/server / EntityHitBlockAfterEvent

Class: EntityHitBlockAfterEvent ​

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

Contains information related to an entity hitting a block.

Properties ​

blockFace ​

readonly blockFace: Direction

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

Remarks ​

Face of the block that was hit.


damagingEntity ​

readonly damagingEntity: Entity

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

Remarks ​

Entity that made the attack.


hitBlock ​

readonly hitBlock: Block

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

Remarks ​

Block that was hit by the attack.


hitBlockPermutation ​

readonly hitBlockPermutation: BlockPermutation

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

Remarks ​

Block permutation that was hit by the attack.