Placing player head on the floor | signature/value nbt tag converter?

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

LMC

New Member
Feb 24, 2017
9
0
0
hey guys I try to place a player head with a skin and a rotation at a location.
#1: "player head"
code_language.skript:
set block at {_playerhead} to player head
> nothing happened
#2: "floor head"
code_language.skript:
set block at {_playerhead} to floor head
> skeleton skull placed on the floor
#3: "floor head:3" (maybe for rotation)
code_language.skript:
set block at {_playerhead} to floor head:3
> error: latter is not an item type
#4: "_mob_head_block"
code_language.skript:
set block at {_playerhead} to _mob_head_block
> skeleton skull placed on the floor just like #2
#5: "_mob_head_block with NBT"
code_language.skript:
set block at {_playerhead} to _mob_head_block with custom nbt "{SkullOwner:{Id:""c79c0fba-aae5-4d8a-9d01-b3e256c41dfe"",Properties:{textures:[0:{Signature:""signed"",Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYWQ1ZmNkMzEyODdkNjNlNzgyNmVhNzYwYTdlZDE1NGY2ODVkZmRjN2YzNDY1NzMyYTk2ZTYxOWIyZTEzNDcifX19""}]}},SkullType:3,Rot:0}"
> The block gets replaced with air

Can someone help me pls?
 
maybe try

code_language.skript:
set block at {_playerhead} to ("%player%" parsed as offline player)'s skull
 
Hmm... are you trying to make maybe Top Head? If yes. so ... i got an idea now.

You place the Head at the location, (This will never be break.) and now with skript set nbt of location ... to "skullowner...."
 
I figured it out. Thx anyways!
 
Last edited by a moderator:
Could you maybe tell it? Maybe someone have the problem too? Would be nice.
 
First I looked at the nbt of a hand placed playerhead something like:
code_language.skript:
set {nbttest} to "%nbt of clicked block%"
for placing this head I wrote
code_language.skript:
on rightclick with bowl:
    set {_headloc} to location of clicked block
   set block at {_headloc} to floor head
   add "%{nbttest}%" to nbt of event-block
Now I'm splitting up the NBT (Because I want to place the head of a plot owner). Something like this:
code_language.skript:
set {_nbtedit::*} to {nbttest} split at """"
set {_nbtedit:5} to "I will finish this asap"
[doublepost=1498317455,1498314514][/doublepost]Here is the nbt data of one head.
code_language.skript:
{Owner:{Id:"youruuid",Properties:{textures:[0:{Signature:"Pn5xJJDaW4GcnJF8Jf7FNY2ERWLs6pMz7le51/M5mIUxfy7l7dqBWcmPWGw/CDunx9bfnl+7w9EqJJFTqT2nE8B4H0MnwP/eln8OWh5aKELtDbSCC5Vybh57mVivNL2xw7puWwobHyIBIQlK7erttuynWvAVHoFqLwp84wdKnzBROM11TWZEEgqbtYeXDvY5qfCSTFyDQ3yHCCJ7d73tfJsssgQM9i9fC1JUbRHK9f4sivvrUiWOb9tXkCrGT+OySdTPZVQkPUMMrv1BCFcaDot/WAXCGuQ3GOkfZMEFb8ENphXZbKnxbGXCFvptKxUjb6j/xD7/f/YAMSY0ktDg/Fr6WEJUQIzvzu6YeP/hZYkPRPTlQTN/aN9WIoe/mmUZUdIOfmYDfp+MrXqtiRuQPDQVKKp/2IuiesSb8t8MjKGWpTlMX2cQUMgh0J/VPOF8Cm5hD1XblRCFjvbQF/B4I+HlyQ+GuaM7G5SNNJHnDXRCb+MmZpf7R0ibjL0HbfaW33RTZNkENNRa7TnvLH+x/i878IFs9taWll7cbqKN5lyoiDquqcv0/rBLnAeYzsASsaNAE98ovnKVjvcHYxExhKEl4q/aqUXCQ0GEZflq9CrBypeQeXUjikSYwblFmyOZlCRrqOquZon+vZ2emFhyZvTZXoKOD7XK4eeyfbIN0TQ=",Value:"eyJ0aW1lc3RhbXAiOjE0OTgzMTMwNTQ4NDIsInByb2ZpbGVJZCI6IjcwZjgzYWQ4NDI3OTQyNmNhMjIwNTExMjljN2E5ZjBhIiwicHJvZmlsZU5hbWUiOiJSZWRzdG9uZWZyZWFrMjYiLCJzaWduYXR1cmVSZXF1aXJlZCI6dHJ1ZSwidGV4dHVyZXMiOnsiU0tJTiI6eyJ1cmwiOiJodHRwOi8vdGV4dHVyZXMubWluZWNyYWZ0Lm5ldC90ZXh0dXJlLzQzNjhlOTI0N2JkMDcwYmE0MTczM2UyN2FkNThlNGQxNzNjMzQxNjY5NjRlZGM3ZDNiOTkzNWNhMTU4MzczMiJ9fX0="}]},Name:"yourname"},Rot:9b,x:132,y:115,z:-744,id:"minecraft:skull",SkullType:3b}
I searched in the gamepedia Wiki for the nbt tags and they said that the "textures tag" is just for individuel textures so I tried it without them
code_language.skript:
{Owner:{Id:"youruuid",Name:"yourname"},Rot:9b,x:133,y:115,z:-743,id:"minecraft:skull",SkullType:3b}
That shortened version rotate the head but doesnt show the actual skin of the player.

Do I need a converter to get the "Signature" and the "Value" elements?
[doublepost=1498564153][/doublepost]Still searching for a nbt expert...
[doublepost=1499978828][/doublepost]bump
 
First I looked at the nbt of a hand placed playerhead something like:
code_language.skript:
set {nbttest} to "%nbt of clicked block%"
for placing this head I wrote
code_language.skript:
on rightclick with bowl:
    set {_headloc} to location of clicked block
   set block at {_headloc} to floor head
   add "%{nbttest}%" to nbt of event-block
Now I'm splitting up the NBT (Because I want to place the head of a plot owner). Something like this:
code_language.skript:
set {_nbtedit::*} to {nbttest} split at """"
set {_nbtedit:5} to "I will finish this asap"
[doublepost=1498317455,1498314514][/doublepost]Here is the nbt data of one head.
code_language.skript:
{Owner:{Id:"youruuid",Properties:{textures:[0:{Signature:"Pn5xJJDaW4GcnJF8Jf7FNY2ERWLs6pMz7le51/M5mIUxfy7l7dqBWcmPWGw/CDunx9bfnl+7w9EqJJFTqT2nE8B4H0MnwP/eln8OWh5aKELtDbSCC5Vybh57mVivNL2xw7puWwobHyIBIQlK7erttuynWvAVHoFqLwp84wdKnzBROM11TWZEEgqbtYeXDvY5qfCSTFyDQ3yHCCJ7d73tfJsssgQM9i9fC1JUbRHK9f4sivvrUiWOb9tXkCrGT+OySdTPZVQkPUMMrv1BCFcaDot/WAXCGuQ3GOkfZMEFb8ENphXZbKnxbGXCFvptKxUjb6j/xD7/f/YAMSY0ktDg/Fr6WEJUQIzvzu6YeP/hZYkPRPTlQTN/aN9WIoe/mmUZUdIOfmYDfp+MrXqtiRuQPDQVKKp/2IuiesSb8t8MjKGWpTlMX2cQUMgh0J/VPOF8Cm5hD1XblRCFjvbQF/B4I+HlyQ+GuaM7G5SNNJHnDXRCb+MmZpf7R0ibjL0HbfaW33RTZNkENNRa7TnvLH+x/i878IFs9taWll7cbqKN5lyoiDquqcv0/rBLnAeYzsASsaNAE98ovnKVjvcHYxExhKEl4q/aqUXCQ0GEZflq9CrBypeQeXUjikSYwblFmyOZlCRrqOquZon+vZ2emFhyZvTZXoKOD7XK4eeyfbIN0TQ=",Value:"eyJ0aW1lc3RhbXAiOjE0OTgzMTMwNTQ4NDIsInByb2ZpbGVJZCI6IjcwZjgzYWQ4NDI3OTQyNmNhMjIwNTExMjljN2E5ZjBhIiwicHJvZmlsZU5hbWUiOiJSZWRzdG9uZWZyZWFrMjYiLCJzaWduYXR1cmVSZXF1aXJlZCI6dHJ1ZSwidGV4dHVyZXMiOnsiU0tJTiI6eyJ1cmwiOiJodHRwOi8vdGV4dHVyZXMubWluZWNyYWZ0Lm5ldC90ZXh0dXJlLzQzNjhlOTI0N2JkMDcwYmE0MTczM2UyN2FkNThlNGQxNzNjMzQxNjY5NjRlZGM3ZDNiOTkzNWNhMTU4MzczMiJ9fX0="}]},Name:"yourname"},Rot:9b,x:132,y:115,z:-744,id:"minecraft:skull",SkullType:3b}
I searched in the gamepedia Wiki for the nbt tags and they said that the "textures tag" is just for individuel textures so I tried it without them
code_language.skript:
{Owner:{Id:"youruuid",Name:"yourname"},Rot:9b,x:133,y:115,z:-743,id:"minecraft:skull",SkullType:3b}
That shortened version rotate the head but doesnt show the actual skin of the player.

Do I need a converter to get the "Signature" and the "Value" elements?
[doublepost=1498564153][/doublepost]Still searching for a nbt expert...
[doublepost=1499978828][/doublepost]bump
You need a third party api to grab that, but you can also parse as an offline player or player if their online. as for the floor heads, heres the code
code_language.skript:
function floorHead(l: location, i: int = 1):
  set block at {_l} to head
  set data value of block at {_l} to {_i}
 
Status
Not open for further replies.