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.

Need help with rightclick on skull

Discussion in 'Skript' started by Mathias15, Oct 10, 2021.

  1. Mathias15

    Mathias15 Member

    Joined:
    Oct 10, 2021
    Messages:
    1
    Likes Received:
    0
    Hi, i can't get the thing i want to work... I want to make it possible to right click on a skull that is placed on the floor and then execute something.

    This is what i have that doesn't work:

    command /e:
    trigger:
    set {_head} to skull of ("Globe" parsed as an offline player)
    give player {_head}
    send "hej" to player

    on right click:
    player's held item is {_head}:
    send "hej" to player

    I don't get any errors, and it still doesn't work.
     
  2. oToghty

    VIP Supporter +

    Joined:
    Sep 1, 2020
    Messages:
    142
    Likes Received:
    5
    on right click with player head
    name of tool is ""
     
  3. timeis

    timeis New Member

    Joined:
    May 19, 2021
    Messages:
    8
    Likes Received:
    0
    Code (Text):
    1. on load:
    2.  set {head1} to skull of ("Globe" parsed as an offline player)
    3.  
    4. command /e:
    5.  trigger:
    6.   give player {head1}
    7.   send "hej" to player
    8.  
    9. on right click:
    10.  if player's held item is {head1}:
    11.   send "hej" to player

    this should work
     

Share This Page

Loading...