
Saro's AI Chat Mod 将人工智能引入 Minecraft,你可以与之书写、交谈,并让它随意改变你的游戏。选择你想要的 AI:Google Gemini、xAI Grok 或 在本地 PC 上运行的免费 AI。无需其他安装:只需将 JAR 文件放入 mods 文件夹,在设置界面中选择你的 AI,即可开始。

亮点
- 选择你的 AI ?:使用你自己的 API 密钥连接 Gemini 或 Grok,或使用本地 AI(私密、离线可用、无需密钥)。
- 一键本地 AI ?:模组在游戏内下载所需的一切。无需 Ollama、Python 或其他额外程序。
- 语音聊天 ?️:按住 V 说话,或按 B 进行免提 AI 通话。AI 能理解所有语言并以真实声音回答。
- 混乱模式 ?:AI 实时改变你的游戏:重力、跳跃高度、逃跑的菜单按钮、交换的物品名称、鸡叫声、粉色草地、掉落 TNT 的猪、新的合成配方……无需任何重载或加载屏幕。
- AI 编写实时代码 ?:询问任何内容(“给我一个闪电法杖”、“一个把我弹到空中的方块”、“让我的快捷栏飞起来”),AI 会即时编程实现。它立即运行,无需重启。
- AI 建造 ?:要求一座别墅、城堡或灯塔,AI 会自行设计并在你面前逐层建造。或者它可以放置真实的结构,如冰屋、沙漠神殿或整个村庄。
- AI 撰写书籍 ?:说“我英语不好”,你就会得到一本包含简易英语课程的书面书籍。
- 动画“思考”行 ✨:AI 的思考聊天行会进行动画演示,随后变为答案。
- 危险操作前询问 ✅:如果 AI 想在不被要求的情况下改变天气、传送你或清空你的物品栏,它会先询问 [是]/[否](可关闭)。
- 面向未来:如果 Google 或 xAI 弃用某个模型,模组会自动选择一个可用的模型。
⚠ 光敏性警告
混乱模式可能会产生画面抖动、倾斜视角、闪烁或快速变化的颜色与纹理以及移动的菜单。这些效果可能会触发光敏性癫痫患者的癫痫发作,即使他们以前从未有过发作经历。如果你或你的家人患有癫痫,或者闪烁的光线曾让你感到不适,请勿使用混乱模式。如果你感到头晕、视力模糊、眼睛或肌肉抽搐或任何不自主运动,请停止游玩并就医。模组会在首次启动时显示一次此警告。
本地 AI
本地 AI 使用 llama.cpp(MIT 许可证)和 Qwen3 模型(Apache 2.0 许可证)。当你点击 下载 & 安装 时,它们会从官方来源下载。它们不属于模组文件的一部分。你可以选择大小并指定文件的存储位置:
| 模型 |
下载大小 |
推荐配置 |
| 轻量版 (Qwen3 1.7B) |
1.8 GB |
8 GB RAM,无需显卡即可运行 |
| 标准版 (Qwen3 4B) |
2.5 GB |
显存 4 GB 的 GPU 或 16 GB RAM |
| 强力版 (Qwen3 8B) |
5.0 GB |
显存 8 GB 的 GPU |
| 超频版 (Qwen3 14B) |
9.0 GB |
显存 12 GB 的 GPU |
- 设置界面会检测你的 RAM 和显卡,为你的 PC 预选最佳模型并用 ★ 标记。
- GPU 或 CPU:在显卡(VRAM)上运行速度要快得多,并且让你的 RAM 空闲出来供 Windows 和 Minecraft 使用。
- 更大的模型遵循指令和构建能力都强得多。如果没有合适的显卡,一次回答可能需要 10 到 60 秒。
- 中断的下载会从停止处继续。
- 支持:Windows (x64/ARM)、Linux (x64/ARM)、macOS (Apple Silicon)。在其他系统上,你可以通过
localEndpoint 连接现有的 Ollama 或 LM Studio 服务器。
- 随时卸载:从设置界面删除单个模型或所有内容,或使用
/aichat local delete all 命令。
语音聊天
- 按键说话:按住 V,说话,松开。AI 理解的内容会显示在聊天栏中。
- AI 通话:按 B 并直接说话,AI 会一直监听,并在它说话时静音你的麦克风。再次按 B 挂断。
- 回答会以你所说的语言朗读(31 种语言)。当 AI 提问时,你也可以简单地说“是”或“否”。
- 完全在你的 PC 上运行:语音识别使用 whisper.cpp(MIT),语音合成使用 Piper(MIT)。约 300 MB,在设置中一键安装。仅下载你游戏语言的语音,其他语言在首次使用时下载。
- 按键可在 选项 > 控制 > Saros AI Chat 中更改。
混乱模式
在 ✦ AI Chat > Chaos mode… 中开启它,并要求 AI “让它疯狂起来”。或者开启 director(导演) 模式,AI 会每隔几分钟自行升级混乱程度。
- 26 个实时控制杆:跳跃高度、重力、速度、挖掘速度、伤害、摔落伤害、击退、怪物速度、和平生物、随机掉落、爆炸方块、每次跳跃出现一只鸡、刻速、堆叠大小、视野、摄像机倾斜和晃动、镜像 HUD、奔跑并交换菜单按钮、交换物品名称、声音音调、鸡叫声、怪物大小、反转鼠标。
- 无需重载的实时重新编程:新的掉落物(“猪掉落 TNT”)、触发器规则(“每次跳跃引发闪电”)、新的合成配方和纹理更改(粉色、反转、彩虹、交换纹理)。
- 实时代码:对于其他一切,AI 会编写小型 JavaScript 程序,这些程序会在服务器端(响应点击、跳跃、攻击、挖掘、聊天……以及生成、建造、爆炸、传送、给予物品)或你的屏幕上(移动/旋转 HUD、绘制、倾斜摄像机)即时运行。如果脚本出错,AI 会自动修复它。
- 脚本在沙箱中运行:它们只能使用模组提供的游戏函数,无法访问文件、互联网或你的电脑,且无限循环会被自动停止。
- 你也可以在混乱屏幕中使用滑块手动调整每个控制杆。
- 安全:所有更改在 10 分钟后结束(可配置),使用“Reset all”或
/aichat chaos reset 可立即停止所有操作,重启后始终恢复正常。AI 规则以与数据包函数相同的权限运行,因此 op 或 stop 等命令是不可能的。
功能
- 上下文感知 ?:AI 知道你的位置、生物群系、天气、时间,并在你询问时知道你的属性和物品栏。
- 对话记忆 ?:AI 会记住最后几条消息。使用
!clear 或 /aichat clear 重置。
- 支持每种语言 ?:AI 会用你书写或说话的语言回答。
- 可选 AI 动作(作弊) ?:给予/移除物品、填满箱子、重命名/附魔/修理你手持的物品、建造、放置结构、书籍、效果、天气/时间、传送、召唤生物(无限制,如需限制请设置
maxSummon)、定位结构和命令。危险命令(op、stop、ban、execute …)始终被阻止;该列表可配置。
- 隐藏 API 密钥:设置中的密钥字段显示为点,因此你的密钥不会出现在截图或直播中。

命令
| 命令 |
作用 |
/aichatgui |
打开设置(标题屏幕和暂停菜单中的 ✦ AI Chat 按钮也可用) |
/aichat status |
显示当前活跃的 AI |
/aichat clear |
忘记对话内容 |
/aichat provider <gemini|grok|local> |
切换 AI(管理员) |
/aichat local setup |
下载并启动本地 AI(管理员,专用服务器也适用) |
/aichat local model <light|normal|strong|ultra> |
更改本地模型大小 |
/aichat local device <gpu|cpu> |
在 GPU 或 CPU 上运行本地 AI |
/aichat local delete <model|all> |
删除下载的模型或卸载本地 AI |
/aichat chaos reset |
立即停止所有混乱(任何人可用) |
/aichat chaos director <on|off> |
AI 自行升级混乱程度(管理员) |
/aichat chaos set <lever> <value> |
手动调整混乱控制杆(管理员) |
/aichat chaos scripts |
列出 AI 正在运行的脚本 |
/aichat chaos stopscript <name> |
停止某个脚本(管理员) |
/aichat confirm / /aichat deny |
回答 AI 的是/否问题 |
支持
配置示例
[api]
# gemini, grok 或 local
provider = "local"
geminiApiKey = "YOUR_GEMINI_API_KEY_HERE"
grokApiKey = ""
[local]
# light, normal, strong 或 ultra,留空 = 最适合此电脑
modelTier = ""
# gpu 或 cpu
device = "gpu"
# AI 文件的文件夹,留空 = <minecraft folder>/sarosaichat
storageDir = ""
# 使用现有的 Ollama / LM Studio 服务器,例如 http://127.0.0.1:11434/v1
localEndpoint = ""
[voice]
speakAnswers = true
[features]
enableCheatAI = false
askBeforeRiskyActions = true
# 0 = 无限制
maxSummon = 0
chaosMode = false
chaosMinutes = 10
致谢
- llama.cpp 和 whisper.cpp by ggml-org,MIT 许可证
- Qwen 团队(阿里巴巴云)的 Qwen3 模型,Apache 2.0 许可证
- Mozilla 的 Rhino JavaScript 引擎,MPL 2.0 许可证(包含在模组中)
- Rhasspy / Michael Hansen 的 Piper,MIT 许可证,语音来自 piper-voices
- CC0 许可的语音(无需署名,但仍感谢):Thorsten Müller (Thorsten-Voice,德语) 和其他 CC0 语音
- 知识共享署名许可的语音,请在 piper-voices 上查看每个语音的 MODEL_CARD 以获取数据集及其作者信息:
- 加泰罗尼亚语
ca_ES-upc_ona-medium (CC BY-SA 3.0 ES)
- 威尔士语
cy_GB-bu_tts-medium (CC BY)
- 爱沙尼亚语
et_EE-news-medium (CC BY)
- 巴斯克语
eu_ES-antton-medium (CC BY 4.0)
- 法语
fr_FR-mls-medium (CC BY 4.0)
- 意大利语
it_IT-serena-medium (CC BY 4.0)
- 立陶宛语
lt_LT-reginute1-medium (CC BY 4.0)
- 泰卢固语
te_IN-padmavathi-medium (CC BY 4.0)
如需支持、反馈或建议,请加入我的 Discord 社区并关注模组开发!

项目支持与用法
主机托管: 为了获得最佳性能,我推荐使用横幅中链接的 BisectHosting。
整合包: 你可以自由地将我的作品包含在任何整合包中。请确保通过提供指向本项目页面的链接来给予适当的署名。

Saro's AI Chat Mod puts an AI into Minecraft that you can write to, talk to, and let loose on your game. Pick the AI you want: Google Gemini, xAI Grok or a free local AI that runs on your own PC. Nothing else to install: drop the JAR into your mods folder, choose your AI in the setup screen, done.

Highlights
- Choose your AI ?: Gemini or Grok with your own API key, or Local AI (private, works offline, no key needed).
- Local AI with one click ?: the mod downloads everything it needs in-game. No Ollama, no Python, no extra programs.
- Voice chat ?️: hold V to talk, or press B for a hands-free AI call. The AI understands every language and answers with a real voice.
- Chaos mode ?: the AI changes your game live: gravity, jump height, menu buttons that run away, swapped item names, chicken sounds, pink grass, pigs that drop TNT, new crafting recipes… without any reload or loading screen.
- The AI writes live code ?: ask for anything ("give me a lightning wand", "a block that bounces me into the sky", "let my hotbar fly around") and the AI programs it on the spot. It runs instantly, no restart.
- The AI builds ?: ask for a villa, a castle or a lighthouse and the AI designs it itself and builds it in front of you, layer by layer. Or it places real structures like an igloo, a desert temple or a whole village.
- The AI writes books ?: say "I'm bad at English" and you get a written book with a little English course.
- Animated "thinking" line ✨: the AI's chat line animates while it thinks and turns into the answer.
- Asks before risky things ✅: if the AI wants to change the weather, teleport you or clear your inventory without you asking, it asks [Yes]/[No] first (can be turned off).
- Future-proof: if Google or xAI retire a model, the mod picks an available one automatically.
⚠ Photosensitivity warning
Chaos mode can create camera shake, tilted views, flashing or quickly changing colors and textures and moving menus. These effects may trigger seizures in people with photosensitive epilepsy, even if they never had a seizure before. If you or someone in your family has epilepsy, or flashing lights ever made you feel unwell, do not use chaos mode. Stop playing and see a doctor if you feel dizzy, have blurred vision, eye or muscle twitches or any involuntary movement. The mod shows this warning once on the first start.
Local AI
The local AI uses llama.cpp (MIT license) and the Qwen3 models (Apache 2.0 license). Both are downloaded from their official sources when you click Download & Install. They are not part of the mod file. You choose the size and where the files are stored:
| Model |
Download |
Recommended |
| Light (Qwen3 1.7B) |
1.8 GB |
8 GB RAM, works without a graphics card |
| Normal (Qwen3 4B) |
2.5 GB |
GPU with 4 GB VRAM or 16 GB RAM |
| Strong (Qwen3 8B) |
5.0 GB |
GPU with 8 GB VRAM |
| Ultra (Qwen3 14B) |
9.0 GB |
GPU with 12 GB VRAM |
- The setup screen detects your RAM and graphics card, preselects the best model for your PC and marks it with ★.
- GPU or CPU: running on the graphics card (VRAM) is much faster and keeps your RAM free for Windows and Minecraft.
- Bigger models follow instructions and build much better. Without a fitting graphics card, an answer can take 10 to 60 seconds.
- Interrupted downloads continue where they stopped.
- Supported: Windows (x64/ARM), Linux (x64/ARM), macOS (Apple Silicon). On other systems you can connect an existing Ollama or LM Studio server via
localEndpoint.
- Uninstall at any time: delete single models or everything from the setup screen, or with
/aichat local delete all.
Voice chat
- Push-to-talk: hold V, speak, let go. What the AI understood appears in chat.
- AI call: press B and just talk, the AI listens all the time and mutes your mic while it speaks. Press B again to hang up.
- Answers are read aloud in the language you speak (31 languages). You can also simply say "yes" or "no" when the AI asks something.
- Runs completely on your PC: speech recognition with whisper.cpp (MIT), voices with Piper (MIT). About 300 MB, installed with one click in the settings. Only the voice for your game language is downloaded, others on first use.
- Keys can be changed in Options > Controls > Saros AI Chat.
Chaos mode
Turn it on in ✦ AI Chat > Chaos mode… and ask the AI to "make it crazy". Or turn on the director and the AI escalates on its own every few minutes.
- 26 live levers: jump height, gravity, speed, mining speed, damage, fall damage, knockback, mob speed, peaceful mobs, random drops, exploding blocks, a chicken on every jump, tick speed, stack size, field of view, camera tilt and shake, mirrored HUD, running and swapped menu buttons, swapped item names, sound pitch, chicken sounds, mob size, inverted mouse.
- Live reprogramming without reload: new drops ("pigs drop TNT"), rules that run on a trigger ("lightning on every jump"), new crafting recipes and texture changes (pink, inverted, rainbow, swapped textures).
- Live code: for everything else the AI writes small JavaScript programs that run instantly, on the server (react to clicks, jumps, hits, mining, chat… and spawn, build, explode, teleport, give items) or on your screen (move/rotate the HUD, draw, tilt the camera). If a script breaks, the AI repairs it itself.
- Scripts run in a sandbox: they can only use the game functions the mod offers, no files, no internet, no access to your PC, and endless loops are stopped automatically.
- You can also turn every lever yourself with sliders in the chaos screen.
- Safe: every change ends after 10 minutes (configurable), "Reset all" or
/aichat chaos reset stops everything at once, a restart is always back to normal. AI rules run with the same permissions as datapack functions, so commands like op or stop are impossible.
Features
- Context awareness ?: the AI knows your position, biome, weather, time and, when you ask, your stats and inventory.
- Conversation memory ?: the AI remembers the last messages. Reset with
!clear or /aichat clear.
- Every language ?: the AI answers in the language you write or speak in.
- Optional AI actions (cheats) ?: give/remove items, filled chests, rename/enchant/repair your held item, build, place structures, books, effects, weather/time, teleport, summon mobs (no limit, set
maxSummon if you want one), locate structures and commands. Dangerous commands (op, stop, ban, execute …) are always blocked; the list is configurable.
- Hidden API key: the key field in the settings shows dots, so your key does not end up in a screenshot or stream.

Commands
| Command |
What it does |
/aichatgui |
Open the settings (also the ✦ AI Chat button on the title screen and in the pause menu) |
/aichat status |
Show the active AI |
/aichat clear |
Forget the conversation |
/aichat provider <gemini|grok|local> |
Switch the AI (admin) |
/aichat local setup |
Download and start the local AI (admin, also works on dedicated servers) |
/aichat local model <light|normal|strong|ultra> |
Change the local model size |
/aichat local device <gpu|cpu> |
Run the local AI on GPU or CPU |
/aichat local delete <model|all> |
Delete downloaded models or uninstall the local AI |
/aichat chaos reset |
Stop all chaos at once (anyone) |
/aichat chaos director <on|off> |
The AI escalates on its own (admin) |
/aichat chaos set <lever> <value> |
Turn a chaos lever by hand (admin) |
/aichat chaos scripts |
List the AI's running scripts |
/aichat chaos stopscript <name> |
Stop one script (admin) |
/aichat confirm / /aichat deny |
Answer the AI's yes/no question |
Supported
Configuration Example
[api]
# gemini, grok or local
provider = "local"
geminiApiKey = "YOUR_GEMINI_API_KEY_HERE"
grokApiKey = ""
[local]
# light, normal, strong or ultra, empty = best for this PC
modelTier = ""
# gpu or cpu
device = "gpu"
# Folder for the AI files, empty = <minecraft folder>/sarosaichat
storageDir = ""
# Use an existing Ollama / LM Studio server instead, e.g. http://127.0.0.1:11434/v1
localEndpoint = ""
[voice]
speakAnswers = true
[features]
enableCheatAI = false
askBeforeRiskyActions = true
# 0 = no limit
maxSummon = 0
chaosMode = false
chaosMinutes = 10
Credits
- llama.cpp and whisper.cpp by ggml-org, MIT license
- Qwen3 models by the Qwen team (Alibaba Cloud), Apache 2.0 license
- Rhino JavaScript engine by Mozilla, MPL 2.0 license (included in the mod)
- Piper by Rhasspy / Michael Hansen, MIT license, voices from piper-voices
- Voices under CC0 (no attribution required, thank you anyway): Thorsten Müller (Thorsten-Voice, German) and the other CC0 voices
- Voices under Creative Commons Attribution, see each voice's MODEL_CARD on piper-voices for the dataset and its authors:
- Catalan
ca_ES-upc_ona-medium (CC BY-SA 3.0 ES)
- Welsh
cy_GB-bu_tts-medium (CC BY)
- Estonian
et_EE-news-medium (CC BY)
- Basque
eu_ES-antton-medium (CC BY 4.0)
- French
fr_FR-mls-medium (CC BY 4.0)
- Italian
it_IT-serena-medium (CC BY 4.0)
- Lithuanian
lt_LT-reginute1-medium (CC BY 4.0)
- Telugu
te_IN-padmavathi-medium (CC BY 4.0)
For support, feedback, or suggestions, join my Discord community and follow the mod’s development!

Project Support & Usage
Hosting: For the best performance, I recommend using BisectHosting linked in the banner.
Modpacks: You are free to include my work in any modpack. Please ensure proper credit is given by providing a link to this project page.
评论 0
登录后参与评分
还没有评论,来抢沙发吧