SecondBrain

SecondBrain

AI-powered NPCs that chat and play like real players

by
22.9K Downloads
fabricadventurecursedsocial
Rent Server with this Mod

Screenshots

Main Screen
Creating an NPC

About this Mod

SecondBrain

mod-logo

A Fabric mod that brings intelligent NPCs to your minecraft world. Create player-like characters controlled by LLMs that respond to your chat messages and perform basic player actions.

This mod works fully serverside. It must also be installed on a client for setup.

Requirements

  • Minecraft Version: 1.20.1/1.21.1
  • Running Ollama server OR Player2 App OR an OpenAi Key

Mod Installation

  1. Download the Mod:
    • Get the latest version of the SecondBrain mod from the Modrinth page.
  2. Install the Mod:
    • Place secondbrain.jar in your mods folder on your minecraft fabric server and client.
  3. Launch Minecraft:
    • Start the Minecraft client and the server, and you're ready!

Usage with Ollama/OpenAi

Note: Player must be an operator to execute the following commands

GUI

  • Open the gui with the /secondbrain command and create/spawn, despawn/delete or edit the NPCs there.
  • Also edit the base configuration there.

Commands (Deprecated)

Warning: This command uses default ollama/openai settings!

  1. Spawn NPCs:
    • Use the /secondbrain add <npcname> <openai|ollama> (currently only ollama is supported) command to create an NPC. (Example: `/secondbrain add sailex428 OLLAMA)
  2. Remove NPCs:
    • Use the /secondbrain remove <npcname> command to remove an NPC from the game world.

Interact with NPCs:

  • Just write in the chat to interact with the NPC.

Setup Ollama

Ollama (Local LLM)

  1. Download Ollama:

    • Visit Ollamas Website and download the installer for your operating system.
  2. Install and Run Ollama:

    • Follow the setup instructions to install.
    • Start Ollama and ensure it's running in the background.
  3. Connect to the Mod:

    • Use the gui to create/edit an NPC and put in the address to your ollama server (complete url with http://...;
      if you're running your ollama on your local pc then you can just use the one that's already typed in)

Setup OpenAi (Paid)

  1. Create API Key
    • Visit OpenAi's website, sign up/log in and create a API key
    • Copy the created key
  2. Use the Key in the mod
    • Open the GUI and create an NPC with the LLM Type OPENAI and paste key into the Key field. (The key wont be ever shared with any other clients that has access to the GUI, also not your client. It will be saved in a secondbrain config file on the server)

Usage with Player2 App

The mod will automatically sync the selected Characters from the player2 App to NPCs in your singleplayer world.
If you updated a description/name in the player2 App you can sync these changes with the command /secondbrain player2 SYNC
It's not possible to change any configs from the Character with this mod.

Interact with NPCs

  • Write messages in the chat or directly to a specific NPC
  • Press and hold alt (win) or opt (macOS) key to talk directly to the LLM/AI
  • Activate Text-To-Speech for any NPC in the config gui to hear the LLM/AI output

Setup Player2 (Free, Limited)

  1. Download Player2 App

  2. Start the App and select Characters

    • Start the downloaded App and select the Characters you wanna use as NPCs

License

This project is licensed under the LGPL-3.0

Disclaimer

Credits

This project utilizes components from the following projects:

Thank you to the developers of these projects for their amazing work!

Available Versions

v3.1.7 [1.20.1] SecondBrainalpha
MC 1.20.1fabric
April 18, 2026
v3.1.7 [1.21.1] SecondBrainalpha
MC 1.21.1fabric
April 18, 2026
v3.1.7 [1.21.10] SecondBrainalpha
MC 1.21.10fabric
April 18, 2026
v3.1.7 [1.21.11] SecondBrainalpha
MC 1.21.11fabric
April 18, 2026
v3.1.7 [1.21.8] SecondBrainalpha
MC 1.21.8fabric
April 18, 2026

How to Install SecondBrain on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set fabric Loader

In the panel under "Egg", select the fabric loader and matching Minecraft version (1.21.11).

3

Install Mod

Open the mod browser in the dashboard and search for "SecondBrain". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

fabric

Minecraft Versions

1.21.11, 1.21.10, 1.21.8 (+5 more)

Server-side

Required

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

SecondBrain server crashes on startup – what to do?

Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21.11). You can switch loaders with one click in the panel.

Is SecondBrain compatible with fabric?

SecondBrain officially supports fabric for Minecraft 1.21.11, 1.21.10, 1.21.8. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with SecondBrain – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if SecondBrain consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install SecondBrain with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
GNU Lesser General Public License v3.0 only
Server-side
Required

Supported Versions

1.21.111.21.101.21.81.21.31.21.11.20.41.20.31.20.1