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.

every item not work in item arg

Discussion in 'Skript' started by klopari, Apr 11, 2021.

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

    klopari Member

    Joined:
    Mar 12, 2021
    Messages:
    1
    Likes Received:
    0
    Hello!
    In this code, I can give to me diamond but not diamond block or netherite block.
    Can you help me?


    Code (Text):
    1. command /givet <item> <number>:
    2.     trigger:
    3.         set {_ItemVariable} to arg 1
    4.         set {_num} to arg 2
    5.        
    6.         set {_invcheck} to 0
    7.         set {_found} to false
    8.         while {_invcheck} < 35:
    9.             set {_found} to true if slot {_invcheck} of player is empty
    10.             if {_found} is true:
    11.                 while {_num} >= 1:
    12.                     add {_ItemVariable} to slot {_invcheck} of player
    13.                     remove 1 from {_num}
    14.             add 1 to {_invcheck}
     
Thread Status:
Not open for further replies.

Share This Page

Loading...