On right click on player head with specific players

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

masonismediocre

New Member
Apr 1, 2020
5
0
1
20
I have this:
on rightclick on player head:
if clicked block's skullowner is "Notch":
send "test successful"

I have Skellet, skQuery, and skRayFall installed

It does not send any errors, but right clicking on the skull of notch does not send anything.
 
This might be an issue with skellet. First I don't think it works with "on right click on player skull" so I did this to get the skull owner of the block but it comes back as "null":

Which is different from the block not actually having a skull owner. It shows "<none>" if the block isn't a player head.

Code:
on right click:
    send "%skull owner of event-block%"
 
If it's an issue with Skellet, is there any other way to make something occur when a player head is clicked?

Your best bet is searching docs. If you're not looking for a specific skull owner though you can do this in the mean time which is just reading if it's "null" since it's always null when you click a player head:
Code:
on right click:
    set {_phead} to "%skull owner of event-block%"
    if {_phead} is "null":
        # do stuff
 
Status
Not open for further replies.