/modcrafting-fabric:fabric-mod-developmentfrom modcrafting-fabric
Develops, inspects, scaffolds, builds, and diagnoses Fabric 1.21.4 mods using ModCrafting's local MCP tools. Guides users through planning, vanilla-first approaches, and Java implementation.
Ships in modcrafting-fabric. 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.
Use this skill for a Fabric 1.21.4 mod project on Windows.
Before writing code for a new creation request, use modcrafting-plan to confirm the requirement, translate it into Minecraft mechanisms, and decide whether to use, configure, bridge, adapt or build existing mods. A modpack is not a single project: use modcrafting_pack_discover / modcrafting_pack_workspace / modcrafting_pack_baseline / modcrafting_bridge_scaffold / modcrafting_transform, and only fall back to this skill for an authored member or a standalone mod. Do not start implementation before the user confirms the plan.
For all user-facing guidance, follow modcrafting-start: explain outcomes in the user's language, keep tool names and protocol details internal, and continue the requested work. For onboarding or visual creation, call modcrafting_open_workbench with the current project (content/textures/recipe/gui/build as appropriate); merely returning an environment browserUrl does not open a browser. Never claim it opened unless the opener reports success, and even then say the system was asked to open it. Open the workbench before reading files for a new creation request, not after the plan.
For buildings, maps, scenes and structures, use minecraft_build_studio instead of laying blocks with minecraft_command setblock/fill. Open a blank plot with buildId + size [x,y,z] when starting from scratch, or an absolute structurePath to edit an existing structure; commit writes the plot back to the outbox, apply places it into the session test world, and undo reverts one apply. Hand control to the player with minecraft_control when they want to build by hand. Spatial preview happens in Minecraft; there is no browser building editor.
Prefer vanilla mechanisms before writing Java: scoreboard and teams, attribute modifiers, loot tables, data packs (advancements, functions, predicates), recipes, structures and jigsaw, commands, vanilla mob AI and spawn rules, resource packs, dimensions, boss bars and titles. Explain per requirement why Java is still required when it is.
modcrafting_environment_status and fabric_project_inspect.minecraft_data_lookup for every vanilla ID and property used, passing the task's projectPath. Do not invent IDs or hardness, resistance, stack-size, or enchantment data from memory.fabric_docs_search for Fabric APIs and mc_wiki_search for game concepts, always with the same projectPath. When a lookup reports the knowledge base missing, run modcrafting_prepare_assets once with that projectPath; resources are stored under the project's .modcrafting/knowledge.modcrafting_session({action:"create",projectPath}). Make narrow edits with the host Agent's normal file tools, then call fabric_validate. For the in-game edit → build → test loop start fabric_build_start({sessionId,projectPath,task:"classes",waitMs:30000}): classes produces the classes runClient consumes and skips jar/remap work. Use task:"build" only when you need the distributable jar (release, export, hand-off). Pass that same sessionId to status and stop calls; only resume it explicitly when continuing an older task.fabric_job_status({sessionId,jobId,waitMs:30000}) instead of polling in a tight loop; it returns when the job settles or the deadline passes. Interpret failures from Gradle output before attempting another edit, and read long failures with minecraft_log_read rather than dumping the log into the conversation.For new content, use fabric_content_workspace(action="template", kind=...) to obtain supported defaults instead of guessing parameters; then customize, preview and save. The template is data only, does not write files and does not replace required vanilla-data lookup.
The plugin does not install a JDK. The environment check and builds resolve the same JDK 21 in this order: toolchain.json → MODCRAFTING_JAVA_HOME → JAVA_HOME → PATH → common installation scan; the resolved home is passed to Gradle. modcrafting_toolchain can persist a JDK 21 path without restarting Qoder. MCP scaffolding includes the pinned Windows Gradle Wrapper; existing projects must provide gradlew.bat. First builds may download Gradle and dependencies. Report actual storage paths; do not move/delete old caches or hardcode machine paths.
For visual recipes, obtain browserUrl from modcrafting_environment_status when using --web. The browser and fabric_recipe_workspace share the same project files. Use action catalog/list/read/save. Before updating, read and pass the exact revision as expectedRevision; use null only for a new ID. On RECIPE_CONFLICT, read and compare instead of blindly overwriting. Five vanilla serializers are editable: shaped, shapeless, smelting, blasting, stonecutting. Unsupported serializers or ingredient forms remain read-only. Saving requires rebuild/restart or explicit game reload before testing. Avoid ambiguous inputs matching vanilla recipes and verify the actual output in game.
For visual content parameters, use fabric_content_workspace list/read/preview/save and the same browser project. Supported declarative types are item, food, block, entity, tool and armor. Read the document; preview with its expectedRevision (null for a new ID), review changed files, then save with the returned previewRevision and the same expectedRevision. A conflict requires read/compare; never bypass it. Handwritten or externally modified generated Java is read-only. Custom textures must reference an existing project PNG; vanilla previews use an optional local cache and may show a labeled type illustration. Entities use the selected pig/zombie AI, collision and attributes. The browser appearance studio can paint the vanilla-layout skin or define up to 32 custom cuboids; saving writes the PNG, appearance data and generated EntityModel/LivingEntityRenderer in one revision-checked transaction. Custom textures are 64×32/64×64 for base skins and 256×256 for custom models; the 3D preview is approximate. Item/food/block/tool/armor content also exposes a direct texture painter and writes the corresponding item or block PNG. The separate texture workspace manages GUI/HUD PNGs under assets//textures/gui; reference them from a GUI image element (for health-bar art, buff icons or other HUD pictures). Sword mining rules and armor appearance follow vanilla types/materials. Rebuild and restart before validating Java changes. Observer capability revision 5 exposes food/block/entity parameters and integrated-server equipment attributes; client attack/knockback attributes may lag. Validate actual effects and cleanup, not only command dispatch or generated source.
For AI item textures, use fabric_texture_workspace and complete the loop yourself in one turn without asking the user to perform manual steps: call prompt for a generation brief, generate a square PNG with your own image tool, then import (sourcePath or sourceBase64), save, and bind when a content object exists or is being created; report quality results, the saved texture and the rebuild/restart reminder once at the end. The tool removes the background, applies Minecraft-aware pixelization, palette/outline/dither rules and quality checks, and stores a candidate. preview is read-only; save requires both the current texture revision and the previewRevision, and bind updates an existing content object through the normal content revision checks. Only PNG is accepted, sizes are 16/32/64, and Alpha must be binary. Offer the browser textures module as an optional pixel-level polish surface for users unsatisfied with the result, never as a required manual stage. Never claim the texture looks correct from generated bytes alone: rebuild, restart, and treat screenshots as visual evidence rather than an automated PASS.
For MC UI creation, use fabric_gui_workspace template/list/read/preview/save and the MC interface editor in browserUrl. template returns a data-only layout and supported component defaults; it does not write files. Supported layouts are custom-screen, option-list and hud-overlay. Use stable unique IDs, GUI-pixel coordinates, native button/toggle/slider controls and labels/panels/display slots. Labels may bind to local control values or player health/food. Buttons only close, reset defaults or increment a chosen slider; no arbitrary scripts or commands. Display slots are not server containers. Read the current revision; preview generated files with expectedRevision, then save with both expectedRevision and previewRevision. Conflicts preserve drafts; external Java is read-only. Rebuild/restart, press the configured key in game, validate actual widget messages/geometry and persisted configuration. Screen closes via its close button or normal Esc; HUD key toggles visibility. Browser interaction only simulates state. HUD trace assertions remain INCONCLUSIVE in the existing engine; report fresh native draw observations/screenshots separately, never as an automatic HUD PASS.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub newstarbar/modcrafting --plugin modcrafting-fabric4 skills in this plugin
/fabric-game-validationValidate Fabric 1.21.4 gameplay changes with Observer V2 and deterministic ModCrafting game tests./modcrafting-planUse first to plan a new or changed Minecraft mod or modpack before implementation. Translate player goals into verified Minecraft mechanisms, compare existing mods, and produce a plain-language user plan plus an agent development guide. 中文:制作或扩展 MC 模组/整合包、复刻或还原玩法时先用;需求收敛、现成模组检索、目标版本源码复盘、双文件方案和最小可玩阶段。已有确认方案的继续开发只复盘变更,不重复规划;插件自身维护和普通故障排查不走本流程。/modcrafting-startHelp a beginner use the ModCrafting plugin. Use for how to use this plugin, getting started, making a Minecraft mod or modpack / 整合包, recreating or 复刻/还原 a game or gameplay, adding items/blocks/entities/recipes/GUI/quests, opening the visual workbench, or diagnosing installation and version problems. For any new creation request, read modcrafting-plan first and confirm the requirement before coding. 中文:怎么使用插件、开始做模组或整合包、复刻/还原玩法、添加物品/方块/生物/配方/界面/任务书、打开可视化工作台、版本或环境问题;新制作需求先用 modcrafting-plan 确认需求。Other plugins' skills for the same job