👉 点击横幅或 [从这里开始] 以快速上手。
使用代码 BLUE40,立即解锁 40% 的折扣。
Nexa AI (Minecraft Mod + Paper Plugin)
Nexa 需要一个 AI Key(密钥)。存在免费选项,设置过程仅需约 2 分钟。
安装 Nexa 并输入 /nexa hi。Nexa 会说明它需要什么,并提供按钮:获取免费密钥、粘贴密钥,即可完成设置。
Nexa AI 为 Minecraft 添加了一个了解你的游戏的 AI 伴侣:它能识别实际加载的配方、物品和模组,以及整合包附带的任何指南。
- 可作为 Fabric / Forge / NeoForge 模组 运行(支持客户端和服务器)
- 也可作为 Paper 插件 使用
👋 来自开发者的简短说明 (v2.5)
大家好!如果你之前使用过 Nexa,你会发现这次更新是一次重大的变化。老实说,这几乎是一个全新的模组。
最大的变化:免费的内置 AI 已移除。 之前通过它发送的每一条消息都是我自掏腰包的,随着越来越多用户开始使用 Nexa,账单变得超出我能承担的范围。我不希望 Nexa 在某一天因为资金耗尽而突然停止工作,所以我做出了艰难的决定:Nexa 现在完全采用 Bring Your Own Key(自带密钥) 模式。
我知道这听起来像是增加了额外的工作,但我努力让它变得无痛且轻松:
- Google Gemini 提供免费密钥。 Nexa 会在聊天中引导你完成整个过程,并提供按钮。大约需要 2 分钟。
- 正在运行 Ollama 或 LM Studio? Nexa 会自动检测到它们。无需密钥,无需费用,数据不会离开你的电脑。
- 54 种一键式设置方案 适用于流行的 AI 服务。选择一个,粘贴密钥,即可连接。
- 你的聊天现在直接发送到你选择的 AI,而不是经过我的服务器。速度更快,隐私性更好。
在此过程中,我重新构建了 Nexa 的核心功能:真正了解你的游戏。它会查找真实的配方和物品(包括模组添加的内容),而不是猜测,并且整合包制作者可以教会它关于其整合包的信息。
感谢大家继续支持 Nexa。如果出现问题或感到困惑,请在 Discord 上告诉我。我会阅读每一条消息。❤️
功能特性
- 与 Nexa 聊天: 使用
/nexa <message>,或者按 N 键打开聊天和设置界面。
- 基于你的整合包回答: Nexa 会查找游戏中真实的配方、用途、物品和模组(包括模组添加的内容),而不是凭空猜测。它还知道安装了哪些模组(或在 Paper 服务器上安装了哪些插件)以及每个模组/插件的作用。
- 服务器指令: 将规则、目的和关键地点放入
config/nexa/instructions.md,Nexa 会在每次对话中遵循这些指令。
- 整合包指南: 整合包可以将 Markdown 页面放入
config/nexa/knowledge/,Nexa 会利用它们来回答进度和常见问题解答。
- 引导式设置: 在未连接任何 AI 时,Nexa 会在聊天中引导你完成设置。它还能自动检测本地运行的 Ollama 或 LM Studio。
- 自带 AI: 兼容任何支持以下四种标准格式之一的服务器:Google Gemini、OpenAI 兼容、OpenAI Responses 或 Anthropic Messages。
- 代理模式: “先问后做”(默认;世界变更需要你的确认)或“自主行动”。
- 工具: 传送、定位、时间、天气、效果、航点、截图分析等,并支持权限控制。
- 记忆功能: 对话在重启后保留,旧聊天记录会被摘要。
- 友好的错误提示: 密钥无效、速率限制或服务中断等情况会用通俗的语言解释,并提供一个 [Fix] 按钮。
- 完全可配置: 所有配置都在
config/nexa/nexa.toml 这一个文件中。服务器所有者和整合包作者可以决定一切:自动消息、空闲消息、限制、每日上限、工具和人格设定。
- 整合包集成: 可以通过 JSON 文件(无需编码)或 Java / KubeJS 添加自定义工具,后者还可以向 Nexa 提供关于模组的简短常驻备注。
获取 AI 密钥
| 快速设置 |
格式 |
费用 |
密钥链接 |
| Google Gemini(推荐) |
gemini |
免费密钥 |
|
| OpenAI |
responses |
按需付费 |
|
| Anthropic Claude |
anthropic |
按需付费 |
|
| OpenRouter |
openai |
多种模型,部分免费 |
|
| 本地 PC 上的 Ollama / LM Studio |
openai |
免费,本地运行 |
无需密钥;自动检测 |
此外还有 49 种更多的一键式设置方案(均为 OpenAI 兼容格式,只需粘贴密钥):Ollama Cloud, Groq, Cerebras, SambaNova, Together AI, Fireworks AI, DeepInfra, NVIDIA NIM, Hugging Face, Inception Mercury, Vercel AI Gateway, GitHub Models, Requesty, Poe, AI/ML API, NanoGPT, Chutes, DeepSeek, Mistral AI, xAI Grok, Moonshot Kimi, Z.ai GLM, Alibaba Qwen, MiniMax, Cohere, Meta Llama API, StepFun, Upstage Solar, Novita AI, Hyperbolic, Nebius Token Factory, SiliconFlow, Featherless, Venice AI, Baseten, FriendliAI, Parasail, Nscale, Inference.net, Scaleway, OVHcloud AI Endpoints, IONOS AI Model Hub,以及本地的 llama.cpp, vLLM, Jan, KoboldCpp 和 LiteLLM。输入 /nex-config ai presets 可查看所有这些选项及其密钥链接。
当某个服务的模型名称频繁更改时,设置向导会将模型字段留空:保存密钥后,Nexa 会询问该服务该密钥可以使用哪些模型,并自动选择一个适合日常使用的模型。输入 /nex-config ai models [filter](或在设置界面中选择 List)可查看所有可用模型以便切换。
其他情况:选择你的服务器支持的格式,并输入其地址、密钥和模型。
| 格式 |
调用的端点 |
兼容的服务 |
gemini (Google Gemini) |
POST {base_url}/models/{model}:generateContent |
Google AI Studio(免费密钥) |
openai (OpenAI 兼容) |
POST {base_url}/chat/completions |
OpenRouter, Groq, Ollama, LM Studio, vLLM, 以及其他大多数服务 |
responses (OpenAI Responses) |
POST {base_url}/responses |
OpenAI,以及模仿该接口的服务器 |
anthropic (Anthropic Messages) |
POST {base_url}/messages |
Anthropic (Claude) |
在单人游戏中,Nexa 会直接询问你。在服务器上,管理员为所有人连接一次。无法自行设置的玩家会被建议联系管理员。免费密钥受该服务自身的速率限制约束。
支持的客户端
- Fabric: Minecraft
26.3 和 1.21.1
- NeoForge: Minecraft
26.3 和 1.21.1
- Forge: Minecraft
26.3 和 1.20.1
- Paper: Minecraft
26.3
Java:26.3 运行于 Java 25,1.21.1 运行于 Java 21,1.20.1 运行于 Java 17。
命令
聊天
/nexa <message>: 与 Nexa 聊天。
/nexa confirm / /nexa cancel: 批准或取消排队操作(先问后做模式)。预览中也有可点击的 [Yes] / [No] 按钮。
/nexa-gui(或 /nex-gui,或 N 键):打开聊天和设置界面。/nexa-gui setup 打开 AI 设置选项卡,/nexa-gui settings 打开设置,/nexa-gui off / /nexa-gui on 为你开启或关闭 N 键屏幕。
AI 设置 (/nex-config ai)
适用于服务器管理员(或控制台),或单人/LAN 世界的拥有者:
ai / ai status: 格式、服务器地址、模型、思维层级以及掩码后的密钥。
ai presets: 一键式预设设置,附带相关链接。
ai use <service> [model]: 为已知的 54 种服务之一(gemini, openai, anthropic, groq, deepseek, mistral, openrouter, ollama 等)填写所有信息。
ai models [filter]: 列出你的密钥可用的模型;点击其中一个即可切换。
ai key <api-key>: 保存密钥。Nexa 会通过一个微小的请求检查它,仅在有效时显示“Connected”。
ai format <gemini|openai|responses|anthropic|none>, ai url <address>, ai model <name>, ai thinking <level|clear>: 其他服务器的配置。
ai test, ai local(在此机器上使用 Ollama / LM Studio), ai clearkey, ai disconnect.
- 旧的
byok 名称仍然有效。
其他设置 (/nex-config)
reload: 重新读取 config/nexa/nexa.toml、instructions.md 以及知识和工具文件夹。
clearchat: 清除你的对话历史。
feedback <message>: 向开发者发送反馈(每 24 小时限一次)。
mode show / mode <ask|autonomous>: 你的个人代理模式(如果服务器允许)。
limits status|maxrequests <1..15>|cooldown <seconds>
custom name <name> / custom prompt <prompt> / custom show / custom reset
automessages enable|disable|status
更改服务器全局设置需要 nexa.admin 权限或 OP,或者是单人/LAN 世界的拥有者。使用模组时,普通玩家在设置界面仅能看到自己的选项;AI 设置、限制和个人形象仅限管理员使用。
面向整合包作者和服务器所有者
所有设置都位于 config/nexa/nexa.toml。将其随你的整合包分发:
- 设置整合包主题的 名称和个人形象。
- 开启或关闭 加入问候语和闲置消息,并设置闲置窗口时间。
- 设置 限制:每条消息的请求数、冷却时间以及每位玩家每天的消息数。
- 选择 默认模式,以及是否允许玩家更改。
- 禁用工具,或使其仅限管理员使用。
- 对于固定版本的整合包,关闭 更新检查。
然后编写 config/nexa/instructions.md(Nexa 始终遵循的规则和事实),添加 config/nexa/knowledge/*.md 指南页面和 config/nexa/tools/*.json 自定义工具。完整指南(含示例配置)位于 docs/PACK_AUTHORS.md。
你可以将 Nexa 包含在任何整合包中。 它采用 MIT 许可证,无需征得同意。
内置工具
- 整合包查询(所有人可用):
findRecipes, findUses, itemInfo, searchItems, listMods 和 packGuide。
- 玩家信息(所有人可用):
getPlayerState, getInventorySummary, getEnvironmentInfo, getGameRules, getNearbyEntities, getAgentContext 和 analyzeScreenshot。
- 地标(所有人可用):
saveLocation, removeLocation 和 listSavedLocations。
- 世界变更(管理员;先问后做模式下会先询问):
locate, teleport, timeSet, weather, giveEffect 和 spawnEntity。
权限
nexa.use: 使用 /nexa、/nex-config 和 GUI(默认:所有人)。
nexa.admin: 服务器全局设置和世界变更工具。
- 在所有平台上均兼容 LuckPerms。如果没有 LuckPerms,
nexa.admin 将回退到 OP(或在单人游戏中回退为世界拥有者)。
安装
- Fabric: Fabric Loader + Fabric API,然后将
nexa-fabric*.jar 放入 mods/ 目录。
- Forge / NeoForge: 将 jar 文件放入
mods/ 目录。
- Paper: 将
nexa-paper*.jar 放入 plugins/ 目录并重启服务器。
服务端功能仅需服务端 jar 即可工作。安装客户端模组以启用 GUI(N 键)和截图分析。
从 2.x 版本升级? 你旧的 BYOK 设置(chatmc_byok.json)会自动迁移到 nexa.toml 中。如果你之前使用的是免费的内置 AI,请运行一次 /nexa hi 并连接一个密钥。
数据与隐私
- 你的聊天内容直接发送到你连接的 AI 服务,或者在使用本地模型时保留在你的 PC 上。Nexa 开发者永远不会看到这些数据。适用该服务的条款。
- 对话历史保存在世界文件夹中(
chatmc_history_<uuid>.json)。
- API 密钥存储在运行 Nexa 的机器的
config/nexa/nexa.toml 中。它们不会被记录,在游戏中也会以掩码形式显示。
- Nexa 更新服务器仅接收版本检查信息,你可以通过
update_check = false 关闭此功能。反馈仅在运行 /nex-config feedback 时发送,其中包含你的消息和玩家名称。你可以通过 feedback_command = false 关闭此功能。
支持
如果遇到任何问题、有反馈意见或希望贡献代码,请加入 Discord。
Discord:
👉 Click the banner or [start here] to get going.
Use code BLUE40 and unlock your 40% discount instantly.
Nexa AI (Minecraft Mod + Paper Plugin)
Nexa needs an AI key. Free options exist, and setup takes about 2 minutes.
Install Nexa and type /nexa hi. Nexa explains what it needs and gives you buttons: get a free key, paste it, done.
Nexa AI adds an AI companion to Minecraft that knows your game: the recipes, items and mods that are actually loaded, plus any guide your modpack ships.
- Works as a Fabric / Forge / NeoForge mod (clients + servers)
- Also available as a Paper plugin
👋 A quick note from the dev (v2.5)
Hey everyone! If you've used Nexa before, you'll notice this update is a big one. Honestly, it's pretty much a new mod.
The biggest change: the free built-in AI is gone. Every message anyone sent through it was a message I paid for, and as more of you started using Nexa, that bill got bigger than I could keep covering. I didn't want Nexa to just stop working one day when the money ran out, so I made the hard call: Nexa is now fully Bring Your Own Key.
I know that sounds like extra work, so I tried hard to make it painless:
- Google Gemini gives you a free key. Nexa walks you through it in chat, with buttons. About 2 minutes.
- Running Ollama or LM Studio? Nexa finds it on its own. No key, no cost, nothing leaves your PC.
- 54 one-click setups for popular AI services. Pick one, paste a key, and you're connected.
- Your chat now goes straight to the AI you chose, not through my server. It's faster and more private.
While I was at it, I rebuilt Nexa around what it's best at: actually knowing your game. It looks up real recipes and items (modded ones too) instead of guessing, and modpack makers can teach it about their pack.
Thanks for sticking with Nexa. If something breaks or feels confusing, come tell me on Discord. I read everything. ❤️
Features
- Chat with Nexa:
/nexa <message>, or press N for the chat and settings screen.
- Answers from your pack: Nexa looks up the real recipes, uses, items and mods in your game, modded ones included, instead of guessing. It also knows which mods (or, on Paper, plugins) are installed and what each one is for.
- Server instructions: drop your rules, purpose and key places into
config/nexa/instructions.md, and Nexa follows them in every conversation.
- Pack guide: modpacks can drop Markdown pages into
config/nexa/knowledge/, and Nexa uses them to answer progression and FAQ questions.
- Guided setup: with no AI connected, Nexa walks you through it in chat. It also detects Ollama or LM Studio running on your PC.
- Bring your own AI: works with any server that speaks one of four standard formats: Google Gemini, OpenAI-compatible, OpenAI Responses or Anthropic Messages.
- Agent modes: ask-before-act (default; world changes need your OK) or autonomous.
- Tools: teleport, locate, time, weather, effects, waypoints, screenshot analysis and more, with permissions.
- Memory: conversations survive restarts, and old chat is summarized.
- Friendly errors: a bad key, rate limit or outage is explained in plain words, with a [Fix] button.
- Fully configurable: one file,
config/nexa/nexa.toml. Server owners and pack authors decide everything: auto messages, idle messages, limits, daily caps, tools and the persona.
- Pack integration: add custom tools with JSON files (no code), or with Java / KubeJS, which can also give Nexa short always-on notes about a mod.
Getting an AI key
| Quick setup |
Format |
Cost |
Key |
| Google Gemini (recommended) |
gemini |
free key |
|
| OpenAI |
responses |
pay as you go |
|
| Anthropic Claude |
anthropic |
pay as you go |
|
| OpenRouter |
openai |
many models, some free |
|
| Ollama / LM Studio on your PC |
openai |
free, runs locally |
no key; detected automatically |
Plus 49 more one-click setups (all OpenAI-compatible, just paste the key): Ollama Cloud, Groq, Cerebras, SambaNova, Together AI, Fireworks AI, DeepInfra, NVIDIA NIM, Hugging Face, Inception Mercury, Vercel AI Gateway, GitHub Models, Requesty, Poe, AI/ML API, NanoGPT, Chutes, DeepSeek, Mistral AI, xAI Grok, Moonshot Kimi, Z.ai GLM, Alibaba Qwen, MiniMax, Cohere, Meta Llama API, StepFun, Upstage Solar, Novita AI, Hyperbolic, Nebius Token Factory, SiliconFlow, Featherless, Venice AI, Baseten, FriendliAI, Parasail, Nscale, Inference.net, Scaleway, OVHcloud AI Endpoints, IONOS AI Model Hub, and local llama.cpp, vLLM, Jan, KoboldCpp and LiteLLM. /nex-config ai presets lists them all with key links.
When a service's model names change often, the setup leaves the model blank: once the key is saved, Nexa asks the service which models the key can use and picks a quick everyday one. /nex-config ai models [filter] (or List in the setup screen) shows them all so you can switch.
Anything else: pick the format your server speaks and enter its address, key and model.
| Format |
Endpoint it calls |
Works with |
gemini (Google Gemini) |
POST {base_url}/models/{model}:generateContent |
Google AI Studio (free key) |
openai (OpenAI-compatible) |
POST {base_url}/chat/completions |
OpenRouter, Groq, Ollama, LM Studio, vLLM, most others |
responses (OpenAI Responses) |
POST {base_url}/responses |
OpenAI, and servers that copy it |
anthropic (Anthropic Messages) |
POST {base_url}/messages |
Anthropic (Claude) |
In singleplayer, Nexa asks you directly. On a server, the admin connects it once for everyone. Players who can't set it up are told to ask an admin. Free keys have the service's own rate limits.
Supported Targets
- Fabric: Minecraft
26.3 and 1.21.1
- NeoForge: Minecraft
26.3 and 1.21.1
- Forge: Minecraft
26.3 and 1.20.1
- Paper: Minecraft
26.3
Java: 26.3 runs on Java 25, 1.21.1 on Java 21, 1.20.1 on Java 17.
Commands
Chat
/nexa <message>: chat with Nexa.
/nexa confirm / /nexa cancel: approve or cancel queued actions (ask-before-act mode). Previews also have clickable [Yes] / [No] buttons.
/nexa-gui (or /nex-gui, or the N key): opens the chat and settings screen. /nexa-gui setup opens the AI Setup tab, /nexa-gui settings opens the settings, and /nexa-gui off / /nexa-gui on turn the N key screen off or on for you.
AI setup (/nex-config ai)
For the server admin (or the console), or the owner of a singleplayer/LAN world:
ai / ai status: format, server address, model, thinking and the masked key.
ai presets: the one-click setups, with key links.
ai use <service> [model]: fill in everything for one of 54 known services (gemini, openai, anthropic, groq, deepseek, mistral, openrouter, ollama, ...).
ai models [filter]: list the models your key can use; click one to switch.
ai key <api-key>: save the key. Nexa checks it with one tiny request and says "Connected" only if it works.
ai format <gemini|openai|responses|anthropic|none>, ai url <address>, ai model <name>, ai thinking <level|clear>: any other server.
ai test, ai local (use Ollama / LM Studio on this machine), ai clearkey, ai disconnect.
- The old
byok name still works.
Other settings (/nex-config)
reload: re-read config/nexa/nexa.toml, instructions.md and the knowledge and tools folders.
clearchat: clear your conversation history.
feedback <message>: send feedback to the developer (once per 24 hours).
mode show / mode <ask|autonomous>: your personal agent mode, if the server allows it.
limits status|maxrequests <1..15>|cooldown <seconds>
custom name <name> / custom prompt <prompt> / custom show / custom reset
automessages enable|disable|status
Changing a server-wide setting needs nexa.admin / OP, or being the singleplayer/LAN world owner. With the mod, regular players only see their own options in the settings screen; the AI setup, limits and persona are admin-only.
For modpack authors and server owners
All the settings live in config/nexa/nexa.toml. Ship it with your pack:
- Set the name and persona for your pack's theme.
- Turn join greetings and idle messages on or off, and set the idle window.
- Set limits: requests per message, cooldown, and messages per player per day.
- Choose the default mode, and whether players can change it.
- Disable tools, or make them admin-only.
- Turn off update checks for packs that pin versions.
Then write config/nexa/instructions.md (the rules and facts Nexa always follows), and add config/nexa/knowledge/*.md guide pages and config/nexa/tools/*.json custom tools. The full guide, with an example config, is in docs/PACK_AUTHORS.md.
You may include Nexa in any modpack. It's MIT licensed, and you don't need to ask.
Built-in tools
- Pack lookups (everyone):
findRecipes, findUses, itemInfo, searchItems, listMods and packGuide.
- Player info (everyone):
getPlayerState, getInventorySummary, getEnvironmentInfo, getGameRules, getNearbyEntities, getAgentContext and analyzeScreenshot.
- Waypoints (everyone):
saveLocation, removeLocation and listSavedLocations.
- World changes (admins; asks first in ask-before-act):
locate, teleport, timeSet, weather, giveEffect and spawnEntity.
Permissions
nexa.use: use /nexa, /nex-config and the GUI (default: everyone).
nexa.admin: server-wide settings and world-changing tools.
- Works with LuckPerms on every platform. Without it,
nexa.admin falls back to OP (or the world owner in singleplayer).
Installation
- Fabric: Fabric Loader + Fabric API, then put
nexa-fabric*.jar into mods/.
- Forge / NeoForge: put the jar into
mods/.
- Paper: put
nexa-paper*.jar into plugins/ and restart.
Server-side features work with only the server jar. Install the client mod for the GUI (key N) and screenshot analysis.
Upgrading from 2.x? Your old BYOK settings (chatmc_byok.json) move into nexa.toml automatically. If you were using the free built-in AI, run /nexa hi once and connect a key.
Data and privacy
- Your chat goes straight to the AI service you connected, or stays on your PC with a local model. The Nexa developer never sees it. That service's terms apply.
- Conversation history is saved in the world folder (
chatmc_history_<uuid>.json).
- API keys are stored in
config/nexa/nexa.toml on the machine running Nexa. They're never logged, and they're shown masked in game.
- The Nexa update server only receives a version check, which you can turn off with
update_check = false. Feedback is sent only when you run /nex-config feedback, and it includes your message and player name. You can turn that off with feedback_command = false.
Support
If you run into issues, have feedback, or want to contribute, join the Discord.
Discord:
评论 0
登录后参与评分
还没有评论,来抢沙发吧