Solved Right click a specific item to trigger something

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

KingDooms

Member
Jun 10, 2020
26
0
1
So in a server im making, there will be given 3 keys/tripwire hooks... each one is supposed to teleport to a different area. There called "Axe Shop Key", "Sword Shop Key" and "Bow Shop Key". But i want so when the player right clicks the specific key, it will go to the type of shop, but it doesnt work.

This is the code that doesn't work:

on rightclick with a tripwire hook:
if player is holding a tripwire hook named "&6&lAxe Shop Key":
teleport player to {b}​
if player is holding a tripwire hook named "&6&lSword Shop Key":
teleport player to {b}​
if player is holding a tripwire hook named "&6&lBow Shop Key":
teleport player to {b}​

How do i fix this?
[doublepost=1612209192,1612208366][/doublepost]Its solved because its about another problem, the lore
 
Status
Not open for further replies.