{
  "params": {
    "piece": {
      "type": "choice",
      "options": [
        "straight",
        "corner",
        "broken",
        "stairs"
      ],
      "default": "straight",
      "label": "Piece",
      "describe": "straight (4 m wall section), corner (L piece: one arm to +X, one to -Z, outer faces +Z and -X, with a round corner turret), broken (ruined top and fallen stones; its left end stays whole to meet an intact neighbour), stairs (straight wall with a two-flight stone stair up to the wall walk on the -Z courtyard side; the stair reaches 2.4 m behind the wall)."
    },
    "stone": {
      "type": "choice",
      "options": [
        "limestone",
        "granite",
        "sandstone",
        "slate",
        "redstone"
      ],
      "default": "limestone",
      "label": "Stone",
      "describe": "Stone for the whole kit: limestone (pale warm grey, classic), granite (neutral grey), sandstone (warm tan, desert fort), slate (dark blue-grey, grim northern hold), redstone (red-brown). Use the same value on every Castle piece so they match."
    },
    "crenels": {
      "type": "toggle",
      "default": true,
      "label": "Crenellations",
      "describe": "Merlons with arrow slits along the parapet (the classic notched battlement). Off gives a plain solid parapet with slits."
    },
    "torches": {
      "type": "toggle",
      "default": true,
      "label": "Torches",
      "describe": "An iron torch sconce on the outer face that burns after dark."
    },
    "seed": {
      "type": "range",
      "min": 1,
      "max": 50,
      "step": 1,
      "default": 9,
      "label": "Seed",
      "describe": "Reshuffles block shades, proud stones and, for broken, the ruined outline and rubble. Course heights and the 4 m length never change, so any seeds tile."
    }
  },
  "presets": {
    "ruined curtain": {
      "piece": "broken",
      "stone": "slate",
      "seed": 21
    },
    "desert rampart": {
      "piece": "straight",
      "stone": "sandstone",
      "crenels": true
    },
    "corner bastion": {
      "piece": "corner",
      "stone": "granite"
    }
  },
  "night": {
    "torch": {
      "zone": "torch",
      "color": "#ffa040",
      "intensity": 1.8,
      "describe": "Torch flames burn orange after dark."
    }
  }
}