Posted June 20, 201411 yr 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?
June 21, 201411 yr You know what this is called? Logging in to Minecraft 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.
June 21, 201411 yr 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?
June 30, 201411 yr 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.
July 1, 201411 yr 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...
July 1, 201411 yr 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
July 1, 201411 yr 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?
July 1, 201411 yr 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
July 1, 201411 yr 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.
July 1, 201411 yr 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.