AnyCapes: Refabricated

This version of AnyCapes was created for Minecraft 1.18+ since the official mod version wasn't updated for this game version. A working version for 1.18.1 was provided by another developer, and this release allows players to use capes until an official update appears.

About the Modification
AnyCapes is a universal mod for displaying capes that supports working with any cape APIs. The mod has flexible settings and can work even with custom cape APIs created by players themselves.
Main Features
The mod automatically retrieves capes from various sources and displays them on characters. The standard configuration already includes support for capes from:
- Mojang
- Optifine
- MinecraftCapes
- LabyMod
Technical Features
AnyCapes works exclusively on the client side and requires Fabric API installation for proper operation. The mod is not planned to be ported to Forge.
Configuration
To access the mod's settings, you need to install Mod Menu and Cloth Config API. The main part of the configuration is the list of URLs. When Minecraft requests a player's skin, AnyCapes sequentially checks each URL from the list and tries to download a cape image. Once a working URL with a 200 response code is found, the download stops.
Placeholders in URLs
You can use special placeholders in addresses that are automatically replaced with player information:
- {mojang} — Mojang cape URL (if exists)
- {username} — player's username
- {uuid} — player's UUID without dashes
- {uuid-dash} — player's UUID with dashes
Caching
The caching function saves downloaded cape images to files, which improves performance. However, if the cape changes on the server, the cached image will not update automatically.