Solved Command when right click item?

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

iStopcontact

Member
Feb 18, 2017
113
2
18
23
Hello guys,

I am working on a own server network atm and for my lobby I have made a own server selector and u can open it with the command "/navigator"
Now i have set as a join item a compass and i want when a player right clicks with a compass it opens the server selector.
I used multiple commands but it wont work.
Can someone maybe help me?

My on join skript:
code_language.skript:
on join:
    set slot 0 of player to compass named "&8» &bServer&fNavigator &8«"
    set slot 1 of player to clock named "&8» &bLobby&fSelector &8«"
    set slot 4 of player to chest named "&8» &bTrails &8«"
    set slot 7 of player to bone named "&8» &bPets &8«"
    set slot 8 of player to dye named "&8» &bPlayer vissibility &8«"
 
  • Like
Reactions: Clickzy
code_language.skript:
on rightclick with compass:
    if name of tool of player is "&8» &bServer&fNavigator &8«":
        #//do stuff
 
Status
Not open for further replies.