Hanging Entity/Remover (Expression) — Skript

Addon: Skript · Category: Expression · Since: 2.6.2

Syntax

[the] hanging (entity|remover)

Description

Returns the hanging entity or remover in hanging <a href='#break_mine'>break</a> and <a href='#place'>place</a> events.

Examples

on break of item frame:
	if item of hanging entity is diamond pickaxe:
		cancel event
		if hanging remover is a player:
			send "You can't break that item frame!" to hanging remover

View source