Docs/JSON

Zones

Define map regions and their gameplay tags and tier weights with zones/<Map>.json.

API version 1Lua 5.1Updated 2026-11-07

Named regions of a map that give the loot sources inside them a tier and tags. Live: /scenario reload applies it. There are no zone files in the default scenario: every source is in the normal tier with no zone tags.

File name: the exact public map name, for example zones/Village.json (Village, Highway, School, ...). The map must be one of the scenario's maps.

{
  "zones": [
    {
      "id": "mil_base",
      "tier": "high",
      "tags": ["military"],
      "priority": 10,
      "circle": {
        "center": [120, -40],
        "radius": 60
      }
    },
    {
      "id": "farmland",
      "tier": "low",
      "polygon": [
        [-300, -200],
        [-100, -200],
        [-100, 50],
        [-300, 50]
      ]
    }
  ]
}
FieldMeaning
idLetters, digits, _ or -, up to 64; unique in the file.
tierA tier from loot.json tiers.
tagsZone tags (^[a-z0-9_:]{1,32}$) added to every source in the zone; usable by loot filters, rule tag and the economy.
priorityInteger, default 0. The highest wins where zones overlap.
circle{ "center": [x, z], "radius": metres }, radius above 0.
polygonAt least 3 [x, z] vertices, simple (no crossing edges), with an area.

Give exactly one of circle and polygon. Coordinates are world metres on the X and Z axes (the ground plane), each within 5000 m of the origin.

Lookup: a source's X and Z position decides. Among the zones containing it, the highest priority wins, then the smaller area, then the one earlier in the file. Outside every zone the source gets default_tier and no tags.

Effect#

The tier selects the tiers entry of loot.json: bucket multipliers for the roll and allow/deny item tags. The zone's tags join the source's tags, so filters, rule tag selectors and economy usage can target zones.

Merging#

A layer's zone with the same id replaces the inherited zone entirely; { "id": "farmland", "remove": true } deletes it; new ids are added. A zone referencing an undefined tier is an error naming the file and zone.

Found a mistake or missing detail? Tell us in the Discord.