paint_material
Paint sculpted material patches like stone, earth, lava, or moss along a brush stroke on a Dungeondraft battle map, with control over size, layer, edge smoothing, and erasing.
Instructions
Paint a MATERIAL patch along a brush stroke. Returns what it painted.
Materials are their own system — irregular patches of stone, earth, lava or
moss with their own borders — and they are not terrain and not patterns.
A Materials asset passed to place_pattern makes a PATTERN, not a material.
Choose between them deliberately:
terrain ground that must BLEND into neighbouring ground
pattern a tiled floor inside a building
material a sculpted patch with its own edge, sitting on top of ground
water actual water
points: the stroke, in woxels. One point is a single dab.
asset: a Materials path from list_assets(category='Materials').
size: brush radius in mesh CELLS, 1-6 (larger is refused: the engine
throws and paints nothing). A cell is typically one tile, so size 6
paints roughly twelve tiles across PER DAB. Start at 1-2 and look.
layer: which material layer to paint into, -500 to 900 by 100. Materials
on different layers stack rather than merge. -300 and below draw UNDER
floors (add_floor, build_room); on a floor, paint at -200 or above.
smooth: smooth the patch's edge, versus following the material's own
texture.
erase: remove this material along the stroke instead of adding it.
The response reports `cell_size_woxels` and `covered_woxels` so the brush
size can be reasoned about on the ground. There is no "did it land" flag,
because the engine offers no reliable one: verify a stroke by looking at it.
Each call is one undo step.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"points": "<points>",
"asset": "<asset>"
},
"name": "paint_material"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | ||
| asset | Yes | ||
| erase | No | ||
| layer | No | ||
| points | Yes | ||
| smooth | No |