今天发现了这个AI机器人,是这个AI智能体

image-20260307162559308

这是一个AI智能体 名字叫Airi

image-20260307162859041

这个和Youtube上的AI虚拟主播Neuro-sama差不多

但是最牛逼的就是这玩意居然可以玩我的世界

首先我是开了一个服务器试了一下

image-20260307163154912

image-20260307163226565

image-20260307163252551

没错,你可以看到这里多了一个玩家 Airi_Bot

先给你们看看游戏截图

image-20260307164353963

image-20260307164420672

如你所见,这玩意跟智障一样,只会最最最简单的操作,比如丢东西,捡东西,跟随玩家等等

只要复杂一点就理解不了,比如你让他砍树,是不可能的,然后后台就开始卡死冲突

image-20260307164536051

image-20260307165028417

这个智能体的大脑,也就是用的AI公司的API

我用的是Deepseek的API充了10块钱

然后在这个文件里设置

image-20260307165427267

简直笨死了,回答个问题都要思考半天,甚至都不如某些模组里的AI生物

我就说一下怎么下载吧

首先用git下载

1
git clone https://github.com/moeru-ai/airi.git

然后进入下载文件

这里以我的为例

1
cd /d D:\AI\airi

下载依赖

1
pnpm install

然后

进入路径 services->miniecraft->.env

把这个.env复制一份重命名为.env.local

image-20260307170422306

然后自己修改里面的配置

配置她的“大脑”

OPENAI_API_KEY=你的_API_密钥
OPENAI_API_BASEURL=你的_API_地址(如果有代理或者用第三方中转填这里)

配置她的 Minecraft 身份

BOT_USERNAME=Airi # 你想给她在游戏里起的名字
BOT_HOSTNAME=127.0.0.1 # 如果游戏跟代码在同一台电脑运行,就填这个
BOT_PORT=50321 # 填入你刚才在游戏里开放的端口号
BOT_VERSION=1.20 # 你的 Minecraft 版本

如果你用的是樱花穿透,参考我的设置

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
OPENAI_API_BASEURL='https://api.deepseek.com'
OPENAI_API_KEY='输入Deepseek的API'
OPENAI_MODEL='deepseek-reasoner'
OPENAI_REASONING_MODEL='deepseek-reasoner'

BOT_USERNAME='Airi_Bot'
BOT_HOSTNAME='frp-gap.com'
BOT_PORT='端口号'
# # For all online accounts, un-comment the following line to toggle Microsoft authentication.
# # Link for authentication will popup when the bot starts.
# #
# # After signed in, according to [how Minecraft protocol was implemented](https://github.com/PrismarineJS/node-minecraft-protocol/blob/bf89f7e86526c54d8c43f555d8f6dfa4948fd2d9/src/client/microsoftAuth.js#L7-L16)
# # and also, [authentication flow implemented here](https://github.com/PrismarineJS/prismarine-auth/blob/1aef6e1387d94fca839f2811d17ac6659ae556b4/src/MicrosoftAuthFlow.js#L59-L69),
# # the token will be cached with [the cache IDs specified here](https://github.com/PrismarineJS/prismarine-auth/blob/1aef6e1387d94fca839f2811d17ac6659ae556b4/src/MicrosoftAuthFlow.js#L88-L93)
# # in split files:
# #
# # - ${hash}_live-cache.json
# # - ${hash}_mca-cache.json
# # - ${hash}_xbl-cache.json
# #
# # inside of the directory provided by [`minecraft-folder-path`](https://github.com/simonmeusel/minecraft-folder-path)
# #
# # Linux: ~/.minecraft
# # macOS: ~/Library/Application Support/minecraft
# # Windows: %appdata%/.minecraft
# #
# # where ${hash} is the sha1 hash of the username you signing in with (as Minecraft username).
# #
# BOT_AUTH='microsoft'
BOT_VERSION='1.21.5' #对应MC世界的版本

就这样设置,最好换模型为deepseek-R1,不然会报错

将这一行

OPENAI_MODEL=’deepseek-chat’

修改为

OPENAI_MODEL=’deepseek-reasoner’

完成后cmd窗口输入

1
pnpm -F @proj-airi/minecraft-bot start

自己先打开服务器,,过一会机器人就自己加进来了

你和它交流就知道伪人是什么东西了 狗头狗头狗头