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.

Custom Player Heads In GUI

Discussion in 'Skript' started by ItsMCB, May 28, 2018.

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

    ItsMCB Member

    Joined:
    May 20, 2018
    Messages:
    46
    Likes Received:
    1
    Is it possible to put a custom head into a chest GUI? I have been searching the forums but have't found what I an looking for. Here is the give code for the custom head.

    Code (Skript):
    1. /give @p skull 1 3 {display:{Name:"Money Bag"},SkullOwner:{Id:"7a0345b9-b55f-462c-8fb5-0690193ec00d",Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZDA0NzE5YjNiOTdkMTk1YTIwNTcxOGI2ZWUyMWY1Yzk1Y2FmYTE2N2U3YWJjYTg4YTIxMDNkNTJiMzdkNzIyIn19fQ=="}]}}}
    Thanks for the help everyone :emoji_grinning:
     
  2. Runakai

    Moderator Supporter

    Joined:
    Apr 27, 2018
    Messages:
    497
    Likes Received:
    31
    You can do this with skstuff I think (nbt)
     
  3. Black_Eyes

    Black_Eyes Member

    Joined:
    Mar 4, 2017
    Messages:
    19
    Likes Received:
    3
    There is an expression for that...
    Code (Skript):
    1. format gui slot 13 of player with skull of "Notch" parsed as player to do nothing
     
  4. Uzumaki

    Uzumaki Well-Known Member

    Joined:
    Feb 20, 2017
    Messages:
    310
    Likes Received:
    10
    "custom"
     
  5. Black_Eyes

    Black_Eyes Member

    Joined:
    Mar 4, 2017
    Messages:
    19
    Likes Received:
    3
    Oh, ok, I got it now^^
     
  6. Runakai

    Moderator Supporter

    Joined:
    Apr 27, 2018
    Messages:
    497
    Likes Received:
    31
    Code (Skript):
    1.  
    2. command /head:
    3.     trigger:
    4.         set {_nbt} to "{SkullOwner:{Id:""91a87f07-e075-4b85-b99a-3b0e8a0e5e32"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZDI2MTFhNjlhZjRmZDhhZDVlNmE0ZjYzMWUzMGJlOTk5MzJlMmEyMmU0ZTEwNTA2YmVhNjg0YmU2NDhlNjM0In19fQ==""}]}}}"
    5.         open virtual chest inventory with size 1 named "&8» &1TEST &8«" to the sender
    6.         format gui slot 0 of the player with player head with custom nbt "%{_nbt}%"
     
    #6 Runakai, May 28, 2018
    Last edited: May 28, 2018
  7. ItsMCB

    ItsMCB Member

    Joined:
    May 20, 2018
    Messages:
    46
    Likes Received:
    1
    What are the dependencies? I have Skript, SkStuff, Umbaska, Skellett, TuSKe, etc on my server so it should be working, right? (Sorry I'm "new" to Skripting, so I might have some dumb questions xD)
    upload_2018-5-28_10-56-20.png
     
  8. FinalPlayer024

    FinalPlayer024 Active Member

    Joined:
    Oct 19, 2017
    Messages:
    95
    Likes Received:
    4
    You forgot a "
    Code (Skript):
    1. format gui slot 0 of player with player's skull with custom nbt "%{_nbt}%"
     
  9. ItsMCB

    ItsMCB Member

    Joined:
    May 20, 2018
    Messages:
    46
    Likes Received:
    1
    It still doesn't want to work..?
    Code (Skript):
    1. command /head:
    2.     trigger:
    3.         set {_nbt} to "{SkullOwner:{Id:""91a87f07-e075-4b85-b99a-3b0e8a0e5e32"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZDI2MTFhNjlhZjRmZDhhZDVlNmE0ZjYzMWUzMGJlOTk5MzJlMmEyMmU0ZTEwNTA2YmVhNjg0YmU2NDhlNjM0In19fQ==""}]}}}"
    4.         open virtual chest inventory with size 1 named "&8» &1TEST &8«" to the sender
    5.         format gui slot 0 of player with player's skull with custom nbt "%{_nbt}%"
    upload_2018-5-28_11-6-0.png
     
  10. Uzumaki

    Uzumaki Well-Known Member

    Joined:
    Feb 20, 2017
    Messages:
    310
    Likes Received:
    10
    Code (Skript):
    1. command /menu:
    2.     trigger:      
    3.         open virtual chest inventory with size 6 named "" to player
    4.         wait 2 ticks
    5.         make gui slot 0 of player with player head with custom nbt "{SkullOwner:{Id:""91a87f07-e075-4b85-b99a-3b0e8a0e5e32"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZDI2MTFhNjlhZjRmZDhhZDVlNmE0ZjYzMWUzMGJlOTk5MzJlMmEyMmU0ZTEwNTA2YmVhNjg0YmU2NDhlNjM0In19fQ==""}]}}}" named "&8 " with lore "" to do nothing
    6.            
     
  11. ItsMCB

    ItsMCB Member

    Joined:
    May 20, 2018
    Messages:
    46
    Likes Received:
    1
    What are the dependencies? It still rejects me like my ex wife.... (jk xD)
    upload_2018-5-29_16-0-10.png
     
  12. Runakai

    Moderator Supporter

    Joined:
    Apr 27, 2018
    Messages:
    497
    Likes Received:
    31
    Well I have MundoSK; Skellet; SkUtilities, Skstuff, Skript(hehe), Wildskript, Protocollib try using them ^^
     
  13. ItsMCB

    ItsMCB Member

    Joined:
    May 20, 2018
    Messages:
    46
    Likes Received:
    1
    Really? I have all of those :/
     
  14. Black_Eyes

    Black_Eyes Member

    Joined:
    Mar 4, 2017
    Messages:
    19
    Likes Received:
    3
  15. Uzumaki

    Uzumaki Well-Known Member

    Joined:
    Feb 20, 2017
    Messages:
    310
    Likes Received:
    10
    skstuff and tuske, and skript dev27 for 1.8.8 or last version of skript for higher versions.
     
    #15 Uzumaki, May 30, 2018
    Last edited: May 30, 2018
Thread Status:
Not open for further replies.

Share This Page

Loading...