Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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.

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.

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.

  • 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."

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.