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

On rightclick holding a head

Discussion in 'Skript' started by eMpowr, Jun 14, 2019 at 5:00 PM.

  1. e

    eMpowr Member

    Joined:
    Thursday
    Messages:
    15
    Likes Received:
    0
    Error code:
    Code (Text):
    1. on rightclick holding a head:
    2.     if player's world is "hub":
    3.         if name of item is "&e► &cŽAIDIMAI &e◄":
    4.             wait 4 ticks
    5.             make player execute command "/zaidimai"
    6.  
    had a problem with rightclick holding a head. What could be the issue here?
     

    Attached Files:

  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    1,811
    Likes Received:
    125
  3. G

    Gecky Member

    Joined:
    May 22, 2019
    Messages:
    12
    Likes Received:
    0
    Not sure what your error is, but try for line 2:
    Code (Text):
    1. if event-item's name is "&e► &cŽAIDIMAI &e◄":
     
  4. e

    eMpowr Member

    Joined:
    Thursday
    Messages:
    15
    Likes Received:
    0
    The error is on rightclick "holding a head"
     
  5. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    1,811
    Likes Received:
    125
    What is the actual error?
    Also provide more details, ex: Spigot and Skript versions
     
  6. e

    eMpowr Member

    Joined:
    Thursday
    Messages:
    15
    Likes Received:
    0
    Spigot version: 1.12 Skript: 2.4-alpha3

    It cannot understand the event
     

    Attached Files:

  7. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    1,811
    Likes Received:
    125
    Im pretty sure "head" isn't an item, try `player head` if that doesn't work you will have to look thru the aliases and find the correct alias
     
  8. e

    eMpowr Member

    Joined:
    Thursday
    Messages:
    15
    Likes Received:
    0
    It didnt give me errors when I reloaded the skript but when I rightclick on the head it just doesnt open a GUI that I made.
     
    #8 eMpowr, Jun 15, 2019 at 11:01 AM
    Last edited: Jun 17, 2019 at 5:48 PM
Loading...