Block Break Speed (Expression) — Skript

Addon: Skript · Category: Expression · Since: 2.7

Syntax

[the] break speed[s] [of %blocks%] [for %players%]

Description

Gets the speed at which the given player would break this block, taking into account tools, potion effects, whether or not the player is in water, enchantments, etc. The returned value is the amount of progress made in breaking the block each tick. When the total breaking progress reaches 1.0, the block is broken. Note that the break speed can change in the course of breaking a block, e.g. if a potion effect is applied or expires, or the player jumps/enters water.

Examples

on left click using diamond pickaxe:
	event-block is set
	send "Break Speed: %break speed for player%" to player

View source