scatter_tiles
Scatter decorative tiles across a map region at target density, skipping occupied cells. Use focal point for density gradients to place grass, rocks, or flowers.
Instructions
Scatter clutter tile ids over a region with natural random distribution at a target density (fraction of cells), skipping occupied cells. Optional focal point with falloff for a density gradient (denser near a landmark). Use for flowers/bushes/rocks/tall grass instead of hand-placing lone tiles — fixes sparse/corner-clustered decoration. Deterministic given seed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | ||
| focal | No | Density gradient toward a point | |
| layer | Yes | Usually 1 (ground clutter) | |
| mapId | Yes | ||
| region | Yes | ||
| density | No | Fraction of cells to fill, 0..1 (default 0.12) | |
| tileIds | Yes | Tile ids to scatter (picked at random per cell) | |
| avoidOccupied | No | Skip non-empty cells (default true) |