/minecode:minecraft-diagnosefrom minecode
Systematically diagnoses Minecraft Java datapack issues: packs that do nothing, error, behave wrongly, lag, or broke after a version upgrade. Walks through version pinning, world-load blockers, symptom classification, and targeted debugging steps.
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.
Work from evidence to cause. Do not rewrite code before you know which of the classes below the problem is in.
minecraft_start_session(workspace_path). Ask which version the user
actually plays on — it is often not the one pack.mcmeta claims, and
that mismatch is itself a frequent cause.
Run emulator_check(path, version) first and read load_blockers. A
fatal problem — a worldgen, dimension, dimension type or enchantment
file that does not parse, lacks a field the version requires or uses a
removed kind, or an unreadable pack.mcmeta — makes the server refuse the
whole world ("Failed to load datapacks, can't proceed with server load"),
for every pack. Nothing else matters until those are fixed. If the static
check is clean but the user says the world will not start, ask whether they
accept the Minecraft EULA; if they do, emulator_check(..., real_server=true, user_accepted_minecraft_eula=true) loads the pack on a
real server and reports exactly what it refused.
| symptom | most likely class | first move |
|---|---|---|
| the world will not load / "Failed to load datapacks" | a fatal world-registry problem | emulator_check → load_blockers; then real_server=true (with the user's EULA consent) |
| nothing happens, no error anywhere | not loaded (folders, tags, namespace, pack disabled) | check_pack_structure, emulator_run → ignored_folders, failed_functions |
"Unknown or incomplete command" / function missing from /function tab-complete | function failed to parse (whole file dropped) | get_logs(filter="errors"), emulator_check, validate_command per line |
| works on old version, broken on new | syntax migration | get_technical_changes(from_version=old, to_version=new) |
| JSON file (recipe, loot, advancement, predicate) ignored | schema error → file dropped on load | logs, emulator_check, compare with misode_get_preset_data |
| runs but wrong result | logic: selector, context (@s, position), execution order, score math | emulator_run with commands=[…] to inspect state; emulator_test to pin it |
| runs once then stops | re-arming: advancement not revoked, schedule not re-scheduled, tag not removed | read the trigger path |
| lag | per-tick work, @e without filters, nbt= scans, entity NBT reads, unbounded recursion | ask for a /perf start report → emulator_server_profile (real ms per function and line); emulator_run → profile, call_graph.recursion |
| "pack made for a different version" | pack_format / range mismatch | detect_pack_version, version_to_pack_format |
get_logs(filter="errors"). Look for Failed to load function,
Couldn't load tag, Couldn't parse element, Failed to parse. The line
number after Whilst parsing command on line N is the culprit; the whole
function file is dropped, and every function calling it then fails silently.check_pack_structure. On 1.21+ functions/, tags/functions/,
loot_tables/, advancements/ … are ignored without a word (and before
1.21 the singular ones are). This is the #1 cause.emulator_check(path, version) lists every function and
tag that will not load, unknown ids, bad SNBT, missing referenced
functions, broken loot tables and predicates — per version.emulator_run(path, version, ticks=40, commands=[…]). Read
summary, then ignored_folders, failed_functions, failed_tags,
records with level: error, call_graph.missing_functions /
never_called. Use commands to ask the world:
scoreboard players get #x ns.obj, data get storage ns:state,
execute if entity @e[tag=ns.boss].validate_command(line, version) gives the failing
token and what was expected; get_command_usage gives the grammar.search_mojira(query) before a long session; check each
issue's affected versions.Not loaded
tags/function(s).#minecraft:load / #minecraft:tick tag file missing, misspelled, or in the wrong namespace (data/minecraft/tags/function/tick.json).pack.mcmeta invalid JSON, or the pack is a folder inside a folder (datapacks/MyPack/MyPack/pack.mcmeta)./datapack list shows it under available, not enabled.[a-z0-9_.-/] only — the file is skipped.Parse failure (whole file dropped)
clickEvent → click_event, hoverEvent → hover_event.generic. attribute ids on 1.21.2+.item < 1.17, return < 1.20, execute if function < 1.20.3, rotate < 1.21.2).$…) without $, or a $(var) in a non-$ line.Logic
tick runs as the server — @s matches nothing; use execute as @a at @s.@p/@s in a scheduled function: schedules run as the server at world spawn.if score … matches)./= truncates toward −∞, no floats — scale with execute store … scale.@e selectors include items, projectiles, markers and players — add type= and tags.emulator_check, emulator_run; turn the bug
into an emulator_test that failed before and passes now.emulator_matrix(path, declared=true, boundaries=true) so the fix does not break the other end of the range.The emulator is a model. A game-source error from it is real; an
emulator-source note marks something it does not simulate. If the user
sees behaviour in game that the emulator does not reproduce, trust the game,
and check search_mojira and the emulator's limits before blaming the pack.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
minecraft, datapack, debugging, mcfunction, minecraft-commands
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-feature-workflowStep-by-step method for implementing a new feature in a Minecraft Java datapack (custom item, mechanic, timer, boss, crafting recipe, loot, advancement, dimension) so it is correct for the target version and verified before handing it over. Use when the user asks to add, build, make or implement something in a datapack or mcfunction project./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