Make player head face player

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

Mattllama987

Active Member
Aug 5, 2018
225
7
18
24
Hello, i have a question about making a player head face a player. Im working on a heads storage system, and i spawn a mob head on top of crying obsidian when i place the obsidian down. When i place a chicken head storage, it spawns a chicken head on top of the block. But i want the head to be facing the player. It doesnt face me when i place the block down. If anyone knows how to get this to work, please let me know asap.

Thanks!
~Matt

Code:

Code:
on place of crying obsidian:
    if name of player's held item contains colored "&cChicken Heads Storage":
        if {headstorage::chicken::%player's uuid%} isn't set:
            set {headstorage::chicken::%player's uuid%} to location of event-block
            send "&8[&bHS&8] &aYou placed your Chicken head storage!"
            set block at location above event-block to player head
            set {_l} to location above event-block
            set {_s} to {_l}.getBlock().getState()
            wait 1 tick
            {_s}.setOwner("MHF_Chicken")
            {_s}.update()
 
find which way the player is facing and make it face the opposite direction.

Not sure howd you code it tho, Ill reply when I find out how
 
find which way the player is facing and make it face the opposite direction.

Not sure howd you code it tho, Ill reply when I find out how
I've tried to do something like that already. It just faces the same direction. I'm out of options haha
[doublepost=1614884793,1614787862][/doublepost]bump
 
Status
Not open for further replies.