/minecode:minecraft-feature-workflowfrom minecode
Step-by-step workflow for implementing Minecraft Java datapack features (items, mechanics, bosses, recipes, loot, advancements) with version-correct syntax and verification.
Ships in minecode. 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.
Goal: a feature that loads, runs, and is correct for the target version, proven by tools rather than asserted. Work in this order; each step feeds the next.
minecraft_start_session(workspace_path) → target version, pack format,
declared range, overlays, breaking changes that apply.pack.mcmeta? Ask which version. For a new pack, create one with
version_to_pack_format(version) (see pack.mcmeta below).supported_formats / min_format–max_format) means the syntax
must hold at both ends, or be split with overlays. Check both.Minecraft has no events API. Translate the request into what the game offers, and tell the user when the request needs a workaround:
| need | usual mechanism |
|---|---|
| run every tick | #minecraft:tick → one dispatcher function; keep per-tick work tiny |
| run once at load | #minecraft:load → create objectives, init storage, schedule loops |
| every N ticks | schedule function ns:loop 20t re-scheduling itself, or a scoreboard counter |
| player did X (ate, crafted, killed, used item, entered area) | advancement with a trigger criterion + rewards.function, then advancement revoke to re-arm |
| count a statistic | scoreboard objective with a criterion (minecraft.used:minecraft.carrot_on_a_stick, deathCount, …) |
| per-entity state | scoreboard on the entity, entity Tags, or custom_data on items |
| global state | #name objective fake-player scores, or data … storage ns:state |
| reusable condition | predicate file → execute if predicate |
| parameterised function | macros ($ lines + function ns:f {…} / with storage) — 1.20.2+ |
| custom item | vanilla item + components (custom_data, custom_name, item_model from 1.21.2, …) — 1.20.5+; NBT before |
| right-click detection | consumable component (1.21.2+) or carrot_on_a_stick + used stat; check the version |
| custom crafting | recipe JSON (result.id from 1.20.5) |
| custom drops | loot table override or item modifier |
Name everything under the pack's own namespace. Never edit minecraft: files
you do not mean to override; tags in minecraft:tags/function/ are the
exception (that is how load/tick hook in).
get_technical_changes(to_version=target, topic=…) for items, text,
loot, recipes, predicates, advancements, attributes.get_command_usage(version, command).spyglass_get_registries(version, registry, search); block states:
spyglass_get_block_states.spyglass_search_mcdoc_symbols →
spyglass_get_mcdoc_symbol.misode_get_presets →
misode_get_preset_data(version, generator_type, preset_id).Layout (1.21+ singular folders; before 1.21 plural — see the
minecraft-version-differences skill):
pack.mcmeta
data/<ns>/function/load.mcfunction
data/<ns>/function/tick.mcfunction
data/<ns>/function/<feature>/....mcfunction
data/<ns>/advancement/ predicate/ loot_table/ recipe/ item_modifier/
data/minecraft/tags/function/load.json {"values": ["<ns>:load"]}
data/minecraft/tags/function/tick.json {"values": ["<ns>:tick"]}
Conventions that prevent bugs:
minecraft:stone, ns:thing) — valid in every version.ns.timer, ns.boss); other packs share the scoreboard.scoreboard objectives add in load fails harmlessly when the objective already exists; do not "fix" that by removing and re-adding (it wipes the scores).tick cheap: gate expensive work with execute if entity … or a scheduled loop.@s in an advancement reward function is the player; in tick it is the server (no entity) — use execute as @a at @s run ….# at line start; no trailing comments after a command.$; everything else in the file must parse without the macro.validate_command(command, version) on each new command line (all of them for short files).check_version_syntax(content, version, kind) on each file.check_pack_structure(path) — folder names.emulator_check(path, version) — what the version refuses to load.emulator_run(path, version, ticks, commands=[…]) — does it run, what does it print, what is the world state after.emulator_test(path, tests=[…], checks=[…]) — assert the behaviour (e.g. "20:" + score #ns ns.timer = 20).emulator_matrix(path, declared=true, boundaries=true).Tell the user:
/reload, the trigger command, /function ns:…);minecraft: files, version upgrades).{ "pack": { "pack_format": <version_to_pack_format(target).data>, "description": "…" } }
"supported_formats": {"min_inclusive": A, "max_inclusive": B}
(1.20.2–1.21.8). From 1.21.9, "min_format"/"max_format" replace
supported_formats (and pack_format becomes optional); a pack that must
also load on older versions keeps the old fields alongside. Overlays
("overlays": {"entries": [{"directory": "overlay_48", "formats": …}]}, with
min_format/max_format instead of formats from 1.21.9) carry
per-version files. Confirm the exact fields with
get_technical_changes(to_version=target, topic="pack").What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub ancarsenat/minecode-mcp --plugin minecode6 skills in this plugin
/datapack-emulatorHow to run, test and check a Minecraft Java datapack without the game using Datapack Emulator — through MineCode's emulator_* MCP tools, the datapack_emulator.agent Python API, or datapack-emulator-cli --json — and how to read its results. Use after writing or changing datapack code, to reproduce a bug, to assert behaviour with tests, or to check a pack across a range of versions./minecode-mcpHow to use the MineCode MCP server's tools for Minecraft Java datapack and resource pack work — which tool answers which question, the order to call them in, and which sources to trust for which version. Use whenever the minecode MCP tools are available and the task touches a datapack, mcfunction, pack.mcmeta, loot table, predicate, recipe, advancement, item components or text components./minecraft-diagnoseSystematic diagnosis of a Minecraft Java datapack that does nothing, errors, behaves wrongly, lags, or broke after a version upgrade. Use when the user reports that a datapack, function, recipe, loot table, advancement or command "doesn't work", "does nothing", shows an error, or stopped working on a new version./minecraft-recurring-issuesCatalogue of the mistakes that recur in Minecraft Java datapacks and in AI-written datapack code — silent load failures, outdated syntax, context and selector bugs, scoreboard pitfalls, performance traps — each with the symptom, the cause, the fix and the tool that catches it. Use as a checklist when writing or reviewing datapack code, and when a bug looks familiar./minecraft-version-differencesPer-version reference of Minecraft Java datapack differences — pack formats, folder names, commands and execute features by version, item NBT vs components, text component formats, attribute ids, pack.mcmeta fields — with the tool calls that confirm each one. Use when targeting a specific Minecraft version, porting a pack between versions, supporting a version range, or when unsure whether syntax is valid for a version.Other plugins' skills for the same job