1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SkinChanger 1.0.0-fixes2

Set custom skins on players

Tags:
  1. SupremeMortal
    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


    Code ( (Unknown Language)):
    {
      "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:

    Code (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();
        }
     
    Code (Java):

        skinChanger.changeSkin(player, "my.custom.skin")
     
    Code (Java):

        skinChanger.resetSkin(player);
     
    Dependency

    Maven

    Code (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>
     

Recent Updates

  1. Fixes 2
  2. Fix geometry name
  3. 1.0.0a - Add permissions

Recent Reviews

  1. xXILoveLoveeXx
    xXILoveLoveeXx
    5/5,
    Version: 1.0.0-fixes
    Amazing!