Preview seeded decoration scatter
tiled_preview_scatterScatters decoration tiles over a bounded region with deterministic density and seed-based weighted picks for reproducible placement.
Instructions
Scatters decoration tiles over one bounded region with a deterministic density roll per cell: a stateless coordinate hash gates each cell against the density and a second salted hash picks one weighted tile from the choice list, so the same seed always reproduces the same picks and results are translation-stable. Math.random is never involved. With skipOccupied, cells already holding a tile are left untouched; a null choice erases where it lands. Returns an ordinary mapEdit change set carrying the setTiles writes; a scatter that matches no cells fails closed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | Yes | ||
| region | Yes | ||
| choices | Yes | ||
| density | Yes | ||
| layerId | Yes | ||
| mapPath | Yes | Canonical project-relative POSIX path; absolute paths and .. are forbidden | |
| skipOccupied | No | ||
| expectedMapRevision | Yes | SHA-256 revision returned by a read or preview | |
| expectedDependencyRevisions | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |