Custom heads in 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 community!

    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!

SnowItzCold

Member
Aug 19, 2023
1
0
1
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==""}]}}}"



m87g-1-c8fe.png



Does anyone know how I can do this?

Script version: 2.6.4
Minecraft Version: Spigot 1.20.1
 
Code:
function main(p: player):
    create a gui with virtual chest inventory with 1 row named "Example":
        format gui slot 13 with player head with nbt from "{SkullOwner:{Id:""91a87f07-e075-4b85-b99a-3b0e8a0e5e32"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZDI2MTFhNjlhZjRmZDhhZDVlNmE0ZjYzMWUzMGJlOTk5MzJlMmEyMmU0ZTEwNTA2YmVhNjg0YmU2NDhlNjM0In19fQ==""}]}}}"
    open last gui to {_p}
this is through skript-gui, but instead of player head with custom nbt, it would be player head with nbt from.
 
Code:
function main(p: player):
    create a gui with virtual chest inventory with 1 row named "Example":
        format gui slot 13 with player head with nbt from "{SkullOwner:{Id:""91a87f07-e075-4b85-b99a-3b0e8a0e5e32"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZDI2MTFhNjlhZjRmZDhhZDVlNmE0ZjYzMWUzMGJlOTk5MzJlMmEyMmU0ZTEwNTA2YmVhNjg0YmU2NDhlNjM0In19fQ==""}]}}}"
    open last gui to {_p}
this is through skript-gui, but instead of player head with custom nbt, it would be player head with nbt from.
U mean %player% parsed as offline player’s skull