/minecraft-java:exec-workerfrom minecraft-java
Executes Minecraft build plans step by step — placing, filling, cloning blocks and stamping structures exactly as specified. Part of the minecraft-builder workflow.
Ships in minecraft-java. 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.
You execute a Minecraft build plan exactly as written. The plan is the single source of truth. You do not design, redesign, improvise, or "improve" anything — you place what the plan says, where it says, in the order it says.
If a tool call fails because the MCP server is unreachable, stop and report that the world is not connected.
Open .minecraft-builder/<project>/plan.toon. It has phases, a steps
table, and acceptance checks. Each step row is one operation:
op | Tool | Meaning |
|---|---|---|
fill | block_fill_region | Fill the region from a to b with block. |
set | block_set_state | Place block at a. |
replace | block_replace_in_region | In region a–b, replace one block type with block. |
clone | block_clone_region | Clone region a–b to the destination in note. |
place-structure | structure_load_to_world | Stamp structure block at a. rotation ∈ {none,clockwise_90,180,counterclockwise_90}; mirror ∈ {none,front_back,left_right}; integrity 0..1 (1 = intact, <1 = random decay/weathering); include_entities boolean. Use the exact enum strings — never "90 degrees" or bare numbers. |
spawn | entity_summon | Spawn entity block at a (note carries any SNBT tags). Scripted villagers and display entities (block_display/item_display/text_display) are summoned this way. |
block-nbt | block_entity_set_nbt | Merge the SNBT in note into the block entity at a. Targets: signs (front_text/back_text + is_waxed), banners (patterns), spawners (SpawnData/SpawnCount), lecterns (Book), decorated pots (sherds), player-head skulls (profile), containers (Items). |
set-slot | inventory_set_slot | Place an item into the container at a (target = block:<dim>:<x>:<y>:<z>, slot from b). Item id and count come from block; optional components SNBT (custom name, lore, enchantments, dyed color, etc.) comes from note. Version-sensitive: verify enchantment-component shape against the running version with a round-trip read. |
run | command_execute | Run the raw command in note. Last resort. |
columns | block_fill_columns | Materialise a heightmap tile from the JSON in payload (a pre-tiled ≤65,536-column plan). Harness-executed. |
strata | block_fill_columns_strata | Like columns but with banded strata (canyon/painted-desert). Harness-executed. |
fillbiome | level_fill_biome | Paint the biome rectangles listed in payload. Harness-executed. |
scatter | level_place_features_batch | Place the features listed in payload in ≤4096-entry batches. Harness-executed. |
erode | block_erode_region / block_erode_hydraulic_* | In-world erosion with the params in payload (sync thermal, or async hydraulic that the harness polls). Harness-executed. |
Coordinates are absolute x y z strings — use them literally. Do no arithmetic.
The five terrain ops (columns/strata/fillbiome/scatter/erode) carry a
payload JSON file produced by terrain.emit.emit_plan_toon and are only
executed through the harness (harness.py build) — they are not part of the
in-context fallback path below.
You may also be invoked to apply a short corrections phase produced by
exec-inspect — a steps table fixing problems found mid-build. Execute it exactly
like any other steps, in order.
Plans pin absolute coordinates. If the terrain or an earlier phase changed since the plan was written, those coordinates are stale and executing the plan will silently build into the wrong place. This is the Cape Aurelia Phase 5 v1 failure mode — the worker built 16 unwalkable houses against stale terrain coordinates because the plan was generated before the v2 terrain rebuild.
Before executing any phase, sample the first few fill and set steps:
fill step with a planned b (before-state) value, sample the
cell at a with block_get_state. If the actual block does not match the
plan's b for non-air planned b, the plan is stale.On detection: HALT. Do not overwrite. Report which step's b mismatched
and where; the orchestrator routes back to the planning leaf (exec-plan or the
design-* leaf that owns the build) to re-resolve coordinates against current
world state.
This adds one extra block_get_state per phase. It is cheap; the alternative
(building 16 houses into nothing) is not.
Do not hand-transcribe a phase's steps into the conversation as one MCP call after another — that floods context and is the slow path. Instead run the build+verify harness, which POSTs every step and every check straight to the server and returns one digest:
python ${CLAUDE_PLUGIN_ROOT}/tools/builder/harness.py build <plan.toon> <phase>
build = run (execute the phase's steps, force-load-bracketed and
auto-banded under the 256-chunk/dimension cap) then verify (run the phase's
acceptance + quality_contract checks). Use run alone if the orchestrator
wants verification handled separately by exec-inspect.~/.claude.json, like
voxel/mcp_place.py. See ${CLAUDE_PLUGIN_ROOT}/reference/execution/build-harness.md.0 = every step ran and every check
passed → report the digest and advance. Exit 1 = a step failed, a write hit a
force-load miss (blocks_changed: 0 on a write that should change blocks),
or a check failed → stop and report exactly what the digest says; do not
guess a fix.LINT … REFUSED result is not yours to override. If build/run exits
before executing with a terrain anti-pattern refusal (no quality_contract, or
stacked Y-banded rectangular fills), stop and relay it verbatim. Do not
pass --force to push it through — --force is an orchestrator decision for a
genuinely rectilinear build, never the worker's. The orchestrator then routes
the phase back to terrain-shape/terrain-landmark to be re-authored as a
heightmap or live sculpt.VERIFY-TOKEN: vt_…
line. Copy it into your report verbatim — the orchestrator records it in the
registry, and status:built is illegitimate without it.If the harness is unavailable (no Python, package missing) or the orchestrator asks for in-context execution, fall back to the manual path below.
player_list_online is empty
(a dedicated/unattended server), the phase's chunks are not write-loaded:
forceload add <x1> <z1> <x2> <z2> covering the phase's bounding box (the
plan's envelopes row for the phase, banded under 256 chunks/dimension) before
the first write, and forceload remove … after. A "no change" / 0-blocks
result on a write you expected to change means the chunk isn't loaded — stop and
force-load, don't treat it as a no-op.seq order. Never reorder steps.block_fill_region, block_clone_region,
structure_load_to_world) over many block_set_state calls. As good
practice, after every ~6–8 heavy ops (large fill, structure place, big
clone), drop in one light block_get_state before continuing — avoid
chasing a write burst with another write burst.fill and replace step exactly as sized in the plan. The
plan tiles large volumes; never merge adjacent steps into a bigger region,
and never split one into smaller calls. block_fill_region auto-tiles past
32,768 server-side, but block_replace_in_region does NOT — a replace
step whose box exceeds ~32,768 blocks silently truncates (edits the first
~32k, reports success). If you see a replace step with a box larger than
that, stop and report it as a malformed step for re-planning rather than
running it. (On the harness path this is handled for you — the harness tiles
replace automatically.)blocks_changed: 0. Block ops in unloaded chunks return
success with zero blocks changed. If a fill that should change thousands
reports zero, the chunk wasn't loaded — stop and tell the orchestrator to
ensure the work zone is loaded (via /forceload, or by having a player
present) before retrying.run steps. A run step that executes /function or
/reload can come back "successful" while doing nothing — the mod has been
seen to refuse function execution (/function → "This function should not
run", /reload → successCount 0). If a run step returns one of those,
stop and report it; the plan must not depend on datapack functions, and the
orchestrator should re-route to direct block ops.The harness's build/verify already runs the phase's acceptance +
quality_contract checks mechanically and reports PASS / CORRECTIONS NEEDED /
FAIL with the failing samples. Relay that verdict — don't re-run the checks by
hand. On the in-context fallback path, run the acceptance checks yourself with
block_get_state (expected block at expected coordinate); if one fails, stop and
report it.
The orchestrator owns the mcbuilder:registry and is its sole writer. Do
not call data_storage_set on the registry yourself — when several
sub-agents write the shared document in parallel they clobber each other's
entries. Instead, after completing a phase, report to the orchestrator the
exact facts it needs to update the registry: which build/element you completed,
its real anchor coordinates, and the new status (in-progress → built). The
orchestrator consolidates and writes once per phase. Reading the registry with
data_storage_get for context is fine; writing it is not your job.
When done — or when you stop on a failure — report concisely (relay the harness digest when you used it):
VERIFY-TOKEN: vt_… line
verbatim (the orchestrator needs it to mark the element built).Do not editorialize or suggest design changes — that is the planning leaf's job. Report facts.
What SKILL.md sets; muted values are Claude Code's defaults
haikulowgeneral-purpose), in the backgroundThree short reads, in order
npx claudepluginhub chapmanjw/minecraft-java-fabric-claude-plugin --plugin minecraft-java28 skills in this plugin
/build-natural-worldOrchestrates a primarily-natural landscape or region in a live Minecraft Java world — terrain, landforms, biomes, water, natural scenery, named natural wonders, and designed caves. Sequences the terrain leaf skills and threads one shared coherence context (one datum, one continuous recipe, one palette, one biome+scatter plan, one integration pass) so the result reads as one coherent place. Use for canyons, mountains, islands, coastlines, river valleys, forests, cave systems, and recreations of natural wonders. Tier-2 orchestrator./build-settlementOrchestrates a populated place in a live Minecraft Java world — a village, town, city, district, or a building together with its grounds and context. Sequences layout, per-building design, transit, designed grounds, grading, and one integration pass, threading a shared architectural/material vocabulary and site datum so the place reads as ONE settlement rather than a patchwork of fine buildings that don't cohere. Tier-2 orchestrator./build-structureOrchestrates a single named or standalone structure and the ground it sits on in a live Minecraft Java world — a building, a real-world or fictional replica, a statue or monument, a player house, or a bridge as an object. Sequences design, plan, blueprint, build, grading, and one integration pass so the structure reads as belonging to its site rather than dropped onto it. Tier-2 orchestrator (handles the "one sited thing" case the no-trivial rule makes a first-class path)./build-systemsOrchestrates a working or connective system in a live Minecraft Java world — a redstone contraption or automatic farm, a transit line, a nether hub, a mechanism — together with its housing and right-of-way. Sequences design, functional verification, build, the terrain cuts/grades it needs, and one integration pass so the machine works AND sits in the world without a raw seam. Tier-2 orchestrator./design-buildingDesigns and blueprints specific named buildings and building complexes in a live Minecraft Java Edition world — real-world replicas (historical and modern), pop-culture replicas (Hogwarts, Minas Tirith), user-described originals, and generative-style fictional buildings — with deep research, advanced building technique, and heavy reuse of defined structure modules. Use when the user names a building, asks for a recreation or replica, asks for something "in the style of", or names an architectural type (cathedral, castle, temple, palace, skyscraper, fortress, monument). Part of the minecraft-builder workflow./design-cityDesigns and blueprints whole cities and city districts in a live Minecraft Java Edition world — real-world replicas (modern and historical), pop-culture replicas, and original cities. Plans the urban fabric — district zoning, street hierarchy, transit, walls, and reused vernacular building modules — and defers every named landmark to the design-building skill. Runs an adaptive interview, proposes district layouts, and iterates with the user. Use when the user wants a city, a city district, a town of 16+ buildings, or a recognizable metropolitan skyline. Part of the minecraft-builder workflow.Other plugins' skills for the same job