Jump to content

Recommended Posts

Posted (edited)

Hello, I spent the last several hours trying to figure out a way to add custom textures to a skeleton skull (or any other skull in the game) via a http://textures.minecraft.net/texture URL. I have searched all of the related forge documentation and NBT tags for anything related, but to no avail. I am NOT using a Player's name to generate this custom skull in my Client-Side mod, but via a URL.

 

My Current NBTTag that I add to the skull is something like: 

{SkullOwner:{Id:"4173bc61-9e2f-3c84-8d31-4517e64062ab",Properties:{textures:[0:{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMjNhYWY3YjFhNzc4OTQ5Njk2Y2I5OWQ0ZjA0YWQxYWE1MThjZWVlMjU2YzcyZTVlZDY1YmZhNWMyZDg4ZDllIn19fQ=="}]}}}

This is generated with the NBTTagCompound and NBTTagList classes, which I then add to the skull itemstack via 

testStack.setTagCompound(test);

 

However, when this item is rendered in a custom GUI that I made, it looks like a regular skull.

 

I then tried to use a Mixin to remove the 0: in the tag, and tried again with:

{SkullOwner:{Id:"4173bc61-9e2f-3c84-8d31-4517e64062ab",Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMjNhYWY3YjFhNzc4OTQ5Njk2Y2I5OWQ0ZjA0YWQxYWE1MThjZWVlMjU2YzcyZTVlZDY1YmZhNWMyZDg4ZDllIn19fQ=="}]}}}

But, that still does not work.

 

Next I tried:

NBTTagCompound test = JsonToNBT.getTagFromJson("{SkullOwner: { Properties: { textures: [{ Value: \"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMjNhYWY3YjFhNzc4OTQ5Njk2Y2I5OWQ0ZjA0YWQxYWE1MThjZWVlMjU2YzcyZTVlZDY1YmZhNWMyZDg4ZDllIn19fQ==\" }] }}}");

However, it still does not work. 

 

Does anyone have a solution for my issue? I gladly appreciate your help.

P.S. I know using a player's name would be a lot simpler; however, I would like to be able to do this for several hundred custom textures, and the only thing I have are the URLs for the textures, and not the player names. It would take me several days to find each and every single player name associated with each custom texture

Edited by AlphaElite
Typo and Clarification
Posted

1.8 is no longer supported on this forum.

Please update to a modern version of Minecraft to receive support.

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.