Arrow Attached Block (Expression) — Skript

Addon: Skript · Category: Expression · Since: 2.8.0, 2.12 (multiple blocks)

Syntax

[the] (attached|hit) block[s] of %projectiles%

Description

Returns the attached block of an arrow. If running Paper 1.21.4+, the plural version of the expression should be used as it is more reliable compared to the single version.

Examples

set hit block of last shot arrow to diamond block
on projectile hit:
	wait 1 tick
	break attached blocks of event-projectile
	kill event-projectile

View source