Skip to content

Templates

A template holds keys that several cosmetics share, so you write them only once.

template names a cosmetic to take keys from, in any file and in any case. The cosmetic's own keys win, and exclude names the keys it skips. Neither has a default.

# cosmetics/neon-knight.yml
neon-base:                 # only a template: no item and no model
  animation:
    idle: 5,5
    walk: 5,5
  skills:
    sneak: mm:NeonPuff

neon-helmet:
  template: neon-base
  item: DIAMOND_HELMET
  show: meg:neon_knight_helmet
  slot: head
  animation:
    walk: 2                # keeps idle: 5,5
  exclude: skills.sneak    # no sneak puff
  • Sections merge line by line. Lists and single values replace the template's.
  • exclude takes keys or lines, with commas or as a list. Name a line inside a section with a dot, as skills.sneak above. An exclude on a cosmetic with no template is warned about and not used.
  • Templates chain: a template may have a template of its own.
  • A template with no item and no model show is not a cosmetic itself, and gives no warning. A problem in a template's keys is warned about for each cosmetic that takes them.