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 How to give a custom skull

Discussion in 'Skript' started by Selvati, Dec 23, 2017.

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

    Selvati Active Member

    Joined:
    Jun 26, 2017
    Messages:
    190
    Likes Received:
    9
    I am aware that you can easily give and use a specific player's head with it's skin in a gui using the code below.
    Code (Skript):
    1. command /selvati:
    2.     trigger:
    3.         give player skull of ("Selvati" parsed as offline player)
    I would like to know how to use custom skulls in a gui and even give them to a player, for example, Hypixel bedwars drops custom present skulls this time of year, and their advent calendar is filled with custom skulls, if anyone even has a clue on how to turn the vanilla /give command below into a skript syntax, please do help me out!
    /give @p skull 1 3 {display:{Name:"Christmas ball ornament (light blue)"},SkullOwner:{Id:"de3f6a2d-45e3-4991-9781-ad0361ee2893",Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOGM4YTgyNGI5Yjk0OTM5YWYyZThjZTE4ODQ4MjYxOGRhZDkzM2FlNWRkNjcxYTdiOWFjOTk5ZDNhM2I2MWE1In19fQ=="}]}}}


     
    • Creative Creative x 1
  2. Best Answer:
    Post #7 by Snow-Pyon, Dec 24, 2017
  3. ChisleLP

    ChisleLP Well-Known Member

    Joined:
    Jan 26, 2017
    Messages:
    789
    Likes Received:
    58
    Code (Skript):
    1. set slot 0 of player's current inventory to ("NameOfPlayer" parsed as offline)' skull #Skellett Gui
    2. Or youre adding NBT to the Items. easier way.
    3.  
     
  4. Selvati

    Selvati Active Member

    Joined:
    Jun 26, 2017
    Messages:
    190
    Likes Received:
    9
    I know how to do that, I need to know how to do that but with custom texture values or something similar to the command above, it’s not actually a player skull texture it is a custom textured skull.
     
  5. ChisleLP

    ChisleLP Well-Known Member

    Joined:
    Jan 26, 2017
    Messages:
    789
    Likes Received:
    58
    maybe take a look here
    https://forums.skunity.com/resources/head-database.397/
     
  6. Selvati

    Selvati Active Member

    Joined:
    Jun 26, 2017
    Messages:
    190
    Likes Received:
    9
  7. Pikachu

    Moderator Supporter Addon Developer

    Joined:
    Jan 25, 2017
    Messages:
    871
    Likes Received:
    139
    Medals:
    That isn't skellett. It's vanilla skript. I feel like i've said this before.
     
    • Agree Agree x 1
  8. Snow-Pyon

    Moderator Resource Staff

    Joined:
    Jan 25, 2017
    Messages:
    1,236
    Likes Received:
    176
    Medals:
    Since skStuff isn't updated anymore, I'll give you a way to do it with MundoSK and ProtocolLib.
    Code (Skript):
    1. set {_value} to "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOGM4YTgyNGI5Yjk0OTM5YWYyZThjZTE4ODQ4MjYxOGRhZDkzM2FlNWRkNjcxYTdiOWFjOTk5ZDNhM2I2MWE1In19fQ=="
    2.  
    3. set {_skull} to skull from skin with value {_value} signature ""
    4. set data value of {_skull} to 3
    5. give {_skull} to player
     
    • Like Like x 1
    • Winner Winner x 1
    • Informative Informative x 1
  9. Selvati

    Selvati Active Member

    Joined:
    Jun 26, 2017
    Messages:
    190
    Likes Received:
    9
    Everything seemed as it would've worked but alas there is one error. Suggestions? upload_2017-12-23_22-0-50.png
    --- Double Post Merged, Dec 24, 2017, Original Post Date: Dec 24, 2017 ---
    Code (Skript):
    1. command /head-test:
    2.     trigger:
    3.         set {_value} to "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOGM4YTgyNGI5Yjk0OTM5YWYyZThjZTE4ODQ4MjYxOGRhZDkzM2FlNWRkNjcxYTdiOWFjOTk5ZDNhM2I2MWE1In19fQ=="
    4.         set {_skull} to skull from skin with value {_value} signature ""
    5.         set data value of {_skull} to 3
    6.         give {_skull} to player
     
  10. Snow-Pyon

    Moderator Resource Staff

    Joined:
    Jan 25, 2017
    Messages:
    1,236
    Likes Received:
    176
    Medals:
    • Useful Useful x 1
  11. Selvati

    Selvati Active Member

    Joined:
    Jun 26, 2017
    Messages:
    190
    Likes Received:
    9
Thread Status:
Not open for further replies.

Share This Page

Loading...