Solved Getting Custom Skulls with nbt

  • 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.

FightingPlay

Member
Feb 26, 2017
40
1
0
22
Skript Version: 2.2-dev20
Skript Author: Bensku
Minecraft Version: 1.8.8

---
Hey there,
Because SKQuery 4 is throwing much errors on reload I cannot use more the "custom skull "" " expression.
So I tried to use custom nbt from a head database.
But the head/skull is a steve skull or a skeleton skull but not the fire skull I want.

Can someone help me?

Full Code:
Note: If the code is too large, feel free to use a pasting website (Pastebin or hastebin)
Note: If a variable is being set in another script, but not shown, please explain how they are being set


code_language.skript:
set {_item} to skull
add "{SkullOwner:{Id:""f6dfc929-30da-45f4-b9d5-9ed06e28022f"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNDA4MGJiZWZjYTg3ZGMwZjM2NTM2YjY1MDg0MjVjZmM0Yjk1YmE2ZThmNWU2YTQ2ZmY5ZTljYjQ4OGE5ZWQifX19""}]}}" to nbt of {_item}
set helmet of last spawned entity to {_item}

Errors on Reload:

code_language.skript:
None

Console Errors: (if applicable)

code_language.skript:
None

Other Useful Info:

Addons using (including versions):
SkStuff 1.6.4.1
SkRayFall 1.8
SkQuery 3.21.4
Skellett 1.5.6

Troubleshooting:

Have you tried searching the docs? Yes
Have you tried searching the forums? Yes
What other methods have you tried to fix it?
Using skull and head
 
Not sure how SkStuff handles adding NBT to stuff stored in a variable, just do it in one line:

code_language.skript:
set {_item} to skull with custom nbt "{SkullOwner:{Id:""f6dfc929-30da-45f4-b9d5-9ed06e28022f"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNDA4MGJiZWZjYTg3ZGMwZjM2NTM2YjY1MDg0MjVjZmM0Yjk1YmE2ZThmNWU2YTQ2ZmY5ZTljYjQ4OGE5ZWQifX19""}]}}"
 
Status
Not open for further replies.