Brushing Stage (Expression) — Skript

Addon: Skript · Category: Expression · Since: 2.12

Syntax

[the] [max[imum]] (dust|brush)[ed|ing] (value|stage|progress[ion]) of %blocks/blockdatas%

Description

Represents how far the block has been uncovered. The only blocks that can currently be "brushed" are Suspicious Gravel and Suspicious Sand. 0 means the block is untouched, the max (usually 3) means nearly fulled brushed. Resetting this value will set it to 0.

Examples

# prevent dusting past level 1
on player change block:
	if dusting progress of future event-blockdata > 1:
		cancel event
# draw particles when dusting is complete!
on player change block:
	if brushing progress of event-block is max brushing stage of event-block:
		draw 20 totem of undying particles at event-block

View source