1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to add skulls/heads to GUI?

Discussion in 'Skript' started by jovanmunja, Sep 23, 2017.

Thread Status:
Not open for further replies.
  1. jovanmunja

    jovanmunja Member

    Joined:
    Jul 27, 2017
    Messages:
    22
    Likes Received:
    1
  2. Pikachu

    Supporter Addon Developer

    Joined:
    Jan 25, 2017
    Messages:
    871
    Likes Received:
    139
    Medals:
    MundoSK:
    Code (Skript):
    1. skin with value %string% signature %string%
    2.  
    3. skull of %skin%
     
  3. HackerOTVW

    HackerOTVW Active Member

    Joined:
    Sep 10, 2017
    Messages:
    91
    Likes Received:
    2
    Can you give me a specific example ? Pls
     
  4. jovanmunja

    jovanmunja Member

    Joined:
    Jul 27, 2017
    Messages:
    22
    Likes Received:
    1
    Can you give me the example with the skin I gave you please? :emoji_slight_smile:
     
    • Like Like x 1
  5. MCProHost

    MCProHost Active Member

    Joined:
    Sep 17, 2017
    Messages:
    80
    Likes Received:
    0
    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.
     
  6. YoshYz

    YoshYz Well-Known Member

    Joined:
    Jan 28, 2017
    Messages:
    694
    Likes Received:
    82
    Example:
    Code (Skript):
    1. 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.
     
    #6 YoshYz, Sep 25, 2017
    Last edited: Sep 26, 2017
    • Like Like x 1
  7. BrettPlayMC

    Supporter

    Joined:
    Jan 26, 2017
    Messages:
    715
    Likes Received:
    53
    How do you add a lore to this?
     
  8. WiebeHero

    WiebeHero Active Member

    Joined:
    Aug 23, 2017
    Messages:
    135
    Likes Received:
    5
    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 (Text):
    1.  
    2. 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
     
    • Like Like x 2
  9. MCProHost

    MCProHost Active Member

    Joined:
    Sep 17, 2017
    Messages:
    80
    Likes Received:
    0
    Thanks for the help
     
  10. WiebeHero

    WiebeHero Active Member

    Joined:
    Aug 23, 2017
    Messages:
    135
    Likes Received:
    5
    No problem anytime!
     
  11. Minecrafter

    Minecrafter Member

    Joined:
    Oct 20, 2017
    Messages:
    14
    Likes Received:
    0
    Hello, this does not work


    it give error
    Code (Skript):
    1. ':{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:')
     
  12. HackerOTVW

    HackerOTVW Active Member

    Joined:
    Sep 10, 2017
    Messages:
    91
    Likes Received:
    2
    Post your code
     
  13. Minecrafter

    Minecrafter Member

    Joined:
    Oct 20, 2017
    Messages:
    14
    Likes Received:
    0
    @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)
     
  14. HiddenDev

    HiddenDev Member

    Joined:
    Sep 19, 2017
    Messages:
    43
    Likes Received:
    2
    Just use this:

    Code (Skript):
    1. variables:
    2.     {HeadVariable} = "Herobrine"
    3.  
    4. command /test:
    5.     trigger:
    6.         wait 1 tick
    7.         set {HeadVariable} to {HeadVariable} parsed as offlineplayer
    8.         open chest with 1 row named "menu" to player
    9.         wait 1 tick
    10.         format slot 1 of player with skull of {HeadVariable} named "herobrine's head" to be unstealable
    Using Skript and SkQuery only.
     
  15. HackerOTVW

    HackerOTVW Active Member

    Joined:
    Sep 10, 2017
    Messages:
    91
    Likes Received:
    2
    Try:
    Code (Skript):
    1. format gui slot 1 of player with skull of ("Herobrine" parsed as an offline player) named "Herobrine's head" be unstealable
     
  16. Minecrafter

    Minecrafter Member

    Joined:
    Oct 20, 2017
    Messages:
    14
    Likes Received:
    0
    Guys, I need the Texture Value of the player.

    Texture Values look like this:

    eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYmQ2OWUwNmU1ZGFkZmQ4NGU1ZjNkMWMyMTA2M2YyNTUzYjJmYTk0NWVlMWQ0ZDcxNTJmZGM1NDI1YmMxMmE5In19fQ==

    But I'm not sure how to get it.
     
  17. Donut

    Donut Well-Known Member

    Joined:
    Mar 27, 2017
    Messages:
    1,340
    Likes Received:
    176
    Medals:
    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
     
  18. Minecrafter

    Minecrafter Member

    Joined:
    Oct 20, 2017
    Messages:
    14
    Likes Received:
    0
    [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 (Skript):
    1. [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?
     
  19. HackerOTVW

    HackerOTVW Active Member

    Joined:
    Sep 10, 2017
    Messages:
    91
    Likes Received:
    2
    Try this, then you can edit it for you:
    Code (Skript):
    1. 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 Like x 1
  20. Minecrafter

    Minecrafter Member

    Joined:
    Oct 20, 2017
    Messages:
    14
    Likes Received:
    0
    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 (Skript):
    1. 10:42:43    bcx    Reported exception thrown!
    2. f: Rendering item
    3.     at bnz.a(SourceFile:1088)
    4.     at bcx.av(SourceFile:991)
    5.     at bcx.a(SourceFile:396)
    6.     at net.minecraft.client.main.Main.main(SourceFile:124)
    7. Caused by: com.google.common.util.concurrent.UncheckedExecutionException: java.lang.NullPointerException
    8.     at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2201)
    9.     at com.google.common.cache.LocalCache.get(LocalCache.java:3934)
    10.     at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3938)
    11.     at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4821)
    12.     at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4827)
    13.     at bxk.a(SourceFile:126)
    14.     at bqn.a(SourceFile:81)
    15.     at bnx.a(SourceFile:67)
    16.     at bsu.a(SourceFile:152)
    17.     at bsu.a(SourceFile:328)
    18.     at bsu.a(SourceFile:363)
    19.     at bgl.a(SourceFile:248)
    20.     at bgl.a(SourceFile:106)
    21.     at bnz.a(SourceFile:1062)
    22.     ... 3 more
    23. Caused by: java.lang.NullPointerException
    24.     at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.getTextures(YggdrasilMinecraftSessionService.java:144)
    25.     at bxk$1.a(SourceFile:47)
    26.     at bxk$1.load(SourceFile:44)
    27.     at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3524)
    28.     at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2317)
    29.     at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2280)
    30.     at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2195)
    31.     ... 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.
     
    #20 Minecrafter, Nov 5, 2017
    Last edited: Nov 5, 2017
Thread Status:
Not open for further replies.

Share This Page

Loading...