Compatibility
Minecraft: Java Edition
Platforms
Supported environments
75% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Creators
Details
Secondbrain
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 player actions.
Note: This project is under active development. Future updates will expand the NPCs capabilities.
Requirements
- Minecraft Version: 1.21.1
- Dependencies: fapi, owo-lib on client and serverside
- Running Ollama server
Installation
- Download the Mod:
- Get the latest version of the
SecondBrain
mod from the Modrinth page.
- Get the latest version of the
- Install the Mod:
- Place
SecondBrain.jar
in yourmods
folder on your minecraft fabric server and on your client (or just on your client and use it in singleplayer).
- Place
- Launch Minecraft:
- Start the Minecraft client and the Server and you're ready!
Usage
Note: Player must be operator to execute the following commands
GUI (New)
- 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!
- Spawn NPCs:
- Use the
/secondbrain add <npcname> <openai|ollama>
(currently only ollama is supported) command to create an NPC. (Example: `/secondbrain add sailex428 OLLAMA)
- Use the
- Remove NPCs:
- Use the
/secondbrain remove <npcname>
command to remove an NPC from the game world.
- Use the
Interact with NPCs:
- Just write in the chat to interact with the NPC.
Setting Up LLM Integration
Note: The ollama server needs a minimum of 4gb RAM to run the LLM.
Ollama (Local LLM)
Installation Steps
-
Download Ollama:
- Visit Ollamas Website and download the installer for your operating system.
-
Install and Run Ollama:
- Follow the setup instructions to install.
- Start Ollama and ensure it's running in the background.
-
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://...)
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 open-source projects for their amazing work!