Is Holding (Condition) — Skript

Addon: Skript · Category: Condition · Since: 1.0

Syntax

[%livingentities%] ha(s|ve) %itemtypes% in [main] hand

Description

Checks whether a player is holding a specific item. Cannot be used with endermen, use 'entity is [not] an enderman holding <item type>' instead.

Examples

player is holding a stick
victim isn't holding a diamond sword of sharpness

View source