Posted September 5, 20196 yr I created an item, I want to make it so when the player has said item in their inventory a skin would overlay the player's current skin.
September 5, 20196 yr 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.
September 5, 20196 yr 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.
September 5, 20196 yr Author 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."
September 6, 20196 yr 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.