Solved Giving a skull to player

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

glowgrew

Active Member
Jan 26, 2017
99
7
0
Perm, Russia
Hello. I have to give a skull with nickname, but this code sends "the latter is neither an item type".
Code:
set slot 5 of player to sean1346's skull named "test" with lore "test"
BTW, how can I give a custom skull to a player?
[doublepost=1496122416,1496076220][/doublepost]@Duetro @ImOfflinezzz (братан, ало) ANYONE?
 
code_language.skript:
set {_p} to "sean1346" parsed as offline player
set slot 5 of player to skull of {_p} named "test" with lore "test"
Thx <3
[doublepost=1496140935,1496138642][/doublepost]
code_language.skript:
set {_p} to "sean1346" parsed as offline player
set slot 5 of player to skull of {_p} named "test" with lore "test"
BTW, do u k how to use a custom skull?
 
@glowgrew you will need SkStuff for that.

Get a head command, for example, here. Then just use nbt data from it.

Example - from "/give @p skull 1 3 {display:{Name:"Strawberry Jam"},SkullOwner:{Id:"adc3ea73-5b42-4fea-a237-4a72b52dd72b",Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYzBiOGI1ODg5ZWUxYzYzODhkYzZjMmM1ZGJkNzBiNjk4NGFlZmU1NDMxOWEwOTVlNjRkYjc2MzgwOTdiODIxIn19fQ=="}]}}}"

You get:
code_language.skript:
set slot 5 of player to skull of player with nbt "{display:{Name:""Strawberry Jam""},SkullOwner:{Id:""adc3ea73-5b42-4fea-a237-4a72b52dd72b"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYzBiOGI1ODg5ZWUxYzYzODhkYzZjMmM1ZGJkNzBiNjk4NGFlZmU1NDMxOWEwOTVlNjRkYjc2MzgwOTdiODIxIn19fQ==""}]}}}" named "test" with lore "test"

Remember! If you have " in nbt, put 2 " (as I did in example)
 
  • Like
Reactions: glowgrew
@glowgrew you will need SkStuff for that.

Get a head command, for example, here. Then just use nbt data from it.

Example - from "/give @p skull 1 3 {display:{Name:"Strawberry Jam"},SkullOwner:{Id:"adc3ea73-5b42-4fea-a237-4a72b52dd72b",Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYzBiOGI1ODg5ZWUxYzYzODhkYzZjMmM1ZGJkNzBiNjk4NGFlZmU1NDMxOWEwOTVlNjRkYjc2MzgwOTdiODIxIn19fQ=="}]}}}"

You get:
code_language.skript:
set slot 5 of player to skull of player with nbt "{display:{Name:""Strawberry Jam""},SkullOwner:{Id:""adc3ea73-5b42-4fea-a237-4a72b52dd72b"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYzBiOGI1ODg5ZWUxYzYzODhkYzZjMmM1ZGJkNzBiNjk4NGFlZmU1NDMxOWEwOTVlNjRkYjc2MzgwOTdiODIxIn19fQ==""}]}}}" named "test" with lore "test"

Remember! If you have " in nbt, put 2 " (as I did in example)
YOU'RE A GOD!
 
Status
Not open for further replies.