Solved Custom Head in a GUI

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

Squarebuilder

Member
Aug 6, 2020
10
0
1
23
Hi there,

I've been trying to get custom heads (e.g. https://minecraft-heads.com/custom-heads/miscellaneous/4318-twitter) into a GUI for a few weeks now. I tried this code among others:

Code:
command /gui:
    trigger:
        open virtual chest inventory with 1 row named "&6GUI" to the sender
        format gui slot 0 of the player with player head with custom nbt "{SkullOwner:{Id:""91a87f07-e075-4b85-b99a-3b0e8a0e5e32"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZDI2MTFhNjlhZjRmZDhhZDVlNmE0ZjYzMWUzMGJlOTk5MzJlMmEyMmU0ZTEwNTA2YmVhNjg0YmU2NDhlNjM0In19fQ==""}]}}}"

errorMessage.png

m87g-1-c8fe.png


Does anyone know how I can do this?

Script version: 2.5.3
Minecraft Version: Spigot 1.12.2
 
Last edited:
EDIT: Didn't see that you were on 1.12.2, I will reply again soon
[doublepost=1611491369,1611490700][/doublepost]
code_language.skript:
format gui slot 0 of the player with player head with nbt "{display:{Name:""Twitter""},SkullOwner:{Id:""11fce6c7-71ad-464e-98e7-c8e579de4758"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMzY4NWEwYmU3NDNlOTA2N2RlOTVjZDhjNmQxYmEyMWFiMjFkMzczNzFiM2Q1OTcyMTFiYjc1ZTQzMjc5In19fQ==""}]}}}"
 
Last edited:
EDIT: I forgot that you were on 1.12.2, I will reply again soon
[doublepost=1611491369,1611490700][/doublepost]
code_language.skript:
format gui slot 0 of the player with player head with nbt "{display:{Name:""Twitter""},SkullOwner:{Id:""11fce6c7-71ad-464e-98e7-c8e579de4758"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMzY4NWEwYmU3NDNlOTA2N2RlOTVjZDhjNmQxYmEyMWFiMjFkMzczNzFiM2Q1OTcyMTFiYjc1ZTQzMjc5In19fQ==""}]}}}"
This should be correct, it's just that when you reply twice in a row it merges your post.
 
EDIT: Didn't see that you were on 1.12.2, I will reply again soon
[doublepost=1611491369,1611490700][/doublepost]
code_language.skript:
format gui slot 0 of the player with player head with nbt "{display:{Name:""Twitter""},SkullOwner:{Id:""11fce6c7-71ad-464e-98e7-c8e579de4758"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMzY4NWEwYmU3NDNlOTA2N2RlOTVjZDhjNmQxYmEyMWFiMjFkMzczNzFiM2Q1OTcyMTFiYjc1ZTQzMjc5In19fQ==""}]}}}"

That does not work. Do I need any addons for this?

errorMessage2.png

errorMessage2
 
Yes, i have TuSKe, SkQuery and Skellet. I can try later without the addons.
 

Attachments

  • upload_2021-1-26_10-0-0.png
    upload_2021-1-26_10-0-0.png
    312 bytes · Views: 168
Perhaps the problem is TuSKe? It is outdated and was not updated for Minecraft 1.12.
By the way, I recommend making Vanilla GUIs instead of using addons for GUIs.
 
Unless your tuske isn't 1.8.3 pikachu patch, your current code should be working fine. However, You would need to install the skbee addon to use nbts.
 
It finally works. Thank you both very much.

For someone who reads this later: That was the final code:

Code:
command /vanillaGUI:
    description: The best way of doing something.
    trigger:
        set metadata tag "vanillaGUI" of player to chest inventory with 3 rows named "&7Hello There"
        set slot 0 of metadata tag "vanillaGUI" of player to player head with nbt "{display:{Name:""Twitter""},SkullOwner:{Id:""11fce6c7-71ad-464e-98e7-c8e579de4758"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMzY4NWEwYmU3NDNlOTA2N2RlOTVjZDhjNmQxYmEyMWFiMjFkMzczNzFiM2Q1OTcyMTFiYjc1ZTQzMjc5In19fQ==""}]}}}"
        open (metadata tag "vanillaGUI" of player) to player
 
Status
Not open for further replies.