Posted August 10, 201510 yr Hi, I wanna know how to make a skin server, well I need to know how to make it. Do I need to make a CoreMod for that? Else, how can I make it with forge? *Sorry for my BAD english*
August 10, 201510 yr Whaaaaaat. Skins for players can be accessed via AbstractClientPlayer. If you look deep enough you can find skin cache that is being filled with skins from mojang's skin base. You can alter rendering skins on at least 2 levels - either by replacing cached skins for given player with your own (which you would download on your own) or on more "shallow" level - by replacing player renderer and providing your own skins from outside skin cache. Both are hard enough (1st one will require at least reflection) to be considered advanced modding, so without java skills - don't even try, bruh (do something simpler). 1.7.10 is no longer supported by forge, you are on your own.
August 10, 201510 yr Reflection used in minecraft modding orbits around basics and obfuscation helper. For basics - look into java docs, rly - 1st link on google probably. For rest - ObfuscationReflectionHelper.class Used to make reflection work with de- and compiler mods. 1.7.10 is no longer supported by forge, you are on your own.
August 10, 201510 yr Author I watched many tutorials but I don't see how I can do that with Java Reflection, the URL is not a private field, it's not a field. I would need to Override the method so I could change the URL.
August 10, 201510 yr To 2nd Ernio's comment, I don't think you have the skill yet to do something like this. Try something simpler first. Now, the question is, what are you trying to do? why a seperate skin server? You want to be able to have different player models? Want HD skins? What? I'm struggling with why you would want this. Long time Bukkit & Forge Programmer Happy to try and help
August 10, 201510 yr Author I want players to be able to have a rp skin without changing their real skin so I need to change the skin server URL
August 10, 201510 yr I'll give you an idea. There are other ways and possible better ways to do this, but this will work. It wouldn't be an infinite value of skins, but it could be a lot. Create an item called disquise. Set the item up like potions (forgetting name) so it has multiple variants. Make each of those variants represent a skin the player can put on with the resourcepath, ect. Create a gui for the player to put the chosen mask in a slot. intercept player render event and check if a disquise is on. If so, go to a custom player render and cancel the main one. In the custom player render, extend the normal one and only replace the method where skin is retrieved and point it at the skin from your chosen item. 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.