Skip to content

hiderikzki/MCPCloaks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MCPCloaks

A custom multi cape modification for MCP (Better than Cloaks+)

To Be Added

  • Animated Cape Support
  • More Features

Setup

Download the source and follow the instructions under

Main Client Class

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

LayerCape Class

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;
}

GuiMainMenu Class

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));
}

GuiIngameMenu Class

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));
}

About

Multi Cape Support For MCP, Like Cloaks+ But Better

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages