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!


    You can always check out our Wiki for downloads and any other information about Skript!

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

Set slot item bugged

Discussion in 'Skript' started by Ghiranoss, Oct 23, 2020.

Thread Status:
Not open for further replies.
  1. Ghiranoss

    Ghiranoss Member

    Oct 23, 2020
    Likes Received:
    Hello everyone!
    so i make a skript when a player click on anvil crafting gui showed,
    but when i close the gui the item in 3rd slot of my toolbar cant be move it only happend with stone blocks

    please help!

    Code (Text):
    2. on inventory click:
    3.     if inventory name of current inventory of player is "Crafting":
    4.         if clicked item is stone:
    5.             if clicked item is stone named "Stones":
    6.                 if clicked slot is 2:
    7.                     cancel event
    8.         if clicked item is jungle log:
    9.             if clicked slot is 5:
    10.                 cancel event
    12. on inventory click:
    13.     if inventory name of current inventory of player is "Crafting":
    14.         if clicked slot is 0:
    15.             if clicked item is paper:
    16.                 loop all players:
    17.                     if loop-player has 40 jungle logs:
    18.                         remove 40 jungle logs from loop-player's inventory
    19.                         if loop-player has 14 stone:
    20.                             remove 14 stone from loop-player's inventory
    21.                             give player paper named "&bDockyard Blueprint"
    22.                             close the player's inventory
    23.                         else:
    24.                             message "You don't have enough ingredients"
    25.                     else:
    26.                         cancel event
    27.                         message "You don't have enough ingredients"
Thread Status:
Not open for further replies.

Share This Page