Reference
Ready-made shirts
- Content type
shirtTemplates- Files
data/kit/shirt-templates.json,data/kit/shirt-templates/- Shape
- A list of records, each with its own
id - Patch target
shirtTemplate:<id>, for exampleshirtTemplate:core.shirt-template.heritage-hoops- In the base game
- 17 records
- Guide
- Equipment, kit and signature development
Fields#
Indented fields belong to the field above them. [] marks the items of a list. A field that is not required may be left out; the default is used.
| Field | Type | Required | Default | Notes |
|---|---|---|---|---|
id | id | Yes | Namespaced id, e.g. "core.player.rory-calder" | |
name | text, up to 30 characters | Yes | ||
category | text, up to 24 characters | Yes | ||
base | colour, #rrggbb | Yes | ||
trim | colour, #rrggbb | Yes | ||
sleeve | colour, #rrggbb | |||
collarColour | colour, #rrggbb | |||
cuffColour | colour, #rrggbb | |||
collar | text, up to 40 characters | |||
font | text, up to 40 characters | |||
sidePanels | true or false | |||
piping | true or false | |||
layers | list, up to 64 items | [] | ||
layers[].kind | one of the options | Yes | Options: pattern, graphic, text, name, number, crest, flag, sponsor. | |
layers[].ref | text, up to 80 characters | |||
layers[].words | text, up to 64 characters | |||
layers[].font | text, up to 40 characters | |||
layers[].colour | colour, #rrggbb | |||
layers[].colour2 | colour, #rrggbb | |||
layers[].opacity | number, 0.05 to 1 | |||
layers[].side | one of the options | Options: front, back, sleeve. | ||
layers[].x | number, -1 to 1.25 | |||
layers[].y | number, -1 to 1.25 | |||
layers[].size | number, 0.01 to 4 | |||
layers[].maxWidth | number, 0.05 to 1.5 | |||
layers[].rotate | number, -180 to 180 | |||
layers[].flip | true or false | |||
layers[].covers | one of the options | Options: all, body, sleeves. | ||
layers[].locked | true or false |
Example#
A record from the base game’s data/kit/shirt-templates.json, shortened.
{
"id": "core.shirt-template.heritage-hoops",
"name": "Heritage Hoops",
"category": "classic",
"base": "#0f5132",
"trim": "#f3ead3",
"collar": "button",
"font": "classic",
"layers": [
{
"kind": "pattern",
"ref": "core.shirt-pattern.hoops",
"colour": "#f3ead3",
"opacity": 0.95,
"covers": "all"
},
{
"kind": "graphic",
"ref": "core.shirt-graphic.square",
"colour": "#0f5132",
"side": "front",
"x": 0.37,
"y": 0.402,
"size": 0.2
},
{
"kind": "graphic",
"ref": "core.shirt-graphic.square",
"colour": "#0f5132",
"side": "front",
"x": 0.5,
"y": 0.402,
"size": 0.2
},
/* … 7 more */
]
}In your pack the record’s id starts with your pack’s id instead of core, unless you mean to replace this one.