Inspiration. Minecraft has a huge amount of hard facts (recipes, drops, spawn rules, ore heights) and a huge wiki of guides and strategy. It's complicated!
Allay is named for the little blue mob that fetches things for you. The Allay agent goes further and answers your questions for you, ask Allay for help and it will use your inventory, the game's own data, and the Minecraft wiki to help.
Minecraft servers are often run by community members with little funds and no access to cloud services, Allay runs locally at zero cost.
What it does. In Minecraft chat you type /allay what am I missing for an iron pickaxe?. Allay knows what you are holding and where you are, works out the recipe route from the game's data, subtracts what you already have, and replies in a few lines.
Allay will answer how-to and "why" questions ("why shouldn't I dig straight down?") from Minecraft Wiki tutorials, and /allay-explain opens a book showing how Allay answered the question, with the graph path for each fact, for example (Item {Iron Pickaxe})<-[CREATES]-(Recipe)-[REQUIRES]->(Item {Iron Ingot}).
It runs entirely on one machine. No cloud and no API keys, and it needs no network once it is installed (installing downloads the models, the game data and the wiki pages once). The graph is embedded in the agent process with Relate, and the chat model and the embedding model run locally in Ollama.
How I built it.
MINECRAFT SERVER (Paper)
+---------------------------+
| Allay plugin (Java) |
| /allay <question> |
| /allay-explain (book) |
+-------------+-------------+
| question + what you hold
| answer + sources (HTTP, localhost)
v
+---------------------------------------------+ SAME MACHINE,
| Allay agent service (Python) | NO CLOUD
| a small local model picks read-only tools: |
| recipes, route, where to find, my state, |
| wiki search, name lookup |
+--------+-------------------+----------------+
| Cypher | prompts, embeddings
v v
+------------------------+ +-----------------+
| Relate: ONE FILE | | Ollama (local) |
| domain <- server jar | | Qwen3 4B chat |
| players <- plugin | | nomic-embed |
| wiki <- wiki pages | | |
+------------------------+ +-----------------+
- One embedded graph, three kinds of knowledge.
- I build the domain graph straight from the Minecraft server's own jar, so it matches the server's version: about 1,600 items and recipes, 1,100 blocks, 90 mobs, 66 biomes, mining and drop actions, spawn rules and ore placement.
- The live-state graph holds each player's inventory, biome and position, written when they ask.
- The wiki graph holds 703 tutorial passages with their page and section. About 7,000 nodes and 14,600 relationships in one 33 MB file.
- Read-only, purpose-built tools (not a free-form query tool): recipes, "what do I need", where to find something, my state, wiki search, name lookup. The player comes from the request, never from the model, so a player cannot ask about someone else's inventory.
- Hybrid wiki search in the same store: a vector index (nomic-embed-text, 768 dimensions) and a full-text BM25 index, fused with reciprocal rank fusion, with a relevance check measured on real questions so an unrelated question gets "I could not find that", not an invented answer.
- A thin Minecraft Paper server plugin that sends the question and a snapshot of the player to a small local service.
- Sources built by code. The explain book's sources come from what each tool actually returned and every graph path shown is run as a query in the tests, so each one is a path that exists.
Does the graph help? I asked the same 4B-parameter local model 36 questions (recipes, ore heights, drops, spawns, tools, routes, misspelt names, things it cannot do, things that do not exist) twice: alone, and as the agent with the graph. Alone it got 8 of 36; with the graph it got 36 of 36.
Challenges.
- Performance on CPU only machines. A small model on a CPU generates about 10 tokens a second meaning every extra token costs a second, so I kept tool results small, dropped whole entries rather than cutting JSON, and kept answers short.
- Choosing between tools. The 4B model often answered a wiki question with a game-data tool, or refused a Minecraft question as off-topic. Prompt wording alone was unreliable (3, 2 and 4 of 6 across rewordings); moving the decision into the agent loop made it reliable.
- Relevance. Embedding scores for this model are compressed: questions the wiki covers and ones it does not overlap, so I measured them on real questions and combined the score with a keyword-coverage check.
- Licence. The wiki text is CC BY-NC-SA, so it is fetched on the user's machine at build time and never committed or shipped.
What I learned. That a small model + a Relate graph is a powerful architecture for local implementations.
The most useful parts were the graph (facts the model cannot remember or doesn't know), the live state (context it cannot know), and a rule that the agent may only state what a tool returned.
What's next. A held-out question set (the honest answer to the tuning caveat), a memory graph so Allay remembers a player's earlier questions, more wiki pages, and a first release with a prebuilt plugin jar.
Built on earlier work. The tool design, result budgets and benchmark method come from my earlier project MineCorp, which used Neo4j and a cloud model. Allay is a new repository: the jar parsers, queries and tools were rewritten for Relate and a local model, and the README says what was ported.