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

Hello MCF forums,

I would like to know if there is a way to change a players skin based on their username. And if so how?

You know what this is called? Logging in to Minecraft :P

 

On a more serious note, try reading through the code that loads the players skin. That could help you quite a bit. Just not sure if the skin is changeable via forge...

We all stuff up sometimes... But I seem to be at the bottom of that pot.

  • Author

Ok ill take a look at that and ill see if i can work something out but if i cant is there a way to lock a specific player head onto a player based on Name?

  • 2 weeks later...

droke0920 did you have any luck with this?  I'm curious about how to apply arbitrary skins from the minecraft skin server to a npc player model.

  • Author

No but i have been looking into just locking a player skull to a player.... if i happen to find anything about this i will keep you informed...

This is easy to do.

 

Extend RenderPlayer, do very limited modification, basically to apply whatever skin you want based upon conditions.  There should be a gettexture method or something like that for it.

 

In your client proxy assign your new renderplayer to EntityPlayer.

 

This should minimize any incompatibilities with other mods unless you mess around with more of the methods.

Long time Bukkit & Forge Programmer

Happy to try and help

  • Author

Ok i think i under stand what your saying? One last question. What if, lets say i put this in two mods will the collide with each other?

Sort of.

 

Whichever mod loads 2nd, its clientproxy override of the player render will win. 

 

Are you going to have different functionality in the two or just have it in both?  If it is the same functionality, just don't care and let the last one win.  you could also look for isModLoaded and see if the other is there.

 

If it is different functionality, now you are going to have to get fancier and use the playerrender event and try to manipulate it in a smarter method, or have your mods talk.

Long time Bukkit & Forge Programmer

Happy to try and help

  • Author

In each mod i will have the same skin its just so that if you have my mod installed it will change some peoples skins. So if that helps you explain this  better please do because im quite confused.

You can duplicate the code in each mod.  Whichever mod loads last should win in the clientproxy.  If someone has a client mod without the server or some such oddity, there might be some errors though.

 

You might want to setup a shared code repository between the mods so you don't have to keep them the same, but given that you are confused already, that is probably for later.

Long time Bukkit & Forge Programmer

Happy to try and help

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.