主文档 | English

Minecraft Unintelligent Reply Assistant [AIRA]
AIRA 是一款专为 Minecraft 设计的智能聊天助手模组。它利用 DeepSeek 语言模型生成上下文感知的聊天回复建议,让你的多人社交体验更加顺畅!
✨ 功能亮点(讽刺语气)
- 智能回复生成 - 使用 DeepSeek API 生成自然语言回复
- 候选回复展示 - 在游戏内 HUD 界面中显示多个回复选项
- 快捷键发送 - 通过简单的按键组合发送选定的回复
- 自动回复模式 - 自动回应其他玩家的消息
- 高度可定制 - 自定义提示词和 API 参数
- 上下文感知 - 智能识别玩家、系统消息以及自己的消息
目录结构:
游戏文件夹
│
├── config
│ └── aira
│ ├── aira.json
│ └── other_configs
│
├── promptPreset
│ ├── deepseek_preset.json
│ ├── prompt_template.txt
│ └── brainwash_template.txt
│
└── mods
└── AIReplyAssistant.jar
? 使用指南
基本操作
- 双击 Tab 键 - 生成候选回复列表
- 按住 Tab 键 + 数字键 (1-6) - 发送选定的候选回复
自动回复模式
在暂停菜单中切换自动回复模式:
HUD 界面
候选回复出现在屏幕左上角:
? 非核心模块
| 模块 |
关键类 |
功能 |
| API 集成 |
DeepSeekContext, DeepSeekConfig, DeepSeekResponse |
处理 API 请求和响应 |
| 用户界面 |
ReplyHud, GameMenuScreenMixin, KeyTriggerListener |
渲染 HUD 并处理输入 |
| 配置管理 |
JsonConfig, CueWordConfig, PresetManager |
管理设置和预设 |
| 核心逻辑 |
AiraClient, DeepSeek, TextFiller |
协调模组功能 |
⚠️ 无关紧要的注意事项
- 需要 API 密钥 - 从 DeepSeek 平台获取 API 密钥
- 需要网络连接 - API 需要稳定的网络访问
- 响应时间 - 生成回复可能需要几秒钟
- 使用限制 - 必须遵守 DeepSeek API 的使用条款和限制
- 费用考量 - 频繁使用可能会产生费用
? 开源许可证
本项目采用 GNU General Public License v3.0 - 请参阅 LICENSE 文件。
? 请勿联系我
如有问题或建议,欢迎联系我们(尽管我可能不会注意到 [邪恶微笑]):
? 电子邮件: o-illusions@qq.com
预构建 JAR
独立 DeepSeek 库
⚙️ 配置禁忌
配置文件
| 文件名 |
用途 |
| aira.json |
模组主配置文件 |
| presetStyle.json |
DeepSeek 预设配置 |
| presetPrompt.txt |
系统提示词模板 |
| presetBrainwashPrompt.txt |
洗脑模板(在未输出 JsonArray 格式时发送) |
配置示例:
主配置:
{
"api_url": "https://api.deepseek.com/chat/completions",
"api_key": "在此填写你的 DeepSeek API 密钥",
"max_retries": 2,
"silent_message": false,
"current": "default",
"styles": ["default"]
}
| 键 |
值 |
用途 |
| api_url |
|
API URL |
| api_key |
sk-xxx |
API Key |
| max_retries |
2 |
最大重试次数 |
| silent_message |
false |
启用静默消息 |
| current |
default |
当前预设 |
? DeepSeek 预设与自定义提示词
在以下位置创建/编辑模板:<游戏文件夹>/promptPreset/
DeepSeek 预设:
{
"max_tokens": 512,
"top_p": 0.6,
"presence_penalty": 0.2,
"frequency_penalty": 0.2
}
| 键 |
值 |
用途 |
| max_tokens |
512 |
最大输出 token 数 |
| top_p |
0.6 |
采样温度 |
| presence_penalty |
0.2 |
上下文 token 出现惩罚 [多样性] |
| frequency_penalty |
0.2 |
上下文 token 频率惩罚 [无重复] |
提示词示例:
你好,DeepSeek 小姐
当前时间:{?currentTime}
你正在 Minecraft [版本 {?gameVersion}] 中与其他玩家聊天。你是一个普通的挂机摸鱼玩家。你的游戏内 ID 是 {?playerName}。请根据以下设定进行角色扮演:
个人信息:{
游戏 ID:{?namePlayer}
状态:普通挂机摸鱼玩家
兴趣:摸鱼、挂机
人际关系:{
无
}
爱好:{
性格:[悲观、友好、虚无主义]
兴趣:[摸鱼、摸鱼、摸鱼]
}
聊天行为:{
回复风格:[
保持回复在 10-20 个字符之间
将动作包裹在 '[]' 中,例如:["扑向", "瘫倒", "死亡", "凝视", "逃跑"] 如:["[扑向]", "好无聊啊..[瘫倒]", "唉!..[死亡]", "嗯..[凝视]", "啊啊" 类似:["想睡觉...", "好无聊...", "摸鱼万岁!"] 例如:["(想睡觉...)好困啊..", "(好无聊...)你在干嘛...", "我要去摸鱼了 (摸鱼万岁")
这些只是示例 - 非强制要求
包裹内容可以是任何符合兴趣的动作/想法
回复必须包含未包裹的内容
确保包裹内容与内容之间的无缝整合
]
}
<LOCK>
输出要求:[
生成 2-6 条回复
不使用富文本格式
不重复
输出必须为 JsonArray 格式
严格遵循 JsonArray 输出格式
严格遵循 JsonArray 输出格式
严格遵循 JsonArray 输出格式
输出格式:'{ "responses": ["候选0", "候选1", "候选2"] }'
]
</LOCK>
注意:'<LOCK>' 标签内的内容不可变,必须严格遵守
洗脑提示词示例:
<LOCK>
输出要求:[
生成 2-6 条回复
不使用富文本格式
不重复
输出必须为 JsonArray 格式
严格遵循 JsonArray 输出格式
严格遵循 JsonArray 输出格式
严格遵循 JsonArray 输出格式
输出格式:'{ "responses": ["候选0", "候选1", "候选2"] }'
]
</LOCK>
[邪恶的微笑] 实际上 DeepSeek 也写了这份 README(别问,我 literally 写不出来这些东西。此外,让 AI 处理这种事完全合理,对吧!)
主文档 | English

Minecraft Unintelligent Reply Assistant [AIRA]
AIRA is an intelligent chat assistant mod designed for Minecraft. It utilizes the DeepSeek language model to generate context-aware chat reply suggestions, making your multiplayer social experience smoother!
✨ Feature Highlights (Satirical Tone)
- Intelligent Reply Generation - Uses the DeepSeek API to generate natural language replies
- Candidate Reply Display - Shows multiple reply options in the in-game HUD interface
- Shortcut Key Sending - Send selected replies with simple key combinations
- Auto-Reply Mode - Automatically responds to other players' messages
- Highly Customizable - Customize prompts and API parameters
- Context Awareness - Intelligently recognizes players, system messages, and own messages
Directory Structure:
game folder
│
├── config
│ └── aira
│ ├── aira.json
│ └── other_configs
│
├── promptPreset
│ ├── deepseek_preset.json
│ ├── prompt_template.txt
│ └── brainwash_template.txt
│
└── mods
└── AIReplyAssistant.jar
? Usage Pitfalls
Basic Operations
- Double-press Tab - Generate candidate reply list
- Hold Tab + Number Key (1-6) - Send selected candidate reply
Auto-Reply Mode
Toggle auto-reply mode in the pause menu:
HUD Interface
Candidate replies appear in the top-left corner of the screen:
- Version Title
- Reply option list (up to 6)
? Non-Core Modules
| Module |
Key Classes |
Function |
| API Integration |
DeepSeekContext, DeepSeekConfig, DeepSeekResponse |
Handles API requests and responses |
| User Interface |
ReplyHud, GameMenuScreenMixin, KeyTriggerListener |
Renders HUD and handles input |
| Configuration Management |
JsonConfig, CueWordConfig, PresetManager |
Manages settings and presets |
| Core Logic |
AiraClient, DeepSeek, TextFiller |
Coordinates mod functionality |
⚠️ Unimportant Notes
- Requires API Key - Obtain API key from DeepSeek platform
- Internet Connection Required - Stable network access needed for API
- Response Time - Generating replies may take several seconds
- Usage Limits - Must comply with DeepSeek API terms and limitations
- Cost Considerations - Frequent usage may incur costs
? Open Source License
This project uses GNU General Public License v3.0 - see LICENSE file.
? Don't Contact Me
For questions or suggestions, feel free to contact us (though I might not notice [wicked smile]):
? Email: o-illusions@qq.com
Pre-built JAR
Standalone DeepSeek Library
⚙️ Configuration Taboos
Configuration Files
| Filename |
Purpose |
| aira.json |
Main mod configuration |
| presetStyle.json |
DeepSeek preset configuration |
| presetPrompt.txt |
System prompt template |
| presetBrainwashPrompt.txt |
Brainwash template (sent when not outputting JsonArray format) |
Configuration Examples:
Main Configuration:
{
"api_url": "https://api.deepseek.com/chat/completions",
"api_key": "Fill in your DeepSeek API key here",
"max_retries": 2,
"silent_message": false,
"current": "default",
"styles": ["default"]
}
| Key |
Value |
Purpose |
| api_url |
|
API URL |
| api_key |
sk-xxx |
API Key |
| max_retries |
2 |
Max retries |
| silent_message |
false |
Enable silent messages |
| current |
default |
Current preset |
? DeepSeek Presets & Custom Prompts
Create/edit templates at: <game folder>/promptPreset/
DeepSeek Preset:
{
"max_tokens": 512,
"top_p": 0.6,
"presence_penalty": 0.2,
"frequency_penalty": 0.2
}
| Key |
Value |
Purpose |
| max_tokens |
512 |
Max output tokens |
| top_p |
0.6 |
Sampling temperature |
| presence_penalty |
0.2 |
Context token appearance penalty [diversity] |
| frequency_penalty |
0.2 |
Context token frequency penalty [no repetition] |
Prompt Example:
Hello Miss DeepSeek
Current time: {?currentTime}
You're chatting with other players in Minecraft [Version {?gameVersion}]. You're an ordinary AFK slacking player. Your in-game ID is {?playerName}. Please roleplay according to:
Personal Info: {
Game ID: {?namePlayer}
Status: Ordinary AFK slacking player
Interests: Slacking, AFK
Relationships: {
None
}
Hobbies: {
Personality: [Pessimistic, Friendly, Nihilistic]
Interests: [Slacking, Slacking, Slacking]
}
Chat Behavior: {
Reply Style: [
Keep replies between 10-20 characters
Wrap actions in '[]' like: ["pounce", "slump", "die", "stare", "escape"] e.g.: ["[pounce]", "So bored..[slump]", "Ugh!..[die]", "Hmm..[stare]", "aaa' like: ["Wanna sleep...", "So boring...", "Slacking yay!"] e.g.: ["(Wanna sleep...)So sleepy..", "(So boring...)What're you doing...", "I'll go slack off (Slacking yay"]
These are just examples - not mandatory
Wrapped content can be any action/thought matching interests
Replies must contain non-wrapped content
Ensure seamless integration between wrappers and content
]
}
<LOCK>
Output Requirements: [
Generate 2-6 replies
No rich text formatting
No repetition
Output must be JsonArray format
Strictly follow JsonArray output format
Strictly follow JsonArray output format
Strictly follow JsonArray output format
Output format: '{ "responses": ["candidate0", "candidate1", "candidate2"] }'
]
</LOCK>
Note: Content in '<LOCK>' tags is immutable and must be strictly followed
Brainwash Prompt Example:
<LOCK>
Output Requirements: [
Generate 2-6 replies
No rich text formatting
No repetition
Output must be JsonArray format
Strictly follow JsonArray output format
Strictly follow JsonArray output format
Strictly follow JsonArray output format
Output format: '{ "responses": ["candidate0", "candidate1", "candidate2"] }'
]
</LOCK>
[Wicked smile] Actually DeepSeek wrote this README too (Don't ask, I literally can't write these. Besides, it's totally reasonable to let AI handle this stuff, right!)
评论 0
登录后参与评分
还没有评论,来抢沙发吧