set player head to variable

  • 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 community!

    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.

claytyne

Member
May 12, 2020
26
0
1
hey i want to set a player head to a variable, but i can't figure out how. and is there a way to call an event when right clicking on a specific player head?

Code:
on rightclick:
    if clicked block is {_rare}:
        break clicked block
        send "&9You found a rare candy basket!" to player
        play sound "entity.bat.ambient" to player

(for the second thing)
 
You're not using {_rare} to set it are you? It wouldn't save to a local variable and be usable outside that block of code. I have a few custom items I've saved to variables and it works just by doing:
"Set {rare} to player's tool"
I do it in a command while holding it and set it.
 
Status
Not open for further replies.