/battlemap-mcp:battlemap-environmentsfrom battlemap-mcp
Guides building outdoor Dungeondraft battlemaps (forests, shorelines, ruins) with terrain layering, vegetation scaling, and lighting hierarchy for readable encounter maps.
Ships in battlemap-mcp. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Scale vegetation from its texture size before you scatter it. Asset footprints vary enormously and nothing warns you. A tree texture may be a few hundred pixels or several thousand, and at 256 woxels per tile that is the difference between a shrub two tiles wide and a canopy nine tiles wide — wider than a small building. Scattered at whatever scale looks reasonable, the large ones stop reading as trees in a forest and become a lid over the map; their shadows fall as broad dark bands that get mistaken for terrain, and bare trunks stick out from under them with no crown in sight.
Never assume a family shares a size, and never carry a number over from another
map: read drawn from list_assets (the part of the image the art covers;
get_element reports opaque_bounds) for the assets you actually chose,
decide how many TILES the thing should occupy, and set the scale from that.
Pack trees often fill well under half their canvas, so sizing from the canvas
(sizes, texture_size) makes them come out small:
scale = desired_tiles * 256 / drawn_px (the drawn width or height)
Say the intended canopy size in tiles when you plan a treeline. A tree larger than the building beside it is a composition error, not a detail.
Make the land readable before making it busy. Terrain layering, a dominant silhouette and a clear route should survive a whole-map view before incidental detail is added. Follow the shared build loop so macro masses, clusters and accents each receive a visual checkpoint.
Set a material language before choosing terrain, water, vegetation, or landmark assets so the scene has a deliberate field, supporting texture, and focal contrast.
Set a lighting hierarchy before adding sources so weather, route choices, and the landmark use darkness and contrast deliberately.
Use at least three terrain slots for open ground — a base, a worn or dry variant where feet and wheels go, and a third for damp, moss or stone — and blend them where they meet. One texture across the whole map reads as a placeholder however well the objects sit on it.
Read the climate from the style bible before choosing any of them. It decides the base (sand and flagstone in a dry city, mud and grass in a wet one), how much grows and where — in a dry place, green only where someone waters it — and whether water is everyday or precious.
list_assets to find only the terrain, water, vegetation and landmark
families that fit the style bible.paint_terrain in a supporting terrain slot with
uneven, overlapping soft strokes, vary its width, then interrupt parts of it
with the base terrain. Use get_terrain on each side of the boundary and a
screenshot to confirm deliberate material variation without obscuring the
intended water edge.When the map contains a structure, the outside is not the space left over once the walls are up. It is where the building is, and treating it as a border to decorate is what makes a finished interior sit in a void — every count correct, every asset placed, and nothing around it that explains why anything is there.
Before dressing the exterior, answer three things and build the answers:
Then let the ground record the use. Bare earth where feet and wheels go, worn grass at the edges of it, unbroken ground where nobody walks. Ground that shows where people move does more for believability than any amount of scattered detail, and it is what makes the difference between a building on a map and a building in a place.
A walled property's street is a region of its own. Plan the far side of the wall with a purpose list: who passes (carts, porters, the watch), who stops (water-sellers, a beggar, riders at a hitching rail), and what the owner gives back to the street (a public fountain by the gate, a lamp, a shrine). Give it a carriageway and pavements with ruts turning in at the gate, and frontages opposite — a shop, a rival's workshop, a warehouse with a wagon backed up. The outside face of the wall is where the household's status shows, so dress the street rather than the wall itself.
Work the exterior before the interior when you can: the site decides where the doors matter, and a door that turns out to face nothing is expensive to move once the rooms behind it are furnished.
A path laid as a floor PATTERN cannot blend into anything. A pattern sits above the terrain, so its border stays a dead straight cut however much you paint beside it — measured, by painting soft grass strokes across a pattern path's edge and seeing none of it arrive. Keep patterns for floors under a roof, and make outdoor ground — paths, yards, tracks — out of TERRAIN, which does blend.
Then there is the trap that makes blending look impossible. Slot 0 is the base
and is NOT paintable: paint_terrain(slot=0) is accepted and changes nothing.
So if fill_terrain put grass in slot 0, you cannot paint grass back over a
path's edge. Assign grass to a paintable slot as well (slot 2, say), and paint
THAT along the edge — a soft brush, rate around 0.8, strokes of uneven length
and depth. The result is grass reaching into the path in an irregular line,
which is what a real verge looks like.
path_blender_01 to 04, in the Paths category, exist for exactly this: drawn
along a seam they feather one material into the next. Use one where two grounds
meet and the join still reads as a line someone drew.
Ground that has seen weather carries grit, sand or leaf litter where the wind
and the traffic leave it, not everywhere. Wind piles it against vertical faces
and into corners: the foot of a wall, a courtyard's corners, the lee of a
gate, the kerb. Traffic sweeps the middle of a path clean. So weather a hard
surface with many small paint_terrain dabs at low rate (about 0.2-0.5),
of uneven radius, where the material would collect, and save full coverage
for the verges and open ground outside the walls.
Plan the slots for it when you lay the ground. The base slot 0 cannot take paint, so a durable base (flagstone, cobbles) goes in slot 0 and the weathering material in a paintable slot from the start, because changing a slot's texture later changes everything already painted with it. Weathering is subtle at map zoom, so judge it in a screenshot framed at token scale.
A cave is not a room with rocky walls. dig_cave takes a POLYLINE and a radius
and opens the rock along it, so you shape a cave the way water would: a passage
that wanders, chambers where it widens, dead ends that go nowhere. A cave drawn
as a rectangle reads as a basement.
points with one pair digs one circular
space — that is the documented behaviour and the way to place a rotunda or a
pocket off a passage.ground_color and
wall_color on the same call, plus texture for the cave floor. They decide
whether it reads as limestone, basalt or packed earth.set_cave_entrance at its
border to blast a circular opening through the rocky edge. The mask removes
border art without carving floor; set its open argument to false to
restore the edge. get_cave reports floor and entrance cell counts and the
actual ground/wall colours. Confirm the floor count stays unchanged, then
frame the mouth in a screenshot to verify a usable approach. A mask away
from an existing cave border may produce no visible opening.dig=False fills rock back in. That is how to take back an over-wide
chamber; there is no delete for carved rock. The parameter is dig, not
erase — an unknown argument is dropped silently at the tool boundary, so
naming the wrong one digs MORE rock rather than failing.Check it with an export_map: a cave's shape is the thing being judged, and
element counts say nothing about it at all. Blend the approach with terrain
and sparse material detail after the route and entrance read clearly. Cave
undo retains both bitmaps; select the original level before undoing, and do
not try to restore cave history across a map resize.
A bridge is a single continuous span, or deliberately overlapping segments. Two placed end to end leave a visible seam down the middle at map zoom, and a reviewer reads that as one bridge that failed rather than two that met.
Check the span against the water, not against the gap you imagined: place it, then look. A crossing that stops short of either bank is worse than no bridge, because it says the map was never examined.
And confirm the water READS as water in a render. Under a dark ambient, a
water body can come back as a grey-green band indistinguishable from shadowed
ground — one map's central river was mistaken for a tree's shadow by the person
reviewing it, and the bridge appeared to cross nothing. get_status reporting
layers.water: true only means water exists somewhere; it says nothing about
whether a viewer can tell.
Water has to match the map's art family too. add_water draws
Dungeondraft's own water, with its own look, and beside painterly art a small
formal pond in it can read as belonging to another map. For small, still,
formal water — a reflecting pool, a fountain basin, a garden pond — prefer
the art family's water pattern with place_pattern, set inside a stone kerb,
with the family's lily pads or reeds on it. Keep add_water for large or
moving water, where its shoreline blending earns its place, and compare
either in a render against the rest of the map.
Frozen water is a material, not water. An iced-over stream, a frozen pond
or a sheet of ice is paint_material with a Materials asset such as
textures/materials/ice_tile.png. Its defaults, layer -400 and a smooth edge,
are the right ones: the patch sits below the banks and cliffs, and their paths
overlap its edge so the ice reads as tucked under them. add_water gives
moving water with ripples and a shoreline, which is the wrong substance.
Building a frozen stream from water bodies gets both the look and the
behaviour wrong; one ice material stroke is the right tool.
An exterior can pass every structural check and still look like mown municipal
lawn, because being correct and being alive are different problems. Every
installation carries far more ground cover than a build usually reaches for —
grasses, fallen leaves and branches, roots, shrubs, vines, ferns, flowers,
mushrooms, thorns. Find out what THIS map can use rather than assuming: search
list_assets for each family in turn. What exists depends on the Dungeondraft
version and on which packs the map includes, so a list memorised from another
map will be wrong somewhere.
Plants grow where feet and wheels do not. Against walls, in corners, along fences, at the foot of anything that stands still, and at the edges of paths — not scattered evenly across open ground.
Wear goes where they do. Bare earth at a door, a gate, a trough, a well; grass thinning to dirt where a track is actually walked.
Clusters, not confetti. Three clusters of five read as growth; fifteen singles spread evenly read as a texture someone applied.
Give the ground evidence of a life. A woodpile, a barrow, crates by a door, washing, a cart with its shafts down. One or two of these say more about who lives here than another dozen shrubs.
A plant on hard ground needs a bed. Soil, a planter or a kerbed border
under every planted cluster on paving; plants straight on flagstone read as
pasted on. Shape the bed to the planting — a long rounded rectangle under a
hedge row, an irregular oval under a cluster — with place_pattern or a
soil terrain slot. Fit it to the plants' opaque_bounds from get_element,
which cover the foliage itself; pack art often fills half its canvas, so
positions and canvas bounds put the bed off centre.
A quiet zone is sparse, not sterile: it still gets tufts and litter, just fewer, smaller, and further apart.
Planting has a register, and it should match who keeps the place. A wealthy or formal property is groomed: clipped hedges, contained beds, plants in pots, edges kept. Climbing vines, self-sown growth and plants spilling over paving belong to neglect, poverty or the wild, and a heavy hand with them makes a cared-for courtyard read as abandoned. Decide the register from the owner's status and upkeep, and keep to it.
Plants never pass through walls. Painterly bushes and trees render well
past their named tile, so a row set "along" a wall clips into it. Keep each
plant's centre at least half its rendered width (texture_size times scale)
from the wall line, then read crossing_walls in validate_placements.
Cluster foliage, debris and cover according to the zone’s purpose. Contrast quiet approaches with active encounter areas and use controlled asymmetry so the composition reads as natural without becoming visually noisy. Preserve real walls, portals and lights wherever the requested map needs VTT behavior. Make barriers, openings and lights reinforce the intended route and focal hierarchy instead of treating them as isolated decoration.
Keep crowns off buildings and out of doorways. scatter_objects keeps
only each object's centre inside rect, so a big tree scattered near a wall
spreads its crown over the roof line or across a door. Pass wall_margin
(woxels kept between each object's drawn art and every wall) and
avoid_rects ([[x, y, w, h], ...] for a path, a doorway apron, a
clearing). The reply's kept_out says how many candidates that cost, and
fewer than count are placed if the area runs out.
Group vegetation and debris into clusters of a few, with varied scale and some
ground texture beneath them. Isolated shrubs at regular intervals read as
stamped however few there are — and a large min_gap in scatter_objects
produces exactly that, because it enforces even spacing. To make a region
sparse, place fewer clusters rather than the same count spread evenly: keep
min_gap small inside a cluster and leave real ground between clusters.
Hand-placed rocks, logs and plants need the same variation scatter_objects
gives for free: a scale spread of about 0.85-1.15 at least, and angles off the
quarter turns. One size at one angle reads as stamped, however well spaced.
Capture a screenshot at encounter scale and use export_map for the
whole-map check. Run the
composition audit before final
review. Repair only a visible defect in hierarchy, routes, water edges or
coverage; then capture again before finishing.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub thekannen/battlemap-mcp --plugin battlemap-mcp8 skills in this plugin
/battlemap-art-directionUse when translating a Dungeondraft map brief into a deliberate visual plan before building or reviewing an environment, interior, or mixed scene./battlemap-composition-auditUse when a nearly built Dungeondraft map needs a whole-map composition check before final polish, especially when hierarchy, routes, focus, or density may be unclear./battlemap-interiorsUse when furnishing a Dungeondraft room, tavern, dungeon chamber, shrine, workshop, or other interior scene./battlemap-lighting-hierarchyUse when a Dungeondraft brief needs atmosphere, a readable route, focused illumination, or intentional darkness./battlemap-material-languageUse when a Dungeondraft brief needs cohesive materials, repeated visual motifs, or controlled detail instead of an asset collage./battlemap-visual-reviewUse when a Dungeondraft map has been built far enough to inspect screenshots or exports and decide which visible defects merit repair.Other plugins' skills for the same job