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.

Solved How to format slot in menu as a non-player head?

Discussion in 'Skript' started by Funtime, Jul 24, 2017.

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

    Funtime Well-Known Member

    Joined:
    Apr 24, 2017
    Messages:
    54
    Likes Received:
    0
    Does anyone know how to format the slot of a menu with a non-player head from http://minecraft-heads.com/
    Thanks

     
  2. Best Answer:
    Post #4 by ShaneBee, Jul 25, 2017
  3. ShaneBee

    Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,157
    Likes Received:
    170
    hm?

    set slot 0 of player's current inventory to player skull
     
  4. ShaneBee

    Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,157
    Likes Received:
    170
    He means a non-player specific skull. a decorative one normally obtained
    via lengthy summon commands
     
    • Agree Agree x 1
  5. ShaneBee

    Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,157
    Likes Received:
    170
    Code (Skript):
    1. #Tuske
    2. format gui slot 0 of player with skull of player with nbt "NBT" to do nothing
    3. # SkQuery
    4. format slot 0 of player with skull of player with nbt "NBT" to be unstealable
     
    #4 ShaneBee, Jul 25, 2017
    Last edited by a moderator: Jul 25, 2017
    • Like Like x 1
  6. ShaneBee

    Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,157
    Likes Received:
    170
    What I did as a quick-fix for this (I only needed to have 8 heads) is I set multiple variables has heads, and applied the unique nbt data to each head using SkStuff. Like this:

    Code (Skript):
    1. set {DecoHead::Pancakes} to 397:3 with nbt "{display:{Name:""Pancakes""},SkullOwner:{Id:""78f0c232-7d83-4987-9e34-e15f421ceef9"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMzQ3ZjRmNWE3NGM2NjkxMjgwY2Q4MGU3MTQ4YjQ5YjJjZTE3ZGNmNjRmZDU1MzY4NjI3ZjVkOTJhOTc2YTZhOCJ9fX0=""}]}}}"
    The unique nbt data was taken straight from Freshcoal.
     
  7. ShaneBee

    Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,157
    Likes Received:
    170
    options:
    1: {display:{Name:"Rainbow Cube"},SkullOwner:{Id:"7d0630c3-23bf-4e0b-b4ad-b4f5bef7b97f",Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvY2ZmYzk3N2NjN2UxMGU1NjRhMDk2MzhhNTNiYmM0YzU0YzljOGRhYzc0NTBiYTNkZmEzYzkwOTlkOTRmNSJ9fX0="}]}}}

    command /pleasework:
    trigger:
    open chest with 1 row named "&e&lPLEASE WORK!" to player
    format slot 0 of player with skull of player with nbt "{@1}" to be unstealable

    [02:51:35 ERROR]: ':{Name:"Rainbow Cube"},SkullOwner:{Id:"7d0630c3-23bf-4e0b-b4ad-b4f5bef7b97f",Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvY2ZmYzk3N2NjN2UxMGU1NjRhMDk2MzhhNTNiYmM0YzU0YzljOGRhYzc0NTBiYTNkZmEzYzkwOTlkOTRmNSJ9fX0="}]}}}" to be unstealable' is not a valid item data (pleasework.sk, line 7: format slot 0 with skull of player with nbt "{@1}" to be unstealable')

    [02:51:35 INFO]: [Skript] Encountered 1 error while reloading pleasework.sk!

    http://minecraft-heads.com/custom/heads/miscellaneous/698-rainbow-cube
     
    #6 ShaneBee, Jul 25, 2017
    Last edited by a moderator: Jul 25, 2017
  8. ShaneBee

    Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,157
    Likes Received:
    170
    You need to put double "" , into the nbt " "
    Example:
    Code (Skript):
    1. "{display:{Name:""Voltorb""},SkullOwner:{Id:""9aa4abee-bee6-4770-811d-f8b02fa30b43"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZTJmM2Y5Y2NhNzdjNzI1MjE3ZTQ1YWQ0ZWVlZWZmYTA1NjVmODJiODY2YWM2Nzk5OWI0M2MzYTk3MzExNjI4YyJ9fX0=""}]}}}"
     
  9. ShaneBee

    Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,157
    Likes Received:
    170
    [03:01:12 ERROR]: ':{Name:""Voltorb""},SkullOwner:{Id:""9aa4abee-bee6-4770-811d-f8b02fa30b43"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZTJmM2Y5Y2NhNzdjNzI1MjE3ZTQ1YWQ0ZWVlZWZmYTA1NjVmODJiODY2YWM2Nzk5OWI0M2MzYTk3MzExNjI4YyJ9fX0=""}]}}}" to be unstealable' is not a valid item data (pleasework.sk, line 7: format slot 0 of player with skull of player with nbt "{@1}" to be unstealable')

    [03:01:12 INFO]: [Skript] Encountered 1 error while reloading pleasework.sk!
     
  10. ShaneBee

    Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,157
    Likes Received:
    170
    To me it works well.
    Forgot to told you that you need skStuff for NBT stuff
     
  11. ShaneBee

    Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,157
    Likes Received:
    170
    Ahh, hang on just restarting my server
    --- Double Post Merged, Jul 25, 2017, Original Post Date: Jul 25, 2017 ---
    Strange - I tried your example and it works well but the rainbow head shows a steve skin.

    Here is what I'm trying to use:

    {display:{Name:""Rainbow Cube"},SkullOwner:{Id:""7d0630c3-23bf-4e0b-b4ad-b4f5bef7b97f"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvY2ZmYzk3N2NjN2UxMGU1NjRhMDk2MzhhNTNiYmM0YzU0YzljOGRhYzc0NTBiYTNkZmEzYzkwOTlkOTRmNSJ9fX0=""}]}}}
    --- Double Post Merged, Jul 25, 2017 ---
    Never mind, it works :emoji_slight_smile:
    Thanks to everyone for your help, I appreicate it!
     
Thread Status:
Not open for further replies.
Loading...