
游戏新时代
为 Minecraft 添加 AI,将任何生物变成拥有独特个性和无限对话能力的会说话的生物。
- 无限制的角色:自动为每个 AI 生物创建独特的名字和个性
- 生动的角色:AI 生物会对周围发生的事情做出反应。
- 无限的互动:与任何 AI 生物永远聊天
- 自定义:创建自定义 AI 生物,并对提示词和模型参数进行精细控制
- 版本:官方支持最新版本的 Minecraft,但已在 1.13+ 版本上进行了最小化测试。
- 其他 API 支持:使用符合 OpenAI 架构的任何 API
- 自定义 LLM 模型支持:在配置中指定任何模型
示例:
在猪面前吃一块烤猪肉:

一只态度嚣张的鸡:

苦力怕也有感情:

剪羊毛的喜悦:

YouTube 预告片(带有配音轨道):
原始教程(略有过时):
警告:
- 需要您自己的 AI API 访问权限(API 密钥)
- 插件是免费的,但大多数 AI API 都需要付费
安装和配置:
安装:
- 从您选择的提供商处获取 API 密钥(OpenAI、Anthropic、Google、Ollama 等)
- 将 .jar 文件拖放到 /plugins 文件夹并重启服务器。
- 在 config.yml 中设置您的提供商(openai, anthropic, google, ollama)
- 将您的 API 密钥粘贴到 config.yml 中
- 为您选择的提供商配置基础 URL 和模型(config.yml 中提供了示例)
- 完成!
使用方法:
- 使用 /cg wand 获取 CraftGPT 魔杖
- 用魔杖点击任何生物以进行选择
- 使用 /cg create 为选定的生物启用 AI
- 潜行时点击生物以切换与该生物的聊天
配置: 有关设置和选项,请参阅 config.yml。使用 /cg reload 重新加载配置。
占位符:
- 全局
- craftgpt.global_total_usage
- craftgpt.global_usage_limit
- craftgpt.global_usage_progress(进度条)
- 玩家专属
- craftgpt.usage
- craftgpt.usage_limit
- craftgpt.usage_progress(进度条)
常见问题:
什么是 API 密钥/如何获取?
API 密钥是一个代表您对 OpenAI ChatGPT API 访问权限的密钥。访问 API 不是免费的(除非您注册新账户并获得免费试用),并且需要高级/计费 OpenAI 账户。费用非常低(不到 2 美元即可购买 100 万个单词)。如果没有免费试用额度,则需要信用卡。基本上,您需要注册一个 OpenAI 账户,添加计费方式,然后生成 API 密钥。如果还有疑问,请观看上面的教程!
除了 OpenAI,我还能与其他 API 提供商(如本地模型)一起使用吗?
是的,只要 API 符合 OpenAI 架构即可。该插件依赖于官方 OpenAI Java 库,因此仅限于更改 API 基础 URL 和模型名称。如果您的 API 提供商使用独特的 URL/API 架构,则目前不受支持。
加入 Discord 分享您的 NPC 创作!

A new era for video games
Add AI to Minecraft and turn any mob into a talking creature with a unique personality and infinite dialogue.
- Unlimited characters: Automatically creates unique names and personalities for every - AI-mob
- Living characters: AI-mobs react to what's happening around them.
- Infinite interactions: Chat with any AI-mob forever
- Customization: Create custom AI-mobs and have granular control over prompts and model parameters
- Versions: Officially supports the latest version of Minecraft, but has been minimally tested on version 1.13+.
- Other API support: Use any API conforming to OpenAI's schema
- Custom LLM model support: Specify any model in the config
Examples:
Eating a pork chop in front of a pig:

A chicken with an attitude:

Creepers have feelings too:

Shear joy:

YouTube trailer (stylized with voice track):
Original tutorial (slightly outdated):
WARNING:
- Your own access (API key) to an AI API is required
- The plugin is free, but most AI APIs cost money
Installation and Configuration:
Installation:
- Get an API key from your preferred provider (OpenAI, Anthropic, Google, Ollama, etc.)
- Drag and drop the .jar into /plugins folder and restart server.
- Set your provider in config.yml (openai, anthropic, google, ollama)
- Paste your API key into config.yml
- Configure the base URL and model for your selected provider (examples provided in config.yml)
- Done!
How to use:
- Use /cg wand to get the CraftGPT Magic Wand
- Click any mob with the Magic Wand to select
- Use /cg create to enable AI-for selected mob
- Click mob while sneaking to toggle chatting with mob
Configuration: See config.yml for settings and options. Use /cg reload to reload config.
Placeholders:
- Global
- craftgpt.global_total_usage
- craftgpt.global_usage_limit
- craftgpt.global_usage_progress (progress bar)
- Player-specific
- craftgpt.usage
- craftgpt.usage_limit
- craftgpt.usage_progress (progress bar)
FAQ:
What's an API key/how do I get one?
An API key is a secret key that represents your access to the OpenAI ChatGPT API. Accessing the API is not free (unless you sign up with a new account and get a free trial) and requires a premium/billable OpenAI account. It is quite cheap (like 1 million words for less than $2 USD). Without free trial credits, it requires a credit card. Essentially, you need to make an account with OpenAI, add a billing method, and generate an API key. If you still have questions, watch the tutorial above!
Can I use this with other API providers besides OpenAI, like local models?
Yes, as long as the API conforms to the OpenAI schema. The plugin relies on the official OpenAI Java libraries and therefore is limited to only changing the API base URL and model name. If your API provider uses a unique URL/API schema, it is unsupported at this time.
Join the Discord to share your NPC creations!
评论 0
登录后参与评分
还没有评论,来抢沙发吧