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

  • 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.
code_language.skript:
#Tuske
format gui slot 0 of player with skull of player with nbt "NBT" to do nothing
# SkQuery
format slot 0 of player with skull of player with nbt "NBT" to be unstealable
 
Last edited by a moderator:
  • Like
Reactions: Funtime
Does anyone know how to format the slot of a menu with a non-player head from http://minecraft-heads.com/
Thanks

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_language.skript:
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.
 
code_language.skript:
#Tuske
format gui slot 0 of player with skull of player with nbt "NBT" to do nothing
# SkQuery
format slot 0 of player with skull of player with nbt "NBT" to be unstealable

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
 
Last edited by a moderator:
You need to put double "" , into the nbt " "
Example:
code_language.skript:
"{display:{Name:""Voltorb""},SkullOwner:{Id:""9aa4abee-bee6-4770-811d-f8b02fa30b43"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZTJmM2Y5Y2NhNzdjNzI1MjE3ZTQ1YWQ0ZWVlZWZmYTA1NjVmODJiODY2YWM2Nzk5OWI0M2MzYTk3MzExNjI4YyJ9fX0=""}]}}}"
 
You need to put double "" , into the nbt " "
Example:
code_language.skript:
"{display:{Name:""Voltorb""},SkullOwner:{Id:""9aa4abee-bee6-4770-811d-f8b02fa30b43"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZTJmM2Y5Y2NhNzdjNzI1MjE3ZTQ1YWQ0ZWVlZWZmYTA1NjVmODJiODY2YWM2Nzk5OWI0M2MzYTk3MzExNjI4YyJ9fX0=""}]}}}"

[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!
 
To me it works well.
Forgot to told you that you need skStuff for NBT stuff
Ahh, hang on just restarting my server
[doublepost=1500945167,1500944905][/doublepost]
To me it works well.
Forgot to told you that you need skStuff for NBT stuff
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=""}]}}}
[doublepost=1500945672][/doublepost]Never mind, it works :emoji_slight_smile:
Thanks to everyone for your help, I appreicate it!
 
Status
Not open for further replies.