How I give the player a custom 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!

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

Aidanete

Active Member
Apr 11, 2017
139
10
0
I don't know how to do it... For example, a custom gui with a custom head with an arrow -> , for example, how I put the skull texture to that custom head.

For example, this head:
e2277a8f4c2a392fe3dcd25d8cafec53_XS.jpg

The page where I get this head:
https://minecraft-heads.com/custom/heads/alphabet/9871-lime-arrow-right
 
Last edited:
With SkStuff you can use this:
code_language.skript:
set {_skulls} to skull with custom nbt "{SkullOwner:{Id:""23b3f9dc-f02c-4ea8-a949-dbd56b03602c"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNGVmMzU2YWQyYWE3YjE2NzhhZWNiODgyOTBlNWZhNWEzNDI3ZTVlNDU2ZmY0MmZiNTE1NjkwYzY3NTE3YjgifX19""}]}}} "
 
The error log detects an error "It's not a valid item data". Why this happens?
[doublepost=1531760522,1531686771][/doublepost]*Bump*
 
(Google Translator) I do not know how you will be, but everything seems to work for me:

code_language.skript:
command test:
    trigger:
         # Name of skin with head, you need
        set {_head} to "Fox" parsed as offline player
        give player skull of {_head}


Oh, I did not see that you have not a username :\


But I found a few nicknames with the heads you need (I'm not entirely sure if you need these spells, but I'll still write them to you):


code_language.skript:
MHF_ArrowUp
MHF_ArrowDown
MHF_ArrowRight
MHF_ArrowLeft
MHF_Exclamation
MHF_Question
MHF_Chest
MHF_Melon
MHF_Pumpkin
BowAimbot (Bookcase head)
MHF_(mob head here. For example, MHF_Enderman, MHF_Spider etc.)
 
Last edited:
(Google Translator) I do not know how you will be, but everything seems to work for me:

code_language.skript:
command test:
    trigger:
         # Name of skin with head, you need
        set {_head} to "Fox" parsed as offline player
        give player skull of {_head}


Oh, I did not see that you have not a username :\


But I found a few nicknames with the heads you need (I'm not entirely sure if you need these spells, but I'll still write them to you):


code_language.skript:
MHF_ArrowUp
MHF_ArrowDown
MHF_ArrowRight
MHF_ArrowLeft
MHF_Exclamation
MHF_Question
MHF_Chest
MHF_Melon
MHF_Pumpkin
BowAimbot (Bookcase head)
MHF_(mob head here. For example, MHF_Enderman, MHF_Spider etc.)
He wants one with custom NBT, not one of the ones from Mojang
 
code_language.skript:
command /test:
    trigger:
        make player execute command "give %player% skull 1 3 {display:{Name:""Lime Arrow Right""},SkullOwner:{Id:""23b3f9dc-f02c-4ea8-a949-dbd56b03602c"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNGVmMzU2YWQyYWE3YjE2NzhhZWNiODgyOTBlNWZhNWEzNDI3ZTVlNDU2ZmY0MmZiNTE1NjkwYzY3NTE3YjgifX19""}]}}}"
[doublepost=1531851675,1531851554][/doublepost]oh crap I see you want it as an item, ok never mind, my command will not work
[doublepost=1531851890][/doublepost]okay round two..
try this:
code_language.skript:
command /test:
    trigger:
        set {_test} to skull of player
        set nbt tag "display" of {_test} to "{Name:""Lime Arrow Right""},SkullOwner:{Id:""23b3f9dc-f02c-4ea8-a949-dbd56b03602c"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNGVmMzU2YWQyYWE3YjE2NzhhZWNiODgyOTBlNWZhNWEzNDI3ZTVlNDU2ZmY0MmZiNTE1NjkwYzY3NTE3YjgifX19""}]}}"
[doublepost=1531852927][/doublepost]OKAY... LAST TRY... i screwed that last one up.
It doesn't actually work

This works, I have tested it multiple times
This example has a gui
code_language.skript:
command /test:
    trigger:
        open virtual chest inventory to player
        set {_test} to skull of player with custom nbt "{display:{Name:""Lime Arrow Right""},SkullOwner:{Id:""23b3f9dc-f02c-4ea8-a949-dbd56b03602c"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNGVmMzU2YWQyYWE3YjE2NzhhZWNiODgyOTBlNWZhNWEzNDI3ZTVlNDU2ZmY0MmZiNTE1NjkwYzY3NTE3YjgifX19""}]}}}"
        format gui slot 0 of player with {_test}
 
code_language.skript:
command /test:
    trigger:
        make player execute command "give %player% skull 1 3 {display:{Name:""Lime Arrow Right""},SkullOwner:{Id:""23b3f9dc-f02c-4ea8-a949-dbd56b03602c"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNGVmMzU2YWQyYWE3YjE2NzhhZWNiODgyOTBlNWZhNWEzNDI3ZTVlNDU2ZmY0MmZiNTE1NjkwYzY3NTE3YjgifX19""}]}}}"
[doublepost=1531851675,1531851554][/doublepost]oh crap I see you want it as an item, ok never mind, my command will not work
[doublepost=1531851890][/doublepost]okay round two..
try this:
code_language.skript:
command /test:
    trigger:
        set {_test} to skull of player
        set nbt tag "display" of {_test} to "{Name:""Lime Arrow Right""},SkullOwner:{Id:""23b3f9dc-f02c-4ea8-a949-dbd56b03602c"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNGVmMzU2YWQyYWE3YjE2NzhhZWNiODgyOTBlNWZhNWEzNDI3ZTVlNDU2ZmY0MmZiNTE1NjkwYzY3NTE3YjgifX19""}]}}"
[doublepost=1531852927][/doublepost]OKAY... LAST TRY... i screwed that last one up.
It doesn't actually work

This works, I have tested it multiple times
This example has a gui
code_language.skript:
command /test:
    trigger:
        open virtual chest inventory to player
        set {_test} to skull of player with custom nbt "{display:{Name:""Lime Arrow Right""},SkullOwner:{Id:""23b3f9dc-f02c-4ea8-a949-dbd56b03602c"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNGVmMzU2YWQyYWE3YjE2NzhhZWNiODgyOTBlNWZhNWEzNDI3ZTVlNDU2ZmY0MmZiNTE1NjkwYzY3NTE3YjgifX19""}]}}}"
        format gui slot 0 of player with {_test}

Ok thank you, tomorrow I will test it, today is too late at night, but I don't want to drop this without some feedback, tomorrow I will edit this post to say if it worked or not. Thank you all
 
  • Like
Reactions: ShaneBee
Status
Not open for further replies.