Help with click on head

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

KAVKAZIE

Active Member
Feb 27, 2017
146
0
16
Hello, can some one make me a skript when i righttclick on head (Block) it will send me the name of the head please ? thanks for helping
 
Please use the request format :emoji_slight_smile:
And try this:
code_language.skript:
on place of head:
    set {_skull} to name of player's tool
    replace "skull of " in {_skull} with ""
    set {_skull} to {_skull} parsed as a player
    set {Heads::%event-location%} to {_skull}

on break of head:
    set {Heads::%event-location%} to ""

on right click:
    event-block is head
    {Heads::%event-location%} is not ""
    message "&9Skull: &7%{Heads::%event-location%}%"
Note that u have to replace the heads. Before it will work