make_autotiles
Builds a 47-tile autotile set for a fill terrain over a base layer or clear, so map painters select correct edges and corners, and exports PNG plus Godot TileSet or Unity Rule Tile assets.
Instructions
Build the 47-tile autotile set for one terrain (fill_layer, like
grass) over another (base_layer, like dirt, or clear), so a map painter
picks the right edge and corner for every neighbour. Both textures come from
the top-left size square of their layer, so make_seamless them first.
edge is how far the fill stops from an open side, and outline gives
its border a darker shade of its own colours.
Writes name.png. With game_dir (or the remembered game folder, if
out_dir isn't given), a Godot project also gets name.tres, a TileSet
whose terrain paints the set, and a Unity project gets the sheet sliced into
tiles plus name_rule.asset, a Rule Tile (needs the 2D Tilemap Extras
package). out_dir writes the PNG and a JSON map of each tile's
neighbours. Returns a picture of the set. Headless: pass file.
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": {
"fill_layer": "<fill_layer>",
"size": "<size>",
"name": "<name>"
},
"name": "make_autotiles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edge | No | ||
| file | No | ||
| name | Yes | ||
| size | Yes | ||
| frame | No | ||
| out_dir | No | ||
| outline | No | ||
| game_dir | No | ||
| base_layer | No | ||
| fill_layer | Yes |