Ara
Download

Search or run a command

Jump to a section or open an Ara link.

Command · tilemap

tilemap.fill

Flood fill matching cells within explicit bounds.
scope edit:scenenot idempotentnon-destructive

Params

Typed as TileFillParams. Fields marked * are required.

entity*

entity
Tilemap entity.
required

layer*

string
Stable layer ID.
required
Starting cell.
required
Inclusive minimum coordinate; bounds make empty-space fills finite.
required
Inclusive maximum coordinate.
required

tile*

u32
New tile definition, zero to erase.
required

autotile

option<bool>
Re-run terrain rules on the filled region and its border (default false).
default null

Examples

JSON (MCP ara_apply, batches)

{
  "cmd": "tilemap.fill",
  "args": {
    "entity": "e_map1",
    "layer": "l_ground",
    "seed": {
      "x": 0,
      "y": 0
    },
    "min": {
      "x": -4,
      "y": -4
    },
    "max": {
      "x": 4,
      "y": 4
    },
    "tile": 1
  }
}

CLI

ara do tilemap.fill --args '{"entity":"e_map1","layer":"l_ground","seed":{"x":0,"y":0},"min":{"x":-4,"y":-4},"max":{"x":4,"y":4},"tile":1}' --why "…"