/minecode:minecraft-recurring-issuesfrom minecode
Catalogues recurring mistakes in Minecraft Java datapacks and AI-generated datapack code — silent load failures, outdated syntax, selector bugs, scoreboard pitfalls, and performance traps. Use as a checklist when writing or reviewing datapacks.
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.
Each entry: symptom → cause → fix → tool that catches it. Read the whole list once before reviewing a pack; most bugs are one of these.
function/, tags/function/,
advancement/, loot_table/, recipe/, predicate/, item_modifier/,
structure/, tags/block|item|entity_type|fluid|game_event/; older versions
read the plural forms. The wrong spelling is ignored without a log line.
→ rename, or ship both via overlays for multi-version packs.
→ check_pack_structure, emulator_check (ignored-folder), emulator_run (ignored_folders).data/minecraft/tags/function/load.json
(plural functions before 1.21) with {"values": ["ns:load"]}.
→ emulator_run: an emulator note says #minecraft:tick is empty.datapacks/Pack/Pack/pack.mcmeta — the world sees
no pack. → put pack.mcmeta directly in datapacks/<Pack>/.a-z 0-9 _ - . / only./reload, check
/datapack list.validate_command each line; emulator_check
lists function-not-loaded with the line.give @s stick{display:{Name:'…'}} →
give @s stick[custom_name="…"] (components; shape per version — look it up).
→ check_version_syntax.clickEvent/hoverEvent became click_event/hover_event with renamed
inner fields; booleans must be booleans. → get_technical_changes(topic="text").generic./player./… in 1.21.2. → spyglass_get_registries(registry="attribute").item (1.17), place
(1.19), damage/ride/execute on|summon (1.19.4), return (1.20),
random, macros (1.20.2), tick, execute if function, return run
(1.20.3), transfer, execute if items (1.20.5), rotate (1.21.2),
dialog (1.21.6). replaceitem is gone from 1.17. → validate_command, emulator_explain/emulator_check.#; say hi # note says the comment.dimension_type.has_ender_dragon_fight in 26.2, noise_router fields),
a removed feature type (minecraft:random_patch in 26.2).
→ emulator_check → load_blockers; real_server=true for the server's
exact verdict (needs the user's EULA consent).result: "item" → "id" (1.20.5); bare-string result invalid. → misode_get_preset_data(generator_type="recipe").set_nbt removed (1.20.5) → set_components / set_custom_data."nbt" → "components" / "predicates" (1.20.5).criteria on advancements, pools[].rolls
on loot tables) → file dropped. → compare with misode_get_preset_data.misode_get_preset_data(version=target, …).@s in tick / schedule / load is the server: matches no entity. Use
execute as @a at @s run function ns:per_player.execute as @a run … changes who
@s is but still runs at the old position (world spawn from tick). Add
at @s for relative coordinates (~ ~ ~, distance=, @p). Each
subcommand applies in order, so as @e[type=zombie] at @s as @p ends with
@s = the player nearest each zombie.@p from the server picks the player nearest world spawn, not "the player".@e iterates items, arrows, XP orbs, markers; slow and wrong.
Add type= and a namespaced tag=.limit=1 without sort is "arbitrary", not "nearest" (selector @e sorts arbitrarily by default).execute if entity vs as: if tests once; as forks per entity — a
run function after as @e runs N times.if score @s x matches 0 fails for a player with no
score. Initialise (scoreboard players add @s x 0) or test unless score … matches 1.../= floors; overflow wraps. Scale by 100 or 1000
for decimals; execute store result … scale 0.01 to convert.ns.timer)./reload.scoreboard players enable @a ns.trig again
after each use.advancement revoke @s only ns:adv.schedule function replaces a pending schedule of the same function by
default; use append for several, and re-schedule inside a loop function.tag @s remove ns.busy).#tick — gate with a cheap execute if, or move to a
20t scheduled loop. → emulator_server_profile on a /perf start report
(real); emulator_run → profile.functions, dearest_lines (estimate).
Measured on 26.2: an nbt= selector costs ~1.4 µs per entity it checks,
data … entity ~3 µs, scoreboard and storage under 1 µs.maxCommandChainLength
and stops silently. → emulator_run → call_graph.recursion.@e[…,distance=..N] without type scans every entity in loaded chunks.pack_format only → "made for a different version" warning
elsewhere. Add supported_formats (1.20.2–1.21.8) / min_format+max_format
(1.21.9+, which drops supported_formats; keep both for a range spanning it).emulator_matrix(declared=true, boundaries=true).get_command_usage /
spyglass_get_mcdoc_symbol. Recall is pre-1.20.5-biased.get_wiki_page) for syntax of an older target.validate_command and, where available,
the emulator.minecraft:ruby) — check with spyglass_get_registries(search=…).pack.mcmeta was not found — ask.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-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-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