Skip to content

The package format

A cosmetic is a .clcos file: a zip archive with cosmetic.json at its root, the model and its textures. The Package Builder writes all of it for you. This page is for people who pack it themselves, and for reading what the builder wrote.

aurora_cape-1.0.0.clcos
├── cosmetic.json
├── models/cape.glb
├── textures/cape.png      (optional: textures can be inside the .glb)
├── preview.png            (optional: the store image, square)
└── LICENSE                (optional)

Zip it with normal compression, with cosmetic.json at the top level (not inside a folder), and upload it on New cosmetic.

cosmetic.json

{
  "schema": 1,
  "id": "aurora_cape",
  "version": "1.0.0",
  "name": "Aurora Cape",
  "type": "cape",
  "attach": { "bone": "body", "offset": [0, 0, 0], "rotation": [0, 0, 0], "scale": 1 },
  "model": "models/cape.glb",
  "textures": ["textures/cape.png"],
  "animations": { "idle": "Idle", "walk": "Walk" },
  "preview": "preview.png",
  "authors": ["Stellar"]
}
Field Required Rules
schema yes 1 or 2, the lowest that carries what you use (see below)
id yes 2 to 64 characters: lowercase letters, digits and underscores, starting with a letter. Unique on the site and fixed after the first upload.
version yes A version such as 1.0.0. Every new version must be higher.
name yes Up to 60 characters
type yes cape, hat, back, shoulder, aura; schema 2 adds boots, pet, face, wrist, waist
attach.bone yes An attach point that fits the type
attach.offset no [x, y, z] in blocks, each within ±0.5
attach.rotation no [x, y, z] in degrees, each within ±180
attach.scale no 0.25 to 1.5
model yes, except auras A .glb or .gltf in the package
textures no PNG files the model uses, when they aren’t inside it
animations no State to clip; see Animation
playback no { "crossfade": 0.2, "phase": "shared" }
follow pets only { "distance": 1.25, "side": "left", "hover": 0, "wander": 0.4 }; see Pets
particles auras only See below
preview no A square PNG, 128 to 1024 px. Without one, the store image is a still of the 3D preview.
authors no A list of names
description no Up to 500 characters. The store page uses the description written on the site.

Fields that aren’t in this table only give a warning.

Which types need which bones

Type attach.bone
cape, back body
hat, face head
shoulder left_shoulder, right_shoulder, left_arm, right_arm
wrist left_wrist, right_wrist
waist waist
boots feet
pet, aura root

Animations

A state’s value is a clip name, or in schema 2 an object with how it plays:

"animations": {
  "idle": "Idle",
  "walk": { "clip": "Walk", "speed": 1.2 },
  "jump": { "clip": "Hop", "mode": "once" }
}

mode is loop (the default) or once; speed is 0.25 to 4.

Particles (auras)

"particles": {
  "texture": "textures/spark.png",
  "frames": 4,
  "rate": 12,
  "lifetime": 1.2,
  "radius": 0.8,
  "height": 1.9,
  "velocity": [0, 0.3, 0],
  "color": ["#FFFFFF", "#9FD3FF"],
  "size": 0.12
}

Limits: rate up to 40, lifetime up to 3, radius up to 1.2, height up to 2.2, size up to 0.3, frames 1 to 32, each velocity value within ±1, one or two colours. texture is the sprite sheet: its height must be its width times frames. See Auras.

Schema 1 or 2

Use "schema": 2 when the cosmetic uses any of these, and 1 otherwise:

  • the types boots, pet, face, wrist, waist
  • the bones left_arm, right_arm, left_wrist, right_wrist, waist, left_foot, right_foot, feet
  • the states jump, attack, glide
  • an animation written as an object ({ "clip": … })

A schema 1 package that uses one of these is refused. A schema 2 package that doesn’t need it only gets a warning, but clients that only read schema 1 won’t show it, so prefer 1 when you can.

Models

  • glTF 2.0: a .glb, or a .gltf with its .bin files. 1 unit = 1 block, Y up, the front facing +Z.
  • Buffers and images inside the file or next to it in the package. Links to websites or absolute paths are refused; data: links only for things under 64 KB.
  • Embedded images must be PNG. Cameras and lights are ignored.
  • The model is measured in its rest pose, with every node’s transform applied, then multiplied by attach.scale.