fill_area
Fill a rectangular map area with a specified tile ID, applying automatic autotiling to correctly border same-kind tiles. Supports region ID fills on layer 5 and preview via dry-run.
Instructions
Fill a rectangular area of a map with one tile id, with automatic autotiling — a filled autotile region borders itself correctly (and re-borders any same-kind tiles it touches). Flat tiles fill uniformly. Defaults to the lower ground layer (0). For region ids, fill layer 5 with the region number as tileId.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Left tile position of the rectangle | |
| y | Yes | Top tile position of the rectangle | |
| layer | No | Z-layer 0-5 (default 0 = lower ground; 5 = region id) | |
| mapId | Yes | The ID of the map | |
| width | Yes | Rectangle width in tiles | |
| dryRun | No | Preview only: return a diff of what would change without writing to disk. | |
| height | Yes | Rectangle height in tiles | |
| tileId | Yes | Tile id to fill with (autotile base or raw) |