Jump to content

[1.14.4] How to add render layers to players


Huntrex

Recommended Posts

So it would basically change the skin of the player?
I don't have my IDE available to see how to do this, but you could try updating the texture of the PlayerModel whenever the item is in their inventory instead of adding an overlay. That would eliminate the possibility of textures from the original skin poking through the overlay as well.

Link to comment
Share on other sites

you create a custom render layer class and do your render code in there you can check if the player has the item in his inventory also add the layer e.g in the entity construct event if the entity is an instance of entityplayer. you can also look how the armor layer does it if you’re unsure.

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.

Announcements



×
×
  • Create New...

Important Information

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