Set block 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 community!

    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.

Duetro

Active Member
Jan 26, 2017
138
51
28
I am trying to set a player head with custom nbt, but it doesn't work.


code_language.skript:
set block at {_l} to player head with custom nbt "{SkullOwner:{Id:""c79c0fba-aae5-4d8a-9d01-b3e256c41dfe"",Properties:{textures:[0:{Signature:""signed"",Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYWQ1ZmNkMzEyODdkNjNlNzgyNmVhNzYwYTdlZDE1NGY2ODVkZmRjN2YzNDY1NzMyYTk2ZTYxOWIyZTEzNDcifX19""}]}}}"
just sets the block to air

code_language.skript:
set block at {_l} to player head
sets the block to a skeleton skull

Can someone help me please?
 
Out forgot that the head type is specified in the nbt, you have to add "{Skull type:3b}" somewhere in the nbt.
 
Status
Not open for further replies.