Capix!

Capix! is a technical API mod for Minecraft that provides developers with tools for creating and customizing player capes. It enables easy integration of character appearance customization systems into your projects.
For Mod Developers
Fabric Setup Example
import net.yeoxuhang.capix.api.CapixApi;
public class ExampleModClient implements ClientModInitializer {
@Override
public void onInitializeClient() {
// Using standard method
CapixApi.registerCape(ExampleMod.MOD_ID, "Example Cape", "textures/example_cape.png", "https://raw.githubusercontent.com/ExampleTeam/Example/master/namelist.txt");
// Using texture from URL
CapixApi.registerCape(ExampleMod.MOD_ID, "Example Cape", "https://github.com/ExampleTeam/Example/blob/master/example_cape.png?raw=true", "https://raw.githubusercontent.com/ExampleTeam/Example/master/namelist.txt");
}
}
NeoForge Setup Example
import net.yeoxuhang.capix.api.CapixApi;
@Mod("example_mod")
public class ExampleMod {
public ExampleMod(IEventBus eventBus) {
// Using standard method
CapixApi.registerCape(ExampleMod.MOD_ID, "Example Cape", "textures/example_cape.png", "https://raw.githubusercontent.com/ExampleTeam/Example/master/namelist.txt");
// Using texture from URL
CapixApi.registerCape(ExampleMod.MOD_ID, "Example Cape", "https://github.com/ExampleTeam/Example/blob/master/example_cape.png?raw=true", "https://raw.githubusercontent.com/ExampleTeam/Example/master/namelist.txt");
}
}
For Resource Pack Creators
Using DataPacks
Create file structure:
data/example_cape/capes/example_cape.json
pack.mcmeta
Example configuration file in JSON format:
{
"name": "Example Cape",
"texture": "example_cape:textures/capes/example_cape.png"
}
Using Resource Packs
Create file structure:
assets/example_cape/textures/capes/example_cape.png
pack.mcmeta