every item not work in item arg

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

klopari

Member
Mar 12, 2021
1
0
1
29
Hello!
In this code, I can give to me diamond but not diamond block or netherite block.
Can you help me?


Code:
command /givet <item> <number>:
    trigger:
        set {_ItemVariable} to arg 1
        set {_num} to arg 2
        
        set {_invcheck} to 0
        set {_found} to false
        while {_invcheck} < 35:
            set {_found} to true if slot {_invcheck} of player is empty
            if {_found} is true:
                while {_num} >= 1:
                    add {_ItemVariable} to slot {_invcheck} of player
                    remove 1 from {_num}
            add 1 to {_invcheck}
 
Status
Not open for further replies.