Jump to content

Recommended Posts

Posted

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.

Posted

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.

Posted
11 hours ago, Huntrex said:

How do I create the render layer and apply it, because whenever I have the item in my inventory, in the console it says "cannot render entity."

as i said look at the LayerArmor or LayerElytra class for example, you add the layer in the EntityConstruct event.

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.