I can't figure out how to check if they have any amount of items in their hand

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

stormslurp

Member
Sep 14, 2021
1
0
1
23
on right click:
if player is holding apple with name "&6Royal Apple":
apply potion of regeneration 1 to player for 5 seconds
apply potion of strength 2 to player for 5 seconds
remove 1 apple with name "&6Royal Apple" from player's inventory
 
Code:
on right click:
    if player's tool is apple named "&6Royal Apple":
        apply regeneration of tier 1 to player for 5 seconds
        apply strength of tier 2 to player for 5 seconds
        remove 1 of player's tool from player's tool