Is Holding (Condition) — Skript

Addon: Skript · Category: Condition · Since: 1.0

Syntax

[%living entities%] ha(s|ve) %item types% 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