Skip to content

Adding a new cape

itayfeder edited this page Nov 17, 2022 · 8 revisions

How to add a new cape

Cloaked allows other mod-makers, datapack makers, server owners and modpack makers to add their own capes! All you need is a datapack and a resource pack!

Datapack

Your datapack will look like this:

[Name]

data

[Cape pack ID]

cape_data

your_cape.json

inside the cape_data folder, you can place as many capes as you want. The cape's json file follows the following format:

{
    "translationName": "[the translation key of your cape]",
    "treasure": true/false
}

translationName accepts a string, that represents the translation key of the cape's variant name, that will be used in the lang files.

treasure accepts a boolean (either true or false), that represents if the cape can be found in chests, or not.

Resource Pack

Your resource pack will look like this:

[Name]

assets

[Cape pack ID]

lang

en_us.json

textures

cape

your_cape.png

Inside the lang folder, you can store the translations of the cape's variant name. The data is stored just like normal lang files, with the key being the value of your translationName

Inside the textures/cape folder, you store your cape textures. The name of your cape texture must match the name of the cape variant's json file in the datapack.

Here's a template texture for a cape (it's small, but it's the exact size you need):

template

Clone this wiki locally