mojira.dev
MC-80025

SkullOwner String not immediately translated to SkullOwner Compound with /give

When using the following:

/give @p minecraft:skull 1 3 {SkullOwner:"Skylinerw"}
/give @p minecraft:skull 1 3 {SkullOwner:"Skylinerw"}

You are given a skull that has your texture. The "SkullOwner" string should translate into the compound version when this happens, which stores a texture at the moment of creation. Instead, the "SkullOwner" does not get translated like it should.

I assume this is not intended because if you exit the world, re-entering will cause it to be translated (both in singleplayer and multiplayer). As well, throwing the item out of your inventory causes the item entity to have its tag translated, and you can then pick up the correctly-translated head.

The given item currently looks like:

{id:minecraft:skull,Count:1,Damage:3,tag:{SkullOwner:"Skylinerw"}}
{id:minecraft:skull,Count:1,Damage:3,tag:{SkullOwner:"Skylinerw"}}

When it should instead be:

{id:minecraft:skull,Count:1,Damage:3,tag:{SkullOwner:{Id:"433918e9-0b46-406d-b3f1-698dd91c93a9",Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNDc0MjUyMTFmZDM2Njk0NWY0NGYyOTQzMTQ1ZTQyMzIxMjhlZjQwMmQyMjdmZGE4ZDVmZDBhZmZlYTMxOGZmIn19fQ=="}]}}}}
{id:minecraft:skull,Count:1,Damage:3,tag:{SkullOwner:{Id:"433918e9-0b46-406d-b3f1-698dd91c93a9",Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNDc0MjUyMTFmZDM2Njk0NWY0NGYyOTQzMTQ1ZTQyMzIxMjhlZjQwMmQyMjdmZGE4ZDVmZDBhZmZlYTMxOGZmIn19fQ=="}]}}}}

(Which, again, does so if you reload the world).

Linked issues

Comments 6

Confirmed for

  • 1.8.4 same with putting it into a chest

Confirmed for 1.13.1.

Cannot reproduce in 1.17.1. Using the command

/give @p minecraft:player_head{SkullOwner:"Skylinerw"}
/give @p minecraft:player_head{SkullOwner:"Skylinerw"}

updates the texture in a few seconds.

Can reproduce in 1.20.2 & 20w41a. Using the commands:

/item replace block 0 0 0 container.0 with minecraft:player_head{SkullOwner:"jeb_"}
tellraw @a {"nbt":"Items[0].tag","block":"0 -60 0"}

 

Please create a new issue for that. /give (as reported here) was fixed. This just never got resolved.

Skylinerw

(Unassigned)

Confirmed

Low

Commands

Minecraft 1.8.4, Minecraft 1.8.9, Minecraft 16w04a, Minecraft 16w05a, Minecraft 1.10.2, ..., Minecraft 17w43a, Minecraft 17w43b, Minecraft 1.13.1, 19w42a, 20w18a

Retrieved