AI-NPC Launcher is a Minecraft mod that launches and controls the AI-NPC client, enabling you to create and interact with NPCs that can move, mine, and chat with players in the game. This mod serves as the launcher for the AI-NPC client, which powers the actual NPC functionality. Currently, the AI-NPC's capabilities include basic movement, mining actions, and chatting with players.
Note: This project is under active development. Future updates will expand the NPCs capabilities.
Download the Mod:
Install the Mod:
AI-NPC Launcher
in your mods
folder on the server (from version 1.0.4).Launch Minecraft:
(Player must be operator to execute these commands)
Set Configuration:
/setconfig <propertyKey> <propertyValue>
command to set the properties. (Example: /setconfig npc.llm.openai.api_key sk-proj-XYZ...
)Spawn NPCs:
/npc add <npcname> <isOffline> <openai|ollama> <llm model>
command to create an NPC. (Example: /npc add sailex428 true openai gpt-4o-mini
) (at this point only openai is supported)Remove NPCs:
/npc remove <npcname>
command to remove an NPC from the game world.Interact with NPCs:
Create an Account:
Purchase Credits:
Generate an API Key:
Add the API Key to the Mod:
/setconfig npc.llm.openai.api_key <your_api_key>
in-game to set the key. Ollama is a local LLM platform for running AI models directly on your machine, reducing reliance on external APIs.
Download Ollama:
Install and Run Ollama:
Connect to the Mod:
/npc add
command with ollama
as the model type. /npc add sailex true ollama gemma2
/setconfig npc.llm.ollama.url <youre server address>
.This project is under development, and additional features will be released over time. Upcoming features may include combat skills and more interactions like crafting.
This project is licensed under the LGPL-3.0.