add_floor
Draw solid, bordered room floors from a rectangle or point outline, and use invert to cut holes for built-map interiors.
Instructions
Draw a solid floor shape — the bordered room floors a built map is made of.
rect: [x, y, w, h] in woxels, or points: [[x,y], ...] for any outline.
invert: cut a hole in the floor instead of adding to it.
This is a different system from terrain and from patterns. Terrain is the
painted ground beneath everything; a pattern is a tiled surface; a floor
shape is a solid slab with an outlined edge, which is what makes a room read
as a built interior rather than a patch of ground. Reach for it when walling
a room, and paint terrain outside it.
Like terrain and water it is a layer, not an object: there is nothing to
select or delete, so use invert to take one back.
A native floor is not a pattern: it carries its own border WALL and can use
Dungeondraft's smart tiles. Unset options keep whatever the tool holds.
smart_tile_id: which floor style. Read the options from
list_tool_controls('FloorShapeTool') — they are ids, not names.
wall_asset: the Walls asset used for this floor's own border wall.
wall_color: hex tint for that border wall.
bevel: bevel the border wall's corners.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "add_floor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rect | No | ||
| bevel | No | ||
| invert | No | ||
| points | No | ||
| wall_asset | No | ||
| wall_color | No | ||
| smart_tile_id | No |