A custom multi cape modification for MCP (Better than Cloaks+)
- Animated Cape Support
- More Features
Download the source and follow the instructions under
Add a cape location:
public static final String CAPE_LOC = "Desired/Location/For/Capes"; // Working directory should be set to jars, so for example a proper location would be ClientName/Capes
Add a cape loader:
public static final CapeLoader capeLoader = new CapeLoader();
Add a custom texture binder:
public static final SimpleTextureBinder cape = new SimpleTextureBinder();
Add Cape Loading And Directory Creation:
try
{
capeLoader.createCapeDirectoryIfNotExists(CAPE_LOC);
capeLoader.loadCapesFromLocation(CAPE_LOC);
}
catch (IOException e)
{
e.printStackTrace();
}
Remove a check from the if statement in doRenderLayer() function:
entitylivingbaseIn.getLocationCape() != null
Replace texture binding function with a new texture binding function:
if(!RenderCape.renderCurrentCape(entitylivingbaseIn, playerRenderer))
{
return;
}
Add a gui button in addSingleplayerMultiplayerButtons function:
this.buttonList.add(new GuiButton(1337, 5, 5, 120, 20, "Cape Switcher"));
Add functionality to the button in actionPerformed function:
if(button.id == 1337)
{
this.mc.displayGuiScreen(new CapeSelectorGui(this));
}
Add a gui button in initGui function:
this.buttonList.add(new GuiButton(69, 5, this.height - 25, 120, 20, "Cape Switcher"));
Add functionality to the button in actionPerformed function:
if(button.id == 1337)
{
this.mc.displayGuiScreen(new CapeSelectorGui(this));
}