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.

How can i give player a item in a slot?

Discussion in 'Skript' started by LauKast, Feb 1, 2018.

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

    LauKast Member

    Joined:
    Feb 1, 2018
    Messages:
    4
    Likes Received:
    0
    So i wanna give this chest in slot 9 in the hotbar but how can i do that?



    The Code

    on player respawn:
    wait 1 second
    give player 1 chest named "&6&lKit & Inställningar" with lore "&7Välj kit och inställningar"

     
  2. Juan7030

    Juan7030 Member

    Joined:
    Mar 20, 2017
    Messages:
    13
    Likes Received:
    0
    try use
    Code (Text):
    1.  
    2. set slot {slot} of player to {item} named "&6&lKit & Inställningar" with lore "&7Välj kit och inställningar"
    3.  
     
  3. LauKast

    LauKast Member

    Joined:
    Feb 1, 2018
    Messages:
    4
    Likes Received:
    0
    Thanks dude! It works and thanks for fast answer!
     
  4. Wynnevir

    Wynnevir Well-Known Member

    Joined:
    Jul 9, 2017
    Messages:
    1,016
    Likes Received:
    62
    you need to specify it's their inventory.
    Code (Skript):
    1. set slot 9 of player's current inventory to chest named "..."
    --- Double Post Merged, Feb 1, 2018, Original Post Date: Feb 1, 2018 ---
    oop nevermindx3 was too slow haha.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...