在疯狂 AI 的追杀下生存 ?
这就是《在 AI 的追杀下生存》,它通过 API 调用询问 AI 今天想如何杀死你,哦天哪,它真的非常想杀了你。
如果你还不相信我的话 ?


所以从上面的图片中你可以看到,这个 AI 武装到了牙齿,极度危险。
工作原理
首先,它的运作方式相当简单。每 15 秒,它会触发一次 API 调用(听起来很快,但 API 调用成本很低且速度半慢)。我们给 AI 提供一组方块列表,API 返回 JSON 数据。我使用 Google 的 Gson 来解析并拆分这些数据,然后处理字符串以将其转换为真正的方块。接着,我会随机选取这三个方块中的一个区域:如果是 TNT,就会引发 KABOOM 并召唤已点燃的 TNT;如果是掉落物方块,则会在上方 20 格处放置!
版本规格
专为 Fabric Loader 0.19.3、Fabric API 0.154.1+26.2、Java 25 和 Minecraft 26.2 构建。该模组运行服务端逻辑,但得益于 Minecraft 的集成服务器,它在单人游戏中也能正常工作。
使用方法
如何使用
唯一需要确保的事情是:你必须将你的 API 密钥放入一个名为 secrets.properties 的文件中,该文件位于实例根目录。与 mods/ 文件夹在同一位置。
key=yourkeyhere
三选一:hackclub、openrouter 或 groq
provider = openrouter
provider 是可选的。如果不填写,默认使用 hackclub。你只能从以下三个中选择一个:
hackclub
openrouter
groq
每个提供商都需要各自的密钥。在此获取:
hackclub: https://ai.hackclub.com/dashboard (免费,但仅限经过 hackclub 生态系统验证的人,https://identity.hackclub.com)推荐!
openrouter: https://openrouter.ai/keys (按使用量计费)
groq: https://console.groq.com/keys (查看其定价)
hackclub 和 openrouter 均运行 Qwen3 30B A3B 模型。groq 则运行 Qwen3.8 27B 模型,这是一个预览版模型,因此 Groq 随时可能下架它。
提示:以 # 开头的行会被忽略,因此在切换提供商时,你可以注释掉旧的密钥。
SURVIVE THE ROGUE AI ?
This is survive the AI, it uses API calls to ask a AI how it would like to kill you today, and oh god does it really want to kill you.
In case you don't believe me ?


So as you can see from the images above, this AI is armed and dangerous.
How it works
Well first, it starts pretty simple. every 15seconds, it summons the api (it sounds quick but the api calls are cheap and semi-slow) we give the AI a list of blocks, and the API returns json, I used Gson from google to parse it, and split it up, then I proceeded to process the string to make it a real Block. I proceed to split a random area from the 3 blocks, and if its tnt KABOOM summon primed tnt, If its a falling block, it is placed 20 blocks above!
VERSION SPECIFICATIONS
Built for Fabric Loader 0.19.3, Fabric API 0.154.1+26.2, Java 25, Minecraft 26.2. The mod runs server-side logic, but it still works in singleplayer thanks to Minecraft's integrated server.
How to use
HOW TO USE
There's only one thing you need to make sure of: you MUST put your API key in a file called secrets.properties, located at instance root. Same place as mods/.
key=yourkeyhere
pick one: hackclub, openrouter, or groq
provider = openrouter
provider is optional. If you leave it out, it defaults to hackclub. You can ONLY choose one of these three:
hackclub
openrouter
groq
Each provider needs its own key. Get one here:
hackclub: https://ai.hackclub.com/dashboard (free, but only for people verified in hackclub's ecosystem, https://identity.hackclub.com) Recommended!
openrouter: https://openrouter.ai/keys (billed per use)
groq: https://console.groq.com/keys (check their pricing)
hackclub and openrouter both run Qwen3 30B A3B. groq runs Qwen3.8 27B instead, which is a preview model, so Groq could remove it someday.
Tip: a line that starts with # is ignored, so you can comment out an old key when you switch providers.
评论 0
登录后参与评分
还没有评论,来抢沙发吧