Format a player inventory?

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

BryHunter

Member
Jan 10, 2018
35
2
8
27
This is not a GUI help, I was wondering if there was a way to do,
code_language.skript:
on join:
  format slot 5 of players inventory with compass named "server selector"
 
  on right-click of compass:
     ect.

So basically when the player joins their inventory has a compass in it which has a name, also avoid them from moving it to another slot
 
code_language.skript:
on join:
    set slot 5 of player's inventory to 1 of compass named "server selector"

on right click holding compass:
    if name of player's held item is "server selector":
        #do stuff

on inventory click:
    name of clicked item is "server selector"
    cancel event
 
Last edited:
  • Like
Reactions: BryHunter
Please do not use skQuery for your menus (e.g format slot). Please do take a look at TuSKe's GUI Manager.
If you want me to list why format slot is utter trash compared to it, then just ask me to.
 
Status
Not open for further replies.