1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Right click a specific item to trigger something

Discussion in 'Skript' started by KingDooms, Feb 1, 2021.

Thread Status:
Not open for further replies.
  1. KingDooms

    KingDooms Member

    Joined:
    Jun 10, 2020
    Messages:
    23
    Likes Received:
    0
    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?
    --- Double Post Merged, Feb 1, 2021, Original Post Date: Feb 1, 2021 ---
    Its solved because its about another problem, the lore
     
Thread Status:
Not open for further replies.

Share This Page

Loading...