跳到正文

ollamachat

作者:xingwangzhe

在Minecraft中与来自Ollama的本地部署AI模型聊天。

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

OllamaChat Mod (Fabric)

Empower Minecraft players to interact with locally deployed AI(Free for use) models through in-game commands! Built on Ollama, this mod enables dynamic AI-generated conversations.

Thank DeepSeek Chat for helping me solve various problems and writing most of the network communication code and other code.


🛠️ Prerequisites

  • Must have Ollama installed locally with at least one model deployed.
  • Run ollama serve in your terminal to start the local service.
  • Download models using ollama pull <model-name> (e.g., llama3).

✨ Key Features

  1. Model Switching Seamlessly switch between downloaded models in-game.
  2. Real-time Chat Send messages starting with ai to receive AI-generated responses.
  3. Service Control Manage Ollama service status directly via commands.

📜 Command List

| Command | Description |
|——————————-|——————————|
| /ollama list | List all downloaded models |
| /ollama model <model-name> | Switch to a specific model |
| /ollama serve | Start the Ollama service |
| /ollama ps | View active model processes |


🎮 Usage Examples

  1. Set Model /ollama model llama3 Switch to the “llama3” model.
  1. Send Request Type in chat: ai How to build a house in Minecraft? The AI will respond with an answer in-game.

⚠️ Important Notes

  • Ensure Ollama is properly installed and models are downloaded via CLI before use.
  • Check if the Ollama service is running if you encounter timeout errors.
  • Response speed depends on your local hardware performance.

常见问题

ollamachat 支持哪些 Minecraft 版本?

ollamachat 支持 Minecraft Java 版 1.20.1,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

ollamachat 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅客户端。

评论

登录后评论和评分

xingwangzhe 的其他作品

查看全部 →