Player Head items in 1.20.5
[SOLVED] check this post to find the solution
Hi guys, it has been a while I haven't touched datapacking and I now need to convert a really small pack I had working until 1.20.4
I'm having some problems converting the nbt writing of an item to the new components-oriented format.
Note: the items are used as part of Offers.Recipe villagers nbt
The working item until 1.20.4:
Continue to help post {id:"minecraft:player_head",Count:1b, tag:{display:{Name:'{"text":"A custom head!"}'}, SkullOwner:{Id:[I;499208271,1493124571,-1808142671,-2124960721], Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZDRjNTlkNjMzYjM0YTM3YjEzNGY5NTNhZmNmNTNkOGYyY2I3YTYxNTdkMTE3NzI1ZDk1ZDU4YzAwNzY1Yzk3YSJ9fX0="}] }}}}
This up here was the one working in 1.20.4, that I tried to translate to 1.20.5 seeing the nbts of a /given head
{id:"minecraft:player_head",count:1b,components:{\ "minecraft:custom_name": '{"text":"A custom head!"}', \ "minecraft:profile": {id: [I;499208271,1493124571,-1808142671,-2124960721], properties: [{name: "textures", signature: "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZDRjNTlkNjMzYjM0YTM3YjEzNGY5NTNhZmNmNTNkOGYyY2I3YTYxNTdkMTE3NzI1ZDk1ZDU4YzAwNzY1Yzk3YSJ9fX0="}]}\ }}
This is the "translation" to 1.20.5 I tried to make.
The game does not give any syntax error but the console logs say
> Failed to load offers: Not a string; No key value in MapLike[{name:"textures",signature:"eyJ0ZXh0...
So I'm pretty sure the problem is in the signature nbt, also because if I try to /give myself my head I can see my 'signature' field is way longer than the one of the head I'm trying to convert to 1.20.5