Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Animated Cape

jadar edited this page Nov 14, 2013 · 9 revisions

Animated capes are capes that are animated, obviously. The frames are split up into multiple files. The order of frames and rate at which they change (FPS) are given in the cape pack. Each frame can be a different resolution, if you choose to do so, but that is up to you.

##Contents
1. Metadata
2. Setup


###Metadata The frames, order, and FPS are given in the cape pack `pack.mcmeta` file. The `pack.mcmeta` file is in the JSON format, and animated capes are stored as JSON objects. The FPS is given as a JSON integer, which looks like this. ``` "fps": 5 ``` The order is the order of the files that are given for the cape. The files are stored as a JSON array, which looks like this.
"frames": [
    "frame1.png",
    "frame2.png",
    "frame3.png",
    "frame4.png"
]

A full animated cape node will look like this.

{
    "exampleAnimatedCape": {
        "frames": [
            "frame1.png",
            "frame2.png",
            "frame3.png",
            "frame4.png"
        ],
        "fps": 4
    }
}

Don't forget to add the comma on the end. It might complain if there is a comma on a line and there is no entry below it. For example if the last line, i.e. the fps line, had a comma at the end it might complain.

###Setup First get the images you want to use for the frames and put them into the cape pack. Next in the pack `pack.mcmeta` file add a entry for the cape with frames and fps fields. Then give this permission node for the cape, `rankcapes.cape.use.CAPE_NAME`. That's it!
Clone this wiki locally