- 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
Changing skins
/changeskin <skin id> - skinchanger.use
/resetskin - skinchanger.reset
API:
Dependency
Maven
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 ]
}
]
}
]
}
}
/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);
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>