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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    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.

I want to format/set a slot

Discussion in 'Skript' started by WhoCutTheCheese, May 11, 2020.

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

    Joined:
    Apr 22, 2020
    Messages:
    13
    Likes Received:
    1
    I want to set slot / format a slot on this skript I just cannot figure out how
    Code (Skript):
    1.  
    2.  
    3. on rightclick with clock:
    4.     wait 1 tick
    5.     open chest with 1 rows named "Server Selector" to player
    6.     set slot 2 with ironsword
    7.    
    --- Double Post Merged, May 11, 2020, Original Post Date: May 11, 2020 ---
    It comes up with an error with what I currently have
     
  2. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    714
    Likes Received:
    31
    Try:
    Code (Skript):
    1.  
    2. on rightclick with clock:
    3.     wait a tick
    4.     open chest with 1 row named "Server selector" to player
    5.     set slot 2 of player's current inventory to iron sword
    6.  
    7. on inventory click:
    8.     clicked inventory isn't player's inventory
    9.     inventory name of player's current inventory is "Server selector":
    10.         clicked slot = 2:
    11.             #Do something when you click the iron sword.
    12.  
     
Thread Status:
Not open for further replies.

Share This Page

Loading...