Jump to content

Recommended Posts

Posted

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.

Posted

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.

Posted

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

Posted

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.

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

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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