I want to format/set a slot

  • 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.
Apr 22, 2020
18
1
3
24
I want to set slot / format a slot on this skript I just cannot figure out how
code_language.skript:
on rightclick with clock:
    wait 1 tick
    open chest with 1 rows named "Server Selector" to player
    set slot 2 with ironsword
[doublepost=1589178460,1589174688][/doublepost]It comes up with an error with what I currently have
 
I want to set slot / format a slot on this skript I just cannot figure out how
code_language.skript:
on rightclick with clock:
    wait 1 tick
    open chest with 1 rows named "Server Selector" to player
    set slot 2 with ironsword
[doublepost=1589178460,1589174688][/doublepost]It comes up with an error with what I currently have
Try:
code_language.skript:
on rightclick with clock:
    wait a tick
    open chest with 1 row named "Server selector" to player
    set slot 2 of player's current inventory to iron sword

on inventory click:
    clicked inventory isn't player's inventory
    inventory name of player's current inventory is "Server selector":
        clicked slot = 2:
            #Do something when you click the iron sword.
 
Status
Not open for further replies.