Home›Java›Mods›Comparator
Comparator
ModsJava

Comparator

Java mod listed for Minecraft 26.x. Downloads from the MC Java Mods app on Android.

by fletchly · on Modrinth

Which Minecraft do you have?

Every version of the game needs its own build. Pick yours, then download — the wrong build installs fine and then does nothing in the game. This mod is built for Paper only.

⬇ Download for 26.1–26.1.2⬇ Download for 1.21–1.21.11
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.
Comparator — screenshot 1Comparator — screenshot 2

Comparator

The AI agent built for Minecraft.

Github Modrinth Release Documentation Minecraft Version License Build

Comparator brings a fully conversational AI agent to your Paper server; with multi-turn memory, built-in tools, and an API to extend it on your own.


Features

🤖 Conversational AI Agent

Embed a fully conversational AI agent directly into your Minecraft server. Comparator maintains context across messages for natural, coherent dialogue; not just one-shot responses.

🔧 Built-In Tools

The agent can to more than just chat. Comparator ships with several built-in tools the AI can invoke to give accurate, grounded answers:

Tool Description
Web Search Searches the web for up-to-date information, so the agent isn't limited to its training data
Current Date Retrieves the current date, helping the agent reason about how recent its knowledge is
Game Version Fetches the server's running Minecraft version so answers are version-accurate
Player Info Retrieves the player's surroundings, inventory, nearby entities, biome, game mode, and what they're looking at. This enables contextual in-game assistance

🌐 Embedded Web Panel

Comparator includes a built-in web panel served directly from the plugin via an embedded server. It gives server admins a live view into conversations, tool runs, and registered tools with real-time updates. No separate deployment needed; just configure the host and port in comparator.conf and run /comparator panel start to launch it.

🧩 Extensible Tool API

Third-party plugins can register their own tools using the Comparator API. Defining a tool is as simple as annotating a function:

@ToolFunction("give_item", "Gives an item to the requesting player")
suspend fun giveItem(
    @ToolParameter("The item to give") item: String,
    context: ToolContext
): GiveResult {
    val player = context.bukkitPlayer ?: throw ToolException("No player context", null)
    // ...
}

// Register during ToolRegistrationEvent
event.registry.register(tool(::giveItem))

The API handles parameter validation, type checking, serialization, and error reporting automatically. See the API docs for full details.

🔒 Designed for Responsible AI Use

Comparator was built with safety and transparency in mind. This sets it apart from plugins that simply wrap an AI API with no guardrails:

⚡ High-Performance, Non-Blocking Architecture

Built on Kotlin coroutines for fully non-blocking execution. AI requests, tool calls, and context operations never block the server thread, so the agent has no impact on server tick performance.

✨ Flexible AI Provider Support

Integrates with Ollama, supporting both cloud-hosted and self-hosted models. Configure your model, base URL, and optional API key in comparator.conf.


Installation

  1. Download the plugin .jar from Modrinth or GitHub Releases
  2. Place the .jar in your server's plugins/ folder
  3. Restart your server
  4. Follow the quickstart guide to complete setup

Usage

Ask in private (DM-style):

/ask <prompt>

Mention in public chat:

@bot <prompt>

For full usage information, see the documentation.


Support


Contributing

Contributions are welcome!

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/my-feature
  3. Commit your changes: git commit -m "Add my feature"
  4. Push and open a Pull Request

Please follow the existing code style and include tests where applicable. For more details, see CONTRIBUTING.md.


Credits

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

File checked by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more