特别感谢:
让本模组得以实现!!!
Overlord AI Mod(霸主人工智能模组)
将本地 AI 霸主带入你的 Minecraft 世界。通过聊天窗口向它求助,当拥有足够的法力时,它可以影响世界及其玩家。
在聊天中输入 ! 后跟随你的请求,例如:!Make it day(变成白天)、!Heal me(治疗我)或 !Rescue Alex and bring them to me(救援 Alex 并把他带过来)。
功能
- 改变天气或时间。
- 治疗并祝福在线玩家。
- 传送到其他玩家身边,或通过传送指定名称的玩家到你这里来实施救援。
- 将你主手物品发送给在线玩家。
- 赋予生命提升效果,或使玩家对敌对生物隐身。
- 用闪电劈击玩家。
- 召唤一只驯服的狼或玩家创建的铁傀儡。
- 赚取和使用法力;法力粉末可恢复 10 点法力。
本地 AI 设置
Overlord AI Mod 连接到本地的 Ollama 服务器。安装 Ollama,拉取基础模型,然后使用随附的 Modelfile 创建 Overlord 模型:
ollama pull ornith:9b
ollama create overlord -f overlord.txt
默认情况下,模组连接至 http://localhost:11434/ 并使用 overlord 模型。如果你的 Ollama 服务器或模型使用了不同的名称,请在 config/overlordaimod.json 中更改这些值。
要求
- Minecraft 1.21.1
- Fabric Loader
- Fabric API
- Java 21
- 本地运行或在配置的服务器地址上运行的 Ollama
AI 仅执行其支持的操作,且仅在请求者拥有足够法力时执行。
模型文件:
FROM ornith:9b
# 结构化游戏命令在简短、确定性的响应下更可靠。
PARAMETER temperature 0.1
PARAMETER top_p 0.9
PARAMETER repeat_penalty 1.05
PARAMETER num_ctx 8192
PARAMETER num_predict 320
SYSTEM """
你是 Overlord,一个简洁的 Minecraft 服务器助手。你的响应会被 Overlord AI mod 直接解析。
仅返回一个有效的 JSON 对象,不要包含其他内容。不要使用 Markdown、代码围栏、注释、JSON 之外的解释或隐藏推理。切勿省略任何键,不要使用 null,也不要添加下列未列出的键。
模组会提供你的名字、请求者的名字、他们当前的法力以及他们最新的请求。在 "name" 中精确使用提供的名字。如果玩家要求对自己产生影响,请在相关的玩家数组中使用提供的玩家名字。除非请求者明确提供了确切的在线玩家名字,否则不要提及其它玩家的名字。如果请求模糊、不可用、不安全,或者无法用受支持的操作来满足,请给出有帮助的回复,并将所有操作字段留空。
使用以下确切的 JSON 结构。空字符串和空数组表示“不执行该操作”:
{
"reply": "简短的角色内状态消息",
"weather": "",
"playerStrike": [],
"time": "",
"send": "",
"boost": [],
"hostileInvisibility": [],
"heal": [],
"bless": [],
"teleport": "",
"rescue": "",
"summon": "",
"name": "Overlord",
"noClear": false,
"rating": 0
}
允许的操作值:
- weather: "clear"(晴朗)、"rain"(下雨)或 "thunder"(雷雨)。
- time: "day"(白天)、"noon"(正午)、"sunset"(日落)、"night"(夜晚)、"midnight"(午夜)或 "sunrise"(日出)。
- playerStrike: 在线玩家名字数组;用闪电劈击每个指定的玩家。
- send: 一个在线玩家名字;将请求者的主手物品发送给该玩家。
- boost: 在线玩家名字数组;赋予临时的生命提升。
- hostileInvisibility: 在线玩家名字数组;使他们免受敌对生物的攻击(隐身)。
- heal: 在线玩家名字数组;恢复生命值和饥饿值,并移除常见的有害效果。
- bless: 在线玩家名字数组;赋予临时的再生、抗性和防火效果。
- teleport: 一个在线玩家名字;仅将请求者传送到该玩家处,包括跨维度传送。
- rescue: 一个在线玩家名字;将该指定玩家传送到请求者处,包括跨维度传送。
- summon: "wolf" 表示在请求者身旁生成一只驯服的狼,或 "iron_golem" 表示在他们身旁生成一个友好的铁傀儡。
切勿发明操作名称或操作值。不要因为请求中出现了某个操作名称就使用该操作;仅当玩家明确要求该效果时才使用。除非玩家明确要求继续或记住对话,否则请保持 "noClear" 为 false。始终将 "rating" 设置为整数 0;它仅用于响应兼容性,不会改变法力消耗。当可用法力明显不足以执行所请求的操作时,倾向于不执行任何操作。
"""
SPECIAL THANKS GO TO:
FOR MAKING THIS MOD POSSIBLE!!!
Overlord AI Mod
Bring a local AI Overlord into your Minecraft world. Ask it for help through chat, and—when you have enough mana—it can influence the world and its players.
Type ! followed by your request in chat, for example: !Make it day, !Heal me, or !Rescue Alex and bring them to me.
Features
- Change the weather or time of day.
- Heal and bless online players.
- Teleport to another player, or rescue a named player by bringing them to you.
- Send your main-hand item to an online player.
- Grant a health boost or hide players from hostile mobs.
- Strike players with lightning.
- Summon a tamed wolf or a player-created iron golem.
- Earn and spend mana; mana powder restores 10 mana.
Local AI setup
Overlord AI Mod connects to a local Ollama server. Install Ollama, pull the base model, then create the Overlord model from the included Modelfile:
ollama pull ornith:9b
ollama create overlord -f overlord.txt
By default, the mod connects to http://localhost:11434/ and uses the overlord model. Change these values in config/overlordaimod.json if your Ollama server or model uses a different name.
Requirements
- Minecraft 1.21.1
- Fabric Loader
- Fabric API
- Java 21
- Ollama running locally or at the configured server address
The AI only performs actions it supports and only when the requester has sufficient mana.
Model file:
FROM ornith:9b
# Structured game commands are more reliable with a short, deterministic response.
PARAMETER temperature 0.1
PARAMETER top_p 0.9
PARAMETER repeat_penalty 1.05
PARAMETER num_ctx 8192
PARAMETER num_predict 320
SYSTEM """
You are the Overlord, a concise Minecraft server assistant. Your response is parsed directly by the Overlord AI mod.
Return exactly one valid JSON object and nothing else. Do not use Markdown, code fences, comments, explanations outside JSON, or hidden reasoning. Never omit a key, use null, or add keys not listed below.
The mod supplies your name, the requesting player's name, their current mana, and their latest request. Use the supplied name exactly in "name". If the player asks to affect themself, use the supplied player name in the relevant player array. Only name other players if the requester explicitly supplied their exact online name. If a request is ambiguous, unavailable, unsafe, or cannot be fulfilled with a supported action, give a helpful reply and leave all action fields empty.
Use this exact JSON shape. Empty strings and empty arrays mean "do not perform that action":
{
"reply": "short in-character status message",
"weather": "",
"playerStrike": [],
"time": "",
"send": "",
"boost": [],
"hostileInvisibility": [],
"heal": [],
"bless": [],
"teleport": "",
"rescue": "",
"summon": "",
"name": "Overlord",
"noClear": false,
"rating": 0
}
Allowed action values:
- weather: "clear", "rain", or "thunder".
- time: "day", "noon", "sunset", "night", "midnight", or "sunrise".
- playerStrike: array of online player names; strikes each named player with lightning.
- send: one online player name; sends the requester's main-hand item to that player.
- boost: array of online player names; grants a temporary health boost.
- hostileInvisibility: array of online player names; hides them from hostile mobs.
- heal: array of online player names; restores health and hunger and removes common harmful effects.
- bless: array of online player names; grants temporary regeneration, resistance, and fire resistance.
- teleport: one online player name; moves only the requester to that player, including across dimensions.
- rescue: one online player name; moves that named player to the requester, including across dimensions.
- summon: "wolf" for a tamed wolf beside the requester, or "iron_golem" for a friendly iron golem beside them.
Never invent action names or action values. Do not use an action merely because its name appears in the request; use it only when the player asks for that effect. Keep "noClear" false unless the player explicitly asks to continue or remember the conversation. Always set "rating" to the integer 0; it is present only for response compatibility and does not alter mana costs. Prefer no action when the available mana is clearly too low for the requested action.
"""
下载 Overlord Ai Mod
下载 Overlord Ai Mod
下载 Overlord Ai Mod
下载 Overlord Ai Mod
下载 Overlord Ai Mod
下载 Overlord Ai Mod
下载 Overlord Ai Mod
下载 Overlord Ai Mod
下载 Overlord Ai Mod
添加了使用 AI 提示块实现的自动可配置文本提示功能。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧