Reference
Ready-made flights
- Content type
flightTemplates- Files
data/kit/flight-templates.json,data/kit/flight-templates/- Shape
- A list of records, each with its own
id - Patch target
flightTemplate:<id>, for exampleflightTemplate:core.flight-template.three-bands- In the base game
- 52 records
- Guide
- Flight shapes
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 | ||
preset | text, up to 80 characters | |||
outline | object | |||
outline.lengthMm | number, 10 to 60 | Yes | ||
outline.points | list, 3 to 24 items | Yes | ||
wings | whole number, 3 to 4 | |||
material | one of the options | Options: standard, thick, nylon, moulded. | ||
micron | number, 50 to 900 | |||
finish | one of the options | Options: gloss, matt, holo, clear. | ||
dimples | true or false | |||
ribs | true or false | |||
integrated | true or false | |||
shaft | number, 15 to 45 | |||
colour | colour, #rrggbb | Yes | ||
layers | list, up to 64 items | [] | ||
layers[].id | text | Yes | Pattern: ^l[0-9]{1,4}$ | |
layers[].kind | one of the options | Yes | Options: classic, pattern, graphic, text, picture. | |
layers[].ref | text, up to 80 characters | |||
layers[].words | text, up to 40 characters | Pattern: ^[A-Za-z0-9 .'&!#-]*$ | ||
layers[].font | text, up to 40 characters | |||
layers[].colour | text | Pattern: ^#[0-9a-fA-F]{6}$ | ||
layers[].colour2 | text | Pattern: ^#[0-9a-fA-F]{6}$ | ||
layers[].opacity | number, 0.05 to 1 | |||
layers[].wing | whole number, 0 to 4 | |||
layers[].face | one of the options | Options: both, front, back. | ||
layers[].x | number, -0.5 to 1.5 | |||
layers[].y | number, -0.5 to 1.5 | |||
layers[].size | number, 0.02 to 1.5 | |||
layers[].rotate | number, -180 to 180 | |||
layers[].flip | true or false | |||
layers[].locked | true or false | |||
layers[].name | text, up to 40 characters | |||
layers[].repeat | true or false |
Example#
A record from the base game’s data/kit/flight-templates.json, shortened.
{
"id": "core.flight-template.three-bands",
"name": "Three Bands",
"category": "national",
"preset": "core.flight-shape.rocket",
"colour": "#d7262e",
"layers": [
{
"id": "l1",
"kind": "graphic",
"ref": "core.shirt-graphic.square",
"colour": "#141414",
"x": 0.2,
"y": 0.338,
"size": 1.0
},
{
"id": "l2",
"kind": "graphic",
"ref": "core.shirt-graphic.square",
"colour": "#141414",
"x": 0.75,
"y": 0.338,
"size": 1.0
},
{
"id": "l3",
"kind": "graphic",
"ref": "core.shirt-graphic.square",
"colour": "#ffc400",
"x": 0.2,
"y": 1.329,
"size": 1.0
},
/* … 1 more */
]
}In your pack the record’s id starts with your pack’s id instead of core, unless you mean to replace this one.