Add your own cosmetic
- Open any file in
plugins/mcCosmetics/cosmetics/(or create a new.ymlthere, sub-folders work too) and copy one cosmetic block. - Paste it under
cosmetics:and change the id (the key: lowercase letters, numbers and_), plus the name, rarity and price. - Run
/cosmetics reload. It appears in the menu.
cosmetics:
my_ember_trail:
type: TRAIL
name: "<gradient:#ff8a00:#ff2d55>My Ember Trail</gradient>"
description: ["Glowing embers follow every step."]
rarity: rare
icon: BLAZE_POWDER
price: 4000
rental: { price: 700, duration: 7d }
particle:
shape: STEP
type: flame
count: 2
spread: 0.12
Mistakes are reported in the console with the file and the cosmetic's name, and only that cosmetic is skipped. The comments at the top of each shipped file explain every key.
Keys every cosmetic understands#
| Key | Meaning |
|---|---|
type | TRAIL, AURA, HAT, WINGS, BACKPACK, PET, KILL_EFFECT or JOIN_EFFECT |
name | Display name (MiniMessage, gradients work) |
description | List of lines shown in the menu |
rarity | A tier id from config.yml |
icon, icon-model-data, icon-texture | The menu item, with an optional custom model data number or base64 head texture |
enabled | false hides it everywhere without deleting it |
free | true = everyone owns it |
permission | An extra permission that unlocks it |
price, currency | Buy price and vault or hypercredits |
rental | { price, duration } |
hint | Text shown when it cannot be bought |