Skip to content

@minecraft/server


@minecraft/server / TargetBlockHitAfterEvent

Class: TargetBlockHitAfterEvent ​

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

Contains information related to changes to a target block hit.

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


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


hitVector ​

readonly hitVector: Vector3

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

Remarks ​

The position where the source hit the block.


previousRedstonePower ​

readonly previousRedstonePower: number

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

Remarks ​

The redstone power before the block is hit.


redstonePower ​

readonly redstonePower: number

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

Remarks ​

The redstone power at the time the block is hit.


source ​

readonly source: Entity

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

Remarks ​

Optional source that hit the target block.