1. 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!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'Requests' started by stormslurp, Mar 27, 2022.

  1. stormslurp

    stormslurp Member

    Joined:
    Sep 14, 2021
    Messages:
    1
    Likes Received:
    0
    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
     
  2. EtoNikei

    EtoNikei New Member

    Joined:
    Oct 19, 2020
    Messages:
    3
    Likes Received:
    0
    Code (Text):
    1. on right click:
    2.     if player's tool is apple named "&6Royal Apple":
    3.         apply regeneration of tier 1 to player for 5 seconds
    4.         apply strength of tier 2 to player for 5 seconds
    5.         remove 1 of player's tool from player's tool
     

Share This Page

Loading...