Resource icon

SkinChanger 1.0.2

Compatible API Versions
1.0.7
Sourcecode
https://github.com/SupremeMortal/SkinChanger
Contributors
SupremeMortal
Usage

Adding Skins

Create a folder insider the SkinChanger plugin folder with the name of your skin e.g. my.custom.skin
Add your geometry.json and skin.png to the folder making sure that the geometry name is the same your chosen skin name.

Example:

SkinChanger/
my.custom.skin/
geometry.json
skin.png


JSON:
{
  "geometry.my.custom.skin": {
    "bones": [
      {
        "name": "body",
        "pivot": [ 0.0, 24.0, 0.0 ],
        "cubes": [
          {
            "origin": [ -4.0, 12.0, -2.0 ],
            "size": [ 8, 12, 4 ],
            "uv": [ 16, 16 ]
          }
        ]
      }
    ]
  }
}
Changing skins

/changeskin <skin id> - skinchanger.use
/resetskin - skinchanger.reset

API:

Java:
    public void onEnable() {
        RegisteredServiceProvider<SkinChanger> provider = getServer().getServiceManager().getProvider(SkinChanger.class);
  
        if (provider == null || provider.getProvider() == null) {
            this.getServer().getPluginManager().disablePlugin(this);
        }
  
        SkinChanger skinChanger = provider.getProvider();
    }
Java:
    skinChanger.changeSkin(player, "my.custom.skin")
Java:
    skinChanger.resetSkin(player);
Dependency

Maven

XML:
    <repositories>
        <repository>
            <id>nukkitx-repo</id>
            <url>https://repo.nukkitx.com/snapshot/</url>
        </repository>
    </repositories>
    <dependencies>
        <dependency>
            <groupId>com.github.suprememortal</groupId>
            <artifactId>skinchanger</artifactId>
            <version>1.0.0-SNAPSHOT</version>
            <scope>provided</scope>
        </dependency>
    </dependencies>
Author
SupremeMortal
Downloads
5,107
Views
5,496
First release
Last update
Rating
3.00 star(s) 2 ratings

More resources from SupremeMortal

Latest updates

  1. Support for 1.13

    Adds support for 1.13.
  2. Add auto-completion to command and API

    Adds auto-completion to command so you are able to see what skins are available and String[]...
  3. Fixes 2

    Reset skins now show to new players. Skin name inputted with command is now case sensitive.

Latest reviews

plz update to mc 1.14.0, all the skins are invisible ;((((((
Amazing!
Top