Dev blog · Guides · 2026-11-18
Claude Code and Codex for Minecraft modding: Fabric, Paper and Mixins without the guesswork
Ask an AI agent to write a Fabric mod and it will write one with confidence. Then it won’t compile: the method was renamed two versions ago, the Mixin targets a signature that no longer exists, or a client-only class ended up on the server.
Minecraft breaks at the details. Every release shifts names, mappings and lifecycles, and a model trained on a mix of versions can’t tell which one your project uses.
The fix: give the agent your project’s facts
MineCode is a free, MIT-licensed MCP server and skill set built for this. It doesn’t write your mod. It gives your agent evidence, so the code it writes matches your Minecraft version and your mappings.
What it adds:
- Project inspection. It reads your Gradle build and reports the Minecraft version, loader, mappings, mod ID, Mixin configs and entrypoints. Anything it can’t determine is reported as unknown rather than guessed.
- Version-exact references. It searches mappings and sources for the version you’re on. Ask for
InGameHud renderon 1.21.11 and you get the real parameters (DrawContext,RenderTickCounter) with where they came from. - Crash diagnosis. Paste a Mixin, startup or build failure and it classifies the cause, and says how sure it is.
- Build and launch (opt-in). It can run Gradle tasks, build the jar or try a short client launch, but only after you enable execution for that project.
It also ships six skills: Java developer, client developer, Paper server developer, project inspector, debugger and anti-cheat compatibility. The anti-cheat skill investigates false positives against legitimate players. It explicitly refuses bypass work.
Is it safe?
We read the code before adding it to the catalog. Running Gradle, downloading references and calling external providers are all off by default, and each is a separate opt-in. It makes no AI model calls and needs no account. Each server is locked to the one project folder you choose.
It runs code on your machine (Python and, if you allow it, your project’s Gradle wrapper), so only point it at projects you trust.
Install it
One click: open Calyban, search MineCode and press Install. Choose your mod or plugin folder when asked. Calyban runs it from an exact, reviewed commit using uv, so you don’t set up Python environments by hand. Its six skills are in the catalog too.
By hand: follow the MineCode installation guide. It uses Python 3.11+ and its own minecode setup command for Claude Code or Codex.
Then start a fresh session in your project and ask the agent to call minecode.get_project_profile. If it reports the right Minecraft version and loader, you’re set.
Tips that matter more than any tool
- Name the version. “Fabric 1.21.11, Yarn mappings” in your first message saves a dozen wrong turns.
- Make it check first. Have it look up the signature before writing a Mixin.
- Build and run often. A mod that compiles hasn’t been tested. Launch it.
MineCode’s own README says it well: it’s a tool, not a substitute for knowing Java. Use it to learn faster, not to skip learning.
More for game and Java developers is in the catalog. Missing something? Tell us on Discord.