How to add skulls/heads to 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.
MundoSK:
code_language.skript:
skin with value %string% signature %string%

skull of %skin%
 
Is omega a player name? You can only do this if a player has that akin, then you can phrase the players name as an offline player.
 
Example:
code_language.skript:
make a gui slot 22 of player with player's skull with nbt "{display:{Name:""Oak Wood Arrow Left""},SkullOwner:{Id:""2391d533-ab09-434d-9980-adafde4057a3"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYmQ2OWUwNmU1ZGFkZmQ4NGU1ZjNkMWMyMTA2M2YyNTUzYjJmYTk0NWVlMWQ0ZDcxNTJmZGM1NDI1YmMxMmE5In19fQ==""}]}}}" to do nothing

You need skStuff for nbt stuff.
 
Last edited:
  • Like
Reactions: HackerOTVW
Example:
code_language.skript:
make a gui slot 22 of player with player's skull with nbt "{display:{Name:""Oak Wood Arrow Left""},SkullOwner:{Id:""2391d533-ab09-434d-9980-adafde4057a3"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYmQ2OWUwNmU1ZGFkZmQ4NGU1ZjNkMWMyMTA2M2YyNTUzYjJmYTk0NWVlMWQ0ZDcxNTJmZGM1NDI1YmMxMmE5In19fQ==""}]}}}" to do nothing

You need skStuff for nbt stuff.
How do you add a lore to this?
 
After the nbt put it like this:
This is how i did it with items though so maybe it doesnt work but u can try.
Code:
make a gui slot 22 of player with player's skull with nbt "{display:{Name:""Oak Wood Arrow Left""},SkullOwner:{Id:""2391d533-ab09-434d-9980-adafde4057a3"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYmQ2OWUwNmU1ZGFkZmQ4NGU1ZjNkMWMyMTA2M2YyNTUzYjJmYTk0NWVlMWQ0ZDcxNTJmZGM1NDI1YmMxMmE5In19fQ==""}]}}}" with lore "I dont know" to do nothing
 
Hello, this does not work


it give error
code_language.skript:
':{Name:""Oak Wood Arrow Left""},SkullOwner:{Id:""2391d533-ab09-434d-9980-adafde4057a3"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYmQ2OWUwNmU1ZGFkZmQ4NGU1ZjNkMWMyMTA2M2YyNTUzYjJmYTk0NWVlMWQ0ZDcxNTJmZGM1NDI1YmMxMmE5In19fQ==""}]}}}" to run' is not a valid item data (data manager.sk, line 20: format a gui slot 22 of player with player's skull with nbt "{display:{Name:""Oak Wood Arrow Left""},SkullOwner:{Id:""2391d533-ab09-434d-9980-adafde4057a3"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYmQ2OWUwNmU1ZGFkZmQ4NGU1ZjNkMWMyMTA2M2YyNTUzYjJmYTk0NWVlMWQ0ZDcxNTJmZGM1NDI1YmMxMmE5In19fQ==""}]}}}" to run:')
 
Hello, this does not work


it give error
code_language.skript:
':{Name:""Oak Wood Arrow Left""},SkullOwner:{Id:""2391d533-ab09-434d-9980-adafde4057a3"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYmQ2OWUwNmU1ZGFkZmQ4NGU1ZjNkMWMyMTA2M2YyNTUzYjJmYTk0NWVlMWQ0ZDcxNTJmZGM1NDI1YmMxMmE5In19fQ==""}]}}}" to run' is not a valid item data (data manager.sk, line 20: format a gui slot 22 of player with player's skull with nbt "{display:{Name:""Oak Wood Arrow Left""},SkullOwner:{Id:""2391d533-ab09-434d-9980-adafde4057a3"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYmQ2OWUwNmU1ZGFkZmQ4NGU1ZjNkMWMyMTA2M2YyNTUzYjJmYTk0NWVlMWQ0ZDcxNTJmZGM1NDI1YmMxMmE5In19fQ==""}]}}}" to run:')
Post your code
 
@HackerOTVW it works now, but i want to put "Herobrine"'s head (i still want to keep the nbt stuff, i just want to know how i can get the Texture Value of "Herobrine" and place it in the NBT)
 
Just use this:

code_language.skript:
variables:
    {HeadVariable} = "Herobrine"

command /test:
    trigger:
        wait 1 tick
        set {HeadVariable} to {HeadVariable} parsed as offlineplayer
        open chest with 1 row named "menu" to player
        wait 1 tick
        format slot 1 of player with skull of {HeadVariable} named "herobrine's head" to be unstealable

Using Skript and SkQuery only.
 
Try:
code_language.skript:
format gui slot 1 of player with skull of ("Herobrine" parsed as an offline player) named "Herobrine's head" be unstealable
 
Guys, I need the Texture Value of the player.

Texture Values look like this:

eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYmQ2OWUwNmU1ZGFkZmQ4NGU1ZjNkMWMyMTA2M2YyNTUzYjJmYTk0NWVlMWQ0ZDcxNTJmZGM1NDI1YmMxMmE5In19fQ==

But I'm not sure how to get it.
 
Guys, I need the Texture Value of the player.

Texture Values look like this:

eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYmQ2OWUwNmU1ZGFkZmQ4NGU1ZjNkMWMyMTA2M2YyNTUzYjJmYTk0NWVlMWQ0ZDcxNTJmZGM1NDI1YmMxMmE5In19fQ==

But I'm not sure how to get it.
no you dont need it, the player named Herobrine has the Herobrine skin so its easier to just use that

if you really want to use texture, pikachu showed me this website https://mineskin.org to get the texture signature and value
 
[15:48:26 ERROR]: ':{Name:""Test""},SkullOwner:{Id:""97d1ca03-8958-4dea-80fa-f4019ebb5d51"",Properties:{textures:[{Value:""%{_value}%""}]}}}" with lore "awesome" to run' is not a valid item data (test.sk, line 14: format gui slot 3 of player with {_pplayer}'s skull with nbt "{display:{Name:""Test""},SkullOwner:{Id:""97d1ca03-8958-4dea-80fa-f4019ebb5d51"",Properties:{textures:[{Value:""%{_value}%""}]}}}" with lore "awesome" to run:')

code_language.skript:
[15:48:26 ERROR]: ':{Name:""Test""},SkullOwner:{Id:""97d1ca03-8958-4dea-80fa-f4019ebb5d51"",Properties:{textures:[{Value:""%{_value}%""}]}}}" with lore "awesome" to run' is not a valid item data (test.sk, line 14: format gui slot 3 of player with {_pplayer}'s skull with nbt "{display:{Name:""Test""},SkullOwner:{Id:""97d1ca03-8958-4dea-80fa-f4019ebb5d51"",Properties:{textures:[{Value:""%{_value}%""}]}}}" with lore "awesome" to run:')

why doesn't this work?
 
Try this, then you can edit it for you:
code_language.skript:
format gui slot 1 of player with player's skull with nbt "{display:{Name:""Test""},SkullOwner:{Id:""d3610225-332c-4b5d-8ed2-2052553f1140"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvY2MzNzY2OGQ1ZWFlMThiYTc2NmNkNWM4ZWJjNzVjNDhkZTFiYTQ0Y2JlNDg5ZDgyOWE1ZWNhODY5MWJmNTU2In19fQ==""}]}}}" with lore "&eTest Lore" to close
 
  • Like
Reactions: Minecrafter
It crashes for
1.8.9, 1.9, 1.10

It works for

1.11, 1.12

@HackerOTVW, @Donut Here is the error log from Minecraft Game output when opening the GUI with the NBT head on 1.10.2:
code_language.skript:
10:42:43    bcx    Reported exception thrown!
f: Rendering item
    at bnz.a(SourceFile:1088)
    at bcx.av(SourceFile:991)
    at bcx.a(SourceFile:396)
    at net.minecraft.client.main.Main.main(SourceFile:124)
Caused by: com.google.common.util.concurrent.UncheckedExecutionException: java.lang.NullPointerException
    at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2201)
    at com.google.common.cache.LocalCache.get(LocalCache.java:3934)
    at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3938)
    at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4821)
    at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4827)
    at bxk.a(SourceFile:126)
    at bqn.a(SourceFile:81)
    at bnx.a(SourceFile:67)
    at bsu.a(SourceFile:152)
    at bsu.a(SourceFile:328)
    at bsu.a(SourceFile:363)
    at bgl.a(SourceFile:248)
    at bgl.a(SourceFile:106)
    at bnz.a(SourceFile:1062)
    ... 3 more
Caused by: java.lang.NullPointerException
    at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.getTextures(YggdrasilMinecraftSessionService.java:144)
    at bxk$1.a(SourceFile:47)
    at bxk$1.load(SourceFile:44)
    at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3524)
    at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2317)
    at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2280)
    at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2195)
    ... 16 more

The server is 1.8.9, but it has viaversion which allows players from 1.8.9 to 1.12 to come onto the server.
 
Last edited:
Status
Not open for further replies.