MCA AI Expansion

Uses LLMs to bring MCA Reborn's villagers to life: they talk in character and act on what you say - follow, fight, work, guard, build and remember - within hearts, rank and personality limits. Bring your own AI key.
item image
item image
item image

Description

MCA AI Expansion is an addon for MCA Reborn that uses large language models (LLMs) to bring its villagers to life. Talk to them in normal chat or in MCA's Talk menu, and the LLM answers as that villager, in character, and then decides what they do about it: follow you, fight beside you, work, guard, trade, build and remember.

Every action goes through hearts, village rank, mood and personality, so a villager who barely knows you won't drop everything because you asked nicely. The LLM chooses what to do, but the mod checks every action against those limits, so it can't be talked past them.

What villagers can do

Talk

  • Real conversations in chat or in MCA's Talk menu, with memory that lasts across restarts.
  • Hearts move with what you say, judged by each villager's personality, mood and how well they already know you.
  • Talk to one villager by name, or to "everyone" or "guards" at once.
  • They know their trades, job, health, mood, gear and your rank in their village, and they tell rumours and legends of real places nearby.
  • Optional romance (off by default), crushes and village weddings, always tasteful.

Act

  • Follow, stay, go home, sit, fight, guard a spot, patrol and defend the village.
  • Standing orders they keep without asking the AI again: "follow me and fight anything that attacks me".
  • Paid work and favours: chopping, farming, fishing, hunting and mining inside an area you mark.
  • Make things of their own trade at their workstation, give and keep gifts, barter, claim beds, change jobs.
  • Look after themselves: eat, rest in the village infirmary when hurt, and take a golden apple when turning into a zombie.

Build

  • Houses and other designs from real materials they fetch from chests or ask you for, shown first as a ghost preview.
  • With Create installed, hand a builder a Create schematic and they build it exactly where it's deployed.
  • Builds are safe to stop and resume, and leftovers go back into the chests.

See all features

Setting up the AI

Villagers act as plain MCA until the chat AI is set up. An operator runs MCA's own command once:

/mca chatAI <model> "<endpoint>" "<api key>"
/mca chatAI claude-haiku-5-5 "https://api.anthropic.com/v1/chat/completions" "sk-ant-your-key-here"

Any LLM with an OpenAI-compatible chat endpoint that supports tool calls works, for example Claude (Anthropic), GPT (OpenAI) or models through OpenRouter, or a local LLM running in Ollama or LM Studio (which needs no key). The endpoint, model and key can also be set in this mod's config.

Privacy and cost

When the chat AI is on, what players say to villagers, along with details about the villager, the player and the area around them, is sent to the LLM service the server owner chose. Nothing is sent anywhere until it's set up. The server owner pays for their own AI use, and the mod logs how many tokens each answer used. For a sense of scale: on our own server, with Claude Haiku 5.5 and a handful of players, two weeks of building, testing and play cost $3.26 in total. Our busiest days, with over 700 villager replies, cost about $1.10, and an ordinary day costs a few cents. That works out at roughly 0.2 cents per reply, counting the villagers' background thoughts. A local LLM keeps everything on your own machine.

Requirements

  • Minecraft 1.21.1 with NeoForge or Fabric. On Fabric you also need Fabric API.
  • MCA Reborn 7.7.x. MCA 7.8 (beta) is not supported yet: it changed the chat AI this mod builds on, and the game will tell you at startup.
  • Install on both the server and every client, at the same version.
  • Optional on NeoForge: Create 6 (schematics and clipboards) and Apotheosis (villager-made gear can come out as affix items). Neither exists for Fabric on 1.21.1, so the Fabric version has everything else.

Configuration

Hearts and rank limits, romance, work, building speed, chat colours and much more are in config/mca_ai_expansion-common.toml. With Cloth Config installed, the in-game settings screen has a tab per section with the everyday settings on top and the rest folded under "Advanced". Open it from the Mods list (on Fabric, through Mod Menu). The AI's instructions are plain text files in config/mca_ai_expansion/prompts/ that you can edit or translate (restart after editing), with a shorter "condensed" set to save tokens.

Source and issues

GPL-3.0, like MCA Reborn. Source code and bug reports: github.com/Ha-TheNut/mca-ai-expansion.

MCA AI Expansion Team

profile avatar
Owner
  • 1
    Projects
  • 53
    Downloads