CONTENT CONTRACT · VERSION 1
shape_terrain
Story work: fill, clear or level a region of outdoor cells (half-open, at most 32 x 32 x 16). Only cells without foreign changes are changed; the work's cells yield nothing when mined and return to their former state once the work's ownership ends, where they still hold the work's state.
Signature
{ from_cell: {Millimeters}, kind: "shape_terrain", map: MapId, material: (BlockMaterial)?, op: TerrainOp, to_cell: {Millimeters}, work: Name }Fields
| Name | Type | Meaning |
|---|---|---|
from_cell | {Millimeters} | First cell x, y, z of the region (y relative to the ground datum, as set_block). Items: 3…3 |
kind | "shape_terrain" | Discriminant |
map | MapId | Map of the region (the start map, outdoors). Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: map |
material | BlockMaterial | Block material filled in; required for fill and level, absent for clear. |
op | TerrainOp | What happens to the region. |
to_cell | {Millimeters} | End cell x, y, z of the region (exclusive). Items: 3…3 |
work | Name | Work name, unique within this package's standing works. Length: 1…96; Pattern: ^[a-z][a-z0-9_]{0,95}$ |
Validated example
{
"from_cell": [
40,
0,
8
],
"kind": "shape_terrain",
"map": "core:valley",
"material": "stone",
"op": "level",
"to_cell": [
48,
1,
14
],
"work": "market_floor"
}