How Can I Control If Main Hand Is Empty *SOLVED*

Started by boragcmn on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How Can I Control If Main Hand Is Empty *SOLVED*
Fri, 06/06/2025 - 21:43 (edited)

I don't know how can I control my main hand is 'empty' not empty stack, maybe im wrong soo I wanna give sword to player if his main hand is empty.

Edited by boragcmn on Fri, 06/06/2025 - 21:43
Joined Jun 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
 If>( [Item in main-hand of>…
Fri, 06/06/2025 - 21:47

 If>( [Item in main-hand of> Event/target entity] = [Empty Itemstack] )

do .....

else

do ......

my bad, empty itemstack works, i shouldnt trust to chatgpt .d