Solved Player’s head|skull by 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.

Monpler

Member
Aug 14, 2021
2
0
1
18
Im using Skript 2.2dev37c in 1.12.2
I want to get player’s skull in skript. ( such as save to variables )
So i tried
Code:
Command /skull:
>trigger:
>>set {_item} to player’s skull
>>give {_item} to player
But this gives me just alex or steve skull named “(nickname)’s head”.

In vanilla command, it works. (command from skull generator website)

But this cannot be used in skript.

my goal is to save skull of all players in server to variables

I think the nbt will help me achieve this.

please help me.
 
Im using Skript 2.2dev37c in 1.12.2
I want to get player’s skull in skript. ( such as save to variables )
So i tried
Code:
Command /skull:
>trigger:
>>set {_item} to player’s skull
>>give {_item} to player
But this gives me just alex or steve skull named “(nickname)’s head”.

In vanilla command, it works. (command from skull generator website)

But this cannot be used in skript.

my goal is to save skull of all players in server to variables

I think the nbt will help me achieve this.

please help me.
First of all, update your skript, that's very outdated. Update here: https://github.com/SkriptLang/Skript/releases/tag/2.5.3
Second of all, you can use
Code:
for player heads:
skull of "any player" parsed as offline player

for custom heads:
player head with nbt "the nbt"
(requires skbee)

the nbt can be taken from here https://minecraft-heads.com/custom-heads
 
Status
Not open for further replies.