Show custom capes on any client running Optifine by redirecting requests for Optifine's authentication servers to your own. Optifine capes will be used as a backup by default, and other cape sources are available by setting useCosmeticaAsBackup
to true
.
- Install dependencies with
npm install express request fs
- Run server with
node index.js
(sudo may be neccessary) - Add cape files to
capes
followingUSERNAME.png
(example given)
Note: you will likely need to open port 80 for this to work.
- Edit
/etc/hosts
and addIPADDR s.optifine.net
whereIPADDR
is the IP of the computer running the server
All of the credit here goes to eyezah for giving me his example script and walking me through the process. This is also based on Cosmetica services, which he made. Go check him out.