Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Change player skin without replace the model


Haman
 Share

Recommended Posts

Hello.

Is there any way in Forge 1.16.3 to replace only the skin without cancel the whole model render and make my own?

I found a small and old mod which uses some reflection ({"getPlayerInfo", "func_175155_b"}, {"playerTextures", "field_187107_a"}), AbstractClientPlayer, NetworkPlayerInfo, ThreadDownloadImageData, IImageBuffer.

These things are in Forge 1.16.3 too? Because I can’t find them.

Edited by Haman
Link to comment
Share on other sites

That's a getter. You cannot change it

 

You could put your new texture into the playerTextures field. However you need to make sure to also set playerTexturesLoaded to true. This will also fail if someone else causes the textures to load first, because then they will be asynchronously put in the map at some point, overwriting your changes.

 

You could also replace the entire NetworkPlayerInfo object, like I said above.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.