ai-minecraft-modmaker README

The project's README from github.com/DolphinStronghold9/ai-minecraft-modmaker. As one markdown file: README.md.

Mortar. Describe it, Mortar builds it in your Minecraft world.

Release v1.11.2 Windows 10/11, portable MIT license Free Java Edition 26.1 to 26.3 Works with Fabric, Paper and Horizon Built with Rust

Install · How to use · What makes it different · How it works · FAQ

Mortar looks at the hill the player stands on, shows a watchtower as a ghost, places it when asked and lists the materials for survival

Like Claude Code for Minecraft. Say what to build, see the ghost, place it.

Mortar is an AI agent in your terminal that builds in your Minecraft world. A small companion mod lets it see where you're standing. It shows the build as a ghost you can walk around, and it only places the blocks when you say yes. One /undo puts everything back. It writes datapacks too.

It's free and open source. Out of the box it runs on a free local model through Ollama; if you already have a key for Claude, GPT or Gemini, it works with that too. No credits, no quotas, no paid tier.

Install

System File
Windows 10 and 11 ai-minecraft-modmaker.zip — Main.exe, its settings and mortar

Unpack the zip and start Main.exe. Keep mortar beside it. Then add the companion for the place you play:

Where you play What to install
Singleplayer or LAN, Java Edition 26.1–26.3 The Fabric companion in your mods folder, with Fabric Loader and Fabric API (build it)
A Paper server you run The Paper plugin in plugins (build it). You need to be an operator
Minecraft on Rust (Horizon) Nothing. Turn on Agent Control in Horizon's settings

How to use

  1. Join your world and stand where you want to build.
  2. Run mortar in a terminal.
  3. Say what you want. Walk around the ghost, then press 1 to place it.
› a stone watchtower on this hill, spruce roof, ladder inside
› widen the path to the village to three blocks and light it every 8 blocks
› golden carrots give speed for 10 seconds

What makes it different

Ghost preview

A watchtower shown as a see-through aqua ghost on a hill, with the terminal asking whether to place it

The build shows up in your world as see-through blocks that only you can see. Walk around it, look at it from the window of your house, then answer in the terminal. Choose Move or rotate first to shift it a few blocks or turn it before anything is placed.

Sees where you're standing

Before it plans anything, Mortar reads the area around you: the terrain, the biome, the block you're looking at and the builds nearby. A tower lands on the hill instead of floating next to it, and it uses the spruce and cobblestone that are already around instead of a random palette.

One undo

Mortar takes a snapshot of the area before every turn. /undo puts back every block the turn touched, including the grass under the footing. Large builds are placed in batches that stay under the game's block-change limit, so nothing gets cut off halfway.

Datapacks too

Mortar writes a three-file datapack, reloads, finds an item id typo in the log, fixes it, reloads cleanly and tests the effect

Ask for game rules instead of blocks and Mortar writes a datapack: functions, advancements, recipes or loot tables, with the right pack format for your version. Then it runs /reload, reads the log, fixes what failed and tests it. A pack you didn't want goes away with /undo, like a build.

Built for survival too

The materials list for the watchtower: counts, stacks and raw materials, plus an export to .litematic and .nbt

/materials lists every block a build needs, in stacks and from scratch, smelting included. /export saves it as .litematic, .schem or a structure .nbt, so you can build it by hand or share it.

Also

How it works

Commands

Command What it does
/undo · /redo Put back everything the last turn changed, or bring it back
/move 3 0 -2 · /rotate 90 Shift or turn the ghost before placing
/materials Blocks needed, in stacks and from scratch
/export <file> Save the last build as .litematic, .schem or .nbt
/mode ask · /mode auto Ask before every change, or place right away
/model Switch model for this session

Build from source

You need Rust 1.85 or newer. The companions need JDK 25.

git clone https://github.com/DolphinStronghold9/ai-minecraft-modmaker.git
cd ai-minecraft-modmaker
cargo build --release                      # the mortar command
cargo test --workspace
cd companion/fabric && ./gradlew build     # the Fabric companion
cd ../paper && ./gradlew build             # the Paper plugin
Path What's inside
crates/mortar-cli The mortar command: the session, models and the terminal UI
crates/mortar-core Block changes, ghosts, batching and the undo journal
companion/fabric The client companion for Java Edition
companion/paper The server plugin
examples/MORTAR.md An example rules file

FAQ

Is this made by Mojang or by the Horizon team?

No. Mortar is an independent open-source project. It isn't affiliated with Mojang, Microsoft or the Horizon project.

Can I use it on any server?

Only on servers where you're an operator, and only if the server allows it. Mortar never works around permissions. If you can't run /fill, Mortar can't either.

Does it work on Bedrock Edition?

Not today. Mortar supports Java Edition 26.1 to 26.3 through Fabric or Paper, and Minecraft on Rust through Horizon.

What does it cost?

Nothing. Mortar is free and open source, and with a local model the whole thing costs $0. If you pick a cloud model, you pay only your provider; Mortar takes nothing.

What if I don't like a build after I've walked away?

/undo still works after you log out and back in, because the undo journal is stored in .mortar/ inside your world folder. Run it once per turn to step back further.

Is Mortar like WorldEdit or Litematica?

It works alongside them. WorldEdit is great when you know the commands, and Litematica shows schematics someone already made. Mortar makes the build from a sentence, shows it as a ghost and exports it as .schem or .litematic, so you can keep using both.

License

Mortar is MIT licensed.

Minecraft is a trademark of Mojang Synergies AB. Mortar isn't an official Minecraft product and isn't approved by or associated with Mojang or Microsoft.

WorldEdit, Litematica and Claude Code are named for comparison only. Mortar isn't affiliated with their authors or with Anthropic.

ai-minecraft-modmaker (DolphinStronghold9/ai-minecraft-modmaker)

Searching Database…

Describe a mod or a structure and this terminal agent builds it in Minecraft: ghost preview before placing, one-step undo, datapacks that reload clean, survival materials list.

Size
3.5 MB
Stars
147
Updated
PushOct 30
Age
1d
Commits · 90 Days