{
  "params": {
    "type": {
      "type": "choice",
      "options": [
        "corridor",
        "junction",
        "end cap"
      ],
      "default": "corridor",
      "label": "Module type",
      "describe": "corridor (straight tube with connectors at both X ends), junction (four-way node with ports on all four sides, tiles in X and Z), end cap (tube closed by a dome with a big viewing window on +X; connector on -X only)."
    },
    "length": {
      "type": "range",
      "min": 4,
      "max": 12,
      "step": 1,
      "default": 6,
      "label": "Length",
      "describe": "Connector-to-connector length in metres along X (and along Z for a junction). Place modules this far apart to join them."
    },
    "accent": {
      "type": "choice",
      "options": [
        "orange",
        "teal",
        "yellow",
        "red",
        "blue"
      ],
      "default": "orange",
      "label": "Accent",
      "describe": "Colour of the connector flanges and the stripe along the hull: orange, teal, yellow, red or blue."
    }
  },
  "presets": {
    "long corridor": {
      "type": "corridor",
      "length": 12,
      "accent": "teal"
    },
    "crossroads node": {
      "type": "junction",
      "length": 8
    },
    "observation end": {
      "type": "end cap",
      "length": 7,
      "accent": "blue"
    }
  },
  "night": {
    "window": {
      "zone": "window",
      "color": "#ffd9a0",
      "intensity": 1.1,
      "describe": "Hull windows and the dome window glow warm."
    },
    "nav": {
      "zone": "nav",
      "intensity": 1.6,
      "describe": "Red light at the -X end, green at the +X end, like a ship."
    }
  }
}