%p:PLAYER% is (holding|carrying) %mat:MATERIAL% — Conditions

%p:PLAYER% is (holding|carrying) %mat:MATERIAL%
Player1.0.0

Description

Checks if a player is holding a specific material in their main hand.

Examples

if player is holding diamond_sword:

All Possible Usages (2)

Every distinct way you can write this pattern, with optional groups and choice groups expanded. Placeholders are shown as <name>.

<p> is holding <mat>
<p> is carrying <mat>

Related (Player)