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.

Make player head face player

Discussion in 'Skript' started by Mattllama987, Mar 3, 2021.

Thread Status:
Not open for further replies.
  1. Mattllama987

    Mattllama987 Active Member

    Joined:
    Aug 5, 2018
    Messages:
    225
    Likes Received:
    7
    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 (Text):
    1. on place of crying obsidian:
    2.     if name of player's held item contains colored "&cChicken Heads Storage":
    3.         if {headstorage::chicken::%player's uuid%} isn't set:
    4.             set {headstorage::chicken::%player's uuid%} to location of event-block
    5.             send "&8[&bHS&8] &aYou placed your Chicken head storage!"
    6.             set block at location above event-block to player head
    7.             set {_l} to location above event-block
    8.             set {_s} to {_l}.getBlock().getState()
    9.             wait 1 tick
    10.             {_s}.setOwner("MHF_Chicken")
    11.             {_s}.update()
     
  2. Marc

    Marc Active Member

    Joined:
    Nov 27, 2020
    Messages:
    94
    Likes Received:
    0
    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
     
  3. Mattllama987

    Mattllama987 Active Member

    Joined:
    Aug 5, 2018
    Messages:
    225
    Likes Received:
    7
    I've tried to do something like that already. It just faces the same direction. I'm out of options haha
    --- Double Post Merged, Mar 4, 2021, Original Post Date: Mar 3, 2021 ---
    bump
     
Thread Status:
Not open for further replies.

Share This Page

Loading...