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.

Solved Player’s head|skull by nbt

Discussion in 'Skript' started by Monpler, Oct 11, 2021.

  1. Monpler

    Monpler Member

    Joined:
    Aug 14, 2021
    Messages:
    2
    Likes Received:
    0
    Im using Skript 2.2dev37c in 1.12.2
    I want to get player’s skull in skript. ( such as save to variables )
    So i tried
    Code (Text):
    1. Command /skull:
    2. >trigger:
    3. >>set {_item} to player’s skull
    4. >>give {_item} to player
    5.  
    6.  
    But this gives me just alex or steve skull named “(nickname)’s head”.

    In vanilla command, it works. (command from skull generator website)

    But this cannot be used in skript.

    my goal is to save skull of all players in server to variables

    I think the nbt will help me achieve this.

    please help me.
     
  2. Best Answer:
    Post #2 by oToghty, Oct 11, 2021
  3. oToghty

    VIP Supporter +

    Joined:
    Sep 1, 2020
    Messages:
    142
    Likes Received:
    5
    First of all, update your skript, that's very outdated. Update here: https://github.com/SkriptLang/Skript/releases/tag/2.5.3
    Second of all, you can use
    Code (Text):
    1. for player heads:
    2. skull of "any player" parsed as offline player
    3.  
    4. for custom heads:
    5. player head with nbt "the nbt"
    6. (requires skbee)
    the nbt can be taken from here https://minecraft-heads.com/custom-heads
     

Share This Page

Loading...