broadcastDestructionStage

fun Block.broadcastDestructionStage(entityId: Int, stage: Int)

Sends the ClientboundBlockDestructionPacket to all players in a 1-chunk-range with the given entityId and breaking stage. Only works with vanilla blocks.

Parameters

entityId

The id of the entity breaking the block

stage

The breaking stage between 0-9 (both inclusive). A different number will cause the breaking texture to disappear.

See also


fun Block.broadcastDestructionStage(player: Player, stage: Int)

Sends the ClientboundBlockDestructionPacket to all players in a 1-chunk-range with the entity id of the given player and breaking stage. Only works with vanilla blocks.

Parameters

player

The player breaking the block. The packet will not be sent to this player.

stage

The breaking stage between 0-9 (both inclusive). A different number will cause the breaking texture to disappear.

See also