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.

Solved skript giving item with iteminfo

Discussion in 'Skript' started by mynameisjosep, Jun 4, 2020.

Tags:
Thread Status:
Not open for further replies.
  1. mynameisjosep

    mynameisjosep Member

    Joined:
    Apr 25, 2020
    Messages:
    29
    Likes Received:
    0
    guys im using this code to give players item example give a diamond to player but i want to give item with item info if you dont understand what is iteminfo i means when you grab items and write /iteminfo its showing to you example script
    Code (Text):
    1. on command
    2.     trigger:
    3.         if player holding slot 1:
    4.              send "1" to player
    5.  
    sorry my grammar.

     
    #1 mynameisjosep, Jun 4, 2020
    Last edited: Jun 4, 2020
  2. Best Answer:
    Post #6 by PanHack, Jun 4, 2020
  3. PanHack

    PanHack Active Member

    Joined:
    Dec 18, 2019
    Messages:
    143
    Likes Received:
    8
    1. "on command" ur trying to execute it on EVERY command
    2. You cant "hold" slot 1
     
  4. mynameisjosep

    mynameisjosep Member

    Joined:
    Apr 25, 2020
    Messages:
    29
    Likes Received:
    0
    sorry my grammar i will show you a photo what i mean [​IMG]
     

    Attached Files:

  5. PanHack

    PanHack Active Member

    Joined:
    Dec 18, 2019
    Messages:
    143
    Likes Received:
    8
    yes, i understand im currently fixing ur code. I just said whats wrong in code
     
  6. mynameisjosep

    mynameisjosep Member

    Joined:
    Apr 25, 2020
    Messages:
    29
    Likes Received:
    0
    okey do you gonna help me ?
     
  7. PanHack

    PanHack Active Member

    Joined:
    Dec 18, 2019
    Messages:
    143
    Likes Received:
    8
    okay, it works BUT it works inverted idk why xD and you need SKQuery to make it work
    EDIT: forgot to put code XD

    Code (Text):
    1. command /kekw:
    2.     trigger:
    3.         if the current hotbar slot of player is 1:
    4.             send "1" to player
    5.         else:
    6.             send "no"
     
  8. mynameisjosep

    mynameisjosep Member

    Joined:
    Apr 25, 2020
    Messages:
    29
    Likes Received:
    0
    Epic Big Ultra Mega big berserker king of skript bla bla bla .
    --- Double Post Merged, Jun 4, 2020, Original Post Date: Jun 4, 2020 ---
    can i ask you something, where did you find this code ?
     
  9. PanHack

    PanHack Active Member

    Joined:
    Dec 18, 2019
    Messages:
    143
    Likes Received:
    8
    i didn't find it, i made it (psst, if u aren't great at coding u can use this website to search conditions etc from multiple skript addons https://skripthub.net/docs/ )
     
Thread Status:
Not open for further replies.

Share This Page

Loading...