⫷===============⫸
Knocker AI 附加组件
一个为 The Knocker 模组设计的插件,赋予该生物由 AI 驱动的“活体”人格,使其能够使用神经网络与玩家聊天。
? 要求
Minecraft: 1.20.1
Forge: 47.3.0+
必需模组:The Knocker (Forge 1.20.1 版本)
网络连接:需要用于 API 通信。
? 安装
安装 Forge 1.20.1。
将 The Knocker 模组文件放入你的 mods/ 文件夹。
将 knocker-ai-addon-1.0.0.jar 放入你的 .minecraft/mods/ 文件夹。
启动游戏一次。模组将自动生成配置文件夹:.minecraft/Ai/。
打开 .minecraft/Ai/keys.txt 以配置你的 API 密钥(见下文)。
⚙️ 配置 (.minecraft/Ai/keys.txt):
- ============================================
- Knocker AI 附加组件 — API 设置
- ============================================
-
AI 提供商:openai / claude / gemini / openrouter
PROVIDER=openrouter
-
模型名称(可选 - 默认为提供商的选择)
MODEL=nex-n2-pro:free
-
系统提示词 — 定义 AI 的行为和人格
PROMPT=You are The Knocker, a mysterious creature of the dark. Speak briefly, eerily, in English. No more than 2 sentences. Do not show your thought process. Only provide the final response.
-
API 密钥(在此处添加你的密钥,每行一个)
sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
安全警告:切勿与他人分享你的 keys.txt 文件。其中包含你的私有 API 凭据。
? 新手推荐设置
我们建议使用 OpenRouter 作为提供商,并使用 nex-n2-pro:free 作为模型。此组合非常稳定,严格遵循提示词指令,并提供快速响应,无“思考”故障。
游戏内用法
在 Minecraft 聊天中输入任何消息。
模组捕获你的消息并将其发送给 AI。
AI 直接在聊天中回复:[The Knocker] AI 回复
? 故障排除
AI 无响应:确保你的 API 密钥已正确粘贴到 keys.txt 中。检查游戏日志 (.minecraft/logs/latest.log) 中的 [KnockerAI] 错误消息。
冷却时间:每次回复之间有 5 秒的冷却时间,以防止刷屏。
语言:目前,提示词已针对英语进行了优化,但你可以自定义 keys.txt 中的 PROMPT 字段来更改 AI 的人格或语言。
?️ 许可与支持
本模组是一个独立附加组件。我是该项目的最初作者。如果遇到任何错误,请报告!
? 致谢与依赖
原始模组:本附加组件需要基础模组 The Knocker。对原始生物、机制和设计的所有功劳归于其 respective 作者。请确保下载并支持原始项目!
⫷===============⫸
Knocker AI Addon
A plugin for The Knocker mod that gives the creature a "living" AI-powered personality, allowing it to chat with players using neural networks.
? Requirements
Minecraft: 1.20.1
Forge: 47.3.0+
Required Mod: The Knocker (Forge 1.20.1 version)
Internet Connection: Required for API communication.
? Installation
Install Forge 1.20.1.
Place the The Knocker mod file into your mods/ folder.
Place knocker-ai-addon-1.0.0.jar into your .minecraft/mods/ folder.
Launch the game once. The mod will automatically generate the configuration folder: .minecraft/Ai/.
Open .minecraft/Ai/keys.txt to configure your API keys (see below).
⚙️ Configuration (.minecraft/Ai/keys.txt):
- ============================================
- Knocker AI Addon — API Settings
- ============================================
-
AI Provider: openai / claude / gemini / openrouter
PROVIDER=openrouter
-
Model name (Optional - defaults to provider's choice)
MODEL=nex-n2-pro:free
-
System Prompt — Define the AI's behavior and personality
PROMPT=You are The Knocker, a mysterious creature of the dark. Speak briefly, eerily, in English. No more than 2 sentences. Do not show your thought process. Only provide the final response.
-
API Keys (Add your keys here, one per line)
sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Security Warning: Never share your keys.txt file with anyone. It contains your private API credentials.
? Recommended Setup for Beginners
We recommend using OpenRouter as the provider and nex-n2-pro:free as the model. This combination is highly stable, follows the prompt instructions strictly, and provides fast responses without "thinking" glitches.
In-Game Usage
Type any message in the Minecraft Chat.
The mod captures your message and sends it to the AI.
The AI responds directly in chat: [The Knocker] AI response
? Troubleshooting
AI not responding: Ensure your API key is correctly pasted in keys.txt. Check your game logs (.minecraft/logs/latest.log) for [KnockerAI] error messages.
Cooldown: There is a 5-second cooldown between responses to prevent spam.
Language: Currently, the prompt is optimized for English, but you can customize the PROMPT field in keys.txt to change the AI's personality or language.
?️ License & Support
This mod is an independent addon. I am the original author of this project. If you encounter any bugs, please report them!
? Credits & Dependencies
Original Mod: This addon requires the base mod The Knocker. All credit for the original creature, mechanics, and design goes to its respective author. Please make sure to download and support the original project!
评论 0
登录后参与评分
还没有评论,来抢沙发吧