Player Break Block (Effect) — SkBee

Addon: SkBee · Category: Effect · Since: 3.20.0

Syntax

make %player% break %blocks%

Description

Forces a player to break a Block using the item in their main hand. This effect will respect enchantments, handle item durability (if applicable) and drop experience and the correct items according to the tool/item in the player's hand. Note that this method will call a block break event, meaning that this method may not be successful in breaking the block if the event was cancelled by a third party plugin. Care should be taken if running this method in a block break event listener as recursion may be possible if it is invoked on the same block being broken in the event.

Examples

make player break target block
make player break blocks within {_loc1} and {_loc2}

View source