Solved Special Skull

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

Aralwen

Active Member
May 26, 2017
164
14
18
25
I would like to know if anyone knows how to get these heads

n1zKRFg.png


Thank's !
 
Last edited:
If you want to use heads you can simply use the expression "skull of %player%". This will only work for heads based on player names. Heads with a Skin URL require some NBT magic. For that you can use SkStuff. https://minecraft-heads.com/
For NBT:
code_language.skript:
set {_item} to player head with nbt "{SkullOwner:{Id:""%randomUUID()%"",Properties:{textures:[{Value:""%{_skinURLhere}%""}]}}}"

A UUID is required if you're crafting a new player head with a skin URL. Use this UUID generator of mine:
code_language.skript:
function randomUUID() :: text:
    add "a", "b", "c", "d", "e", "f", "0", "1", "2", "3", "4", "5", "6", "7", "8" and "9" to {_chars::*}
    set {_uuid} to a random element out of {_chars::*}
    loop 35 times:
        if loop-number = 8, 13, 18 or 23:
            set {_uuid} to "%{_uuid}%-"
        else:
            set {_uuid} to "%{_uuid}%%a random element out of {_chars::*}%"
    return {_uuid}

The negative item stacks i unfortunately couldn't figure out. Hope someone else knows about this
 
Last edited:
If you want to use heads you can simply use the expression "skull of %player%". This will only work for heads based on player names. Heads with a Skin URL require some NBT magic. For that you can use SkStuff. https://minecraft-heads.com/
For NBT:
code_language.skript:
set {_item} to player head with nbt "{SkullOwner:{Id:""%randomUUID()%"",Properties:{textures:[{Value:""%{_skinURLhere}%""}]}}}"

A UUID is required if you're crafting a new player head with a skin URL. Use this UUID generator of mine:
code_language.skript:
function randomUUID() :: text:
    add "a", "b", "c", "d", "e", "f", "0", "1", "2", "3", "4", "5", "6", "7", "8" and "9" to {_chars::*}
    set {_uuid} to a random element out of {_chars::*}
    loop 35 times:
        if loop-number = 8, 13, 18 or 23:
            set {_uuid} to "%{_uuid}%-"
        else:
            set {_uuid} to "%{_uuid}%%a random element out of {_chars::*}%"
    return {_uuid}

The negative item stacks i unfortunately couldn't figure out. Hope someone else knows about this
Thanks for the answer, but I get an error :/

o3wBJKZ.png


code_language.skript:
function randomUUID() :: text:
    add "a", "b", "c", "d", "e", "f", "0", "1", "2", "3", "4", "5", "6", "7", "8" and "9" to {_chars::*}
    set {_uuid} to a random element out of {_chars::*}
    loop 35 times:
        if loop-number = 8, 13, 18 or 23:
            set {_uuid} to "%{_uuid}%-"
        else:
            set {_uuid} to "%{_uuid}%%a random element out of {_chars::*}%"
    return {_uuid}
    
command /try:
    trigger:
        set {_item} to player head with nbt "{SkullOwner:{Id:""%randomUUID()%"",Properties:{textures:[{Value:""%{_skinURLhere}%""}]}}}"
 
Last edited:
Status
Not open for further replies.