
v.0.6.5 更新内容:
剧透
新增:
-为 MetaNPC_Mod 添加了 Player2 API 平台支持。
-新 NPC 职业——“觉醒者” (Awakened)
*该 NPC 允许你通过“服务”菜单创建自己的 NPC。它还提供一个“召唤石”,用于将 NPC 添加到你的世界中(对于作弊玩家或地图制作者,可以使用 /metanpc_create 和 /metanpc_spawnprofile <NPC Profile Name> 命令)。当你创建 NPC 时,它们将以 .MetaProfile 格式保存。这意味着 NPC 将始终保留其原始状态,并且可以通过传输 .MetaProfile 文件来分享你创建的 NPC。
-新 NPC 职业——“守卫” (Guardian)
*独立的 NPC,将保护居民免受外部威胁,即原版敌对生物和敌对玩家。此外,守卫不会像其他居民那样在村庄中随机走动。守卫会在村庄的小径上巡逻,沿着小径规划路线。你可以通过创建/连接小径或移除你不希望守卫浪费时间的不必要路径来影响这些路线。守卫不需要睡觉,不会远离村庄,也不能被雇佣为同伴。
-一种新的反应类型——“动态反应”
*这是一种全新的 NPC 对玩家行为的反应方式。以前,NPC 无法动态地对玩家的行为做出反应。现在,NPC 有机会对任何玩家行为做出反应(如挖掘钻石、熔炼矿石、击杀生物、选择物品、合成物品等)。目前,大约有 150 种触发器可以引发 NPC 的评论。你在游戏中的任何行为都不会 100% 触发评论,以免系统因评论过多而过载并打扰玩家。例如,NPC 只有 15% 的概率会对玩家“使用工作台”这一行为做出回应。评论既通过神经网络生成,也基于预准备的台词。
-事件记录器(实验性功能)
*GPT 的一种新型输入数据,以便更好地理解正在发生的事情的背景。事件记录器会记录玩家的所有绝对行为(破坏方块、放置方块、使用物品、击杀生物等),这可以为 NPC 提供正在发生什么的信息。例如,NPC 将始终知道你在一分钟前在工作台上做了什么。或者他们会知道你把什么东西放进了箱子或从箱子里拿了出来。
-背景档案库(Lorny archive,实验性功能)
*GPT 的一种新型输入数据,以便更好地理解术语、事件和实体。为了不使标准 NPC 提示词因大量角色细节而变得臃肿,发明了背景档案库。它包含有关游戏世界的各种信息。例如,如果档案库中有关于末影人的信息,而玩家问 NPC:“你知道末影人吗?”——系统将开始搜索玩家消息中可能包含在档案库中的关键词。在这种情况下,关键词将是“Endermen”,系统将加载来自该卡片的信息以提供上下文。
-工作区域系统
*专为 NPC 积极工作设计的系统。目前,以下职业可以使用这些区域:农民、牧羊人、伐木工。要创建工作区域,必须使用“工作区域书”物品。
-NPC 的新服务:
*农民——雇佣农民后,可以将其分配到工作区域。根据工作区域的大小,农民可以自己开垦田地种植作物。但是,建议提前为农民的工作准备好现成的田地。农民可以种植和收获基本作物——小麦、胡萝卜、土豆。为了让农民开始工作,请提供植物种子。如果有骨粉,它将加速植物生长。
*伐木工——雇佣伐木工后,可以将其分配到工作区域。必须为伐木工提供树苗,以便他开始在工作区域种植树木幼苗。当树木长大后,他将开始砍伐它们并重新种植树苗。
*牧羊人——雇佣牧羊人后,可以将其分配到工作区域。建议在该区域建造围栏,牲畜应该已经在里面了。拥有必要的牲畜饲料,牧羊人会将其繁殖到指定限制。如果超过限制,牧羊人可以开始屠宰牲畜以获得肉、皮革和羽毛。如果牧羊人的物品栏里有剪刀或桶,他可以剪羊毛并挤牛奶。
*冒险家——雇佣冒险家后,即使没有 200 点声望值也可以将其作为同伴携带。
-新物品:
- “召唤石” - 允许你从 .MetaProfile 文件中在你面前生成一个 NPC。这样的 NPC 将保证有 200 点声望值,允许你将此类 NPC 作为同伴携带。此物品可以从“觉醒者”职业的 NPC 处获得,每提升 10 级玩家等级可获得一个。
- “配置书” - 登录游戏时出现。允许你使用该物品自定义模组。
- “工作区域书” - 登录游戏时出现。允许你为 NPC 创建工作区域。请按照书中的说明进行创建。
更改:
-男女 NPC 的模型略有变化。男性 NPC 使用 Steve 模型,女性 NPC 使用 Alex 模型。
v.0.5.2 更新内容:
剧透
新增:
-"为模组添加 OpenRouter 支持。OpenRouter 提供了许多适合角色扮演游戏的模型。"
-"针对 NPC 的 GPT 反应进行了灵活配置。你可以为不同类型的生成设置冷却时间限制,或者完全禁用特定的 GPT 反应。"
-"矿工服务——现在可以雇佣具有‘矿工’职业的 NPC。在需要时,矿工可以跟随你,开采可见的矿石,并在小半径内指出方块后的矿石。"
-“摘要系统——每次与 NPC 对话后,都会生成一段简短的互动摘要。该系统存储 10 条摘要,并在上下文加载时提供给 NPC。新的摘要会被保存,旧的则会被删除。”
-“碎片记忆——除了摘要外,NPC 还能记住重要信息(如果 AI 认为这些信息重要或不寻常)。这些记忆会被单独保存并在需要时加载。如果 NPC 忘记了某事,你可以尝试提醒他们。如果你的消息中包含足够的关键词,系统将找到该记忆并加载它。”
-“新提示词系统——提示词现在分为‘主提示词’、‘玩家名称’和‘玩家信息’。NPC 不再绑定到单一的全局提示词。这意味着如果你手动编辑他们的文件,不同的 NPC 可以拥有不同的提示词。如果你更改了主提示词,新创建的 NPC 会使用它,而旧 NPC 将继续使用其之前的版本。”
-“传记——每个 NPC 现在都会生成自己的传记(由预写的片段组成),从而提升 NPC 的自我意识和角色扮演质量。”
-“独特 NPC——除了常规生成的 NPC 外,世界中现在还包含预先制作好的 NPC,他们拥有自己的故事和性格。目前可以找到 Alex、Steve 和 Quilla。他们出生在平原生物群系中的房屋里。”
已更改:
-“按钮模式”——已从模组中完全移除。取而代之的是仅提供“简易 GPT 模式”。如果你不希望 NPC 自动生成任何内容,只需在模组设置中禁用所有 GPT 生成功能即可。
-“改进了家园系统。如果 NPC 有床,他们将睡在自己的房子里。是的,你必须为 NPC 提供睡觉的地方。”
-“改进了 NPC 战斗系统。同伴 NPC 现在会使用铁剑攻击敌对生物,并带有攻击动画。目前尚不支持手动装备 NPC。”
-“更改了送礼和 NPC 物品栏系统。要向 NPC 赠送物品,必须按住 SHIFT + Q 从快捷栏赠送物品。如果你只是将任何物品丢弃在 NPC 附近,他们会将其捡起放入自己的物品栏中。”
-“修复了一个本地化 bug:如果游戏语言不是俄语或英语,模组会显示本地化键值而非文本。现在,如果模组不支持当前游戏语言,将自动应用英语。”
-“修复了一个 bug:治愈僵尸村民时会创建两个 NPC:一个是正常的,另一个是损坏的重复体。”
-“修复了一个 bug:NPC 的名字姓氏部分最多只能有四个。”
还有一些其他的修复和添加,但大多数玩家可能不会注意到。
v.0.3.2 更新日志:
剧透
新增:
-“通过 OpenAI 选择模组可使用的模型(GPT-3.5-Turbo, 4, 4-Turbo, 4-32k, 4o)”
-“简易 GPT 模式”——在菜单中启用此功能后,你可以在不与界面交互的情况下与 NPC 交流。只需在聊天中输入内容,或在消息中指定 NPC 的名称即可。当玩家靠近时,NPC 可以自行生成副本。(空闲副本、同伴空闲副本、谣言等)NPC 能在 6 格范围内“听到”玩家,这可以通过 NPC 侧面出现的云朵来判断。
-“支持通过代理使用 OpenAI。”
-“上下文编辑”——增加了编辑发送给 NPC 的上下文的能力,从而改变他们对世界的感知。标准上下文已优化了三次。
-“模组现已完全支持多语言”
-“支持首个本地神经网络——oLlama”
-“大量 bug 修复”(别忘了删除此项)
已更改:
-“注册 ChatGPT API 密钥的流程变得更加直观”
-“要向 NPC 赠送礼物,只需将物品扔到他脚边,他就会捡起来。不再需要通过 GUI 使用按钮。”
-“如果你从背后接近 NPC,他们不再能 360 度看到周围。如果你躲在 NPC 背后,副本生成将不生效。”
-“代码中的 NPC 不再继承‘村民’标签,而是成为独立的‘EntityCreature’,这在潜在层面上减少了不兼容模组导致游戏崩溃的可能性。”
v.0.2.7 更新日志:
剧透
新增:
- NPC 对结构的反应;
- NPC 对生物声音的反应;
- NPC 对处于地下的反应;
- 新增一类 NPC:Moneyman;
- 使用凤凰笔复活 NPC 的系统(该笔可从牧师处购买);
- 通过 GUI 互动影响 NPC 的情绪;
- 铁匠铺的新服务:修理——用金币修复物品的能力;重熔——用金币同时熔炼多种不同矿石的能力。
- 通过 GPT 对话可以增加/减少声望;
- 通过 GPT 对话,你可以打开 NPC 的物品栏、交易窗口或服务窗口;
- 通过 GPT 对话,你可以要求 NPC 跟随你、等待或停止跟随;
- 为 GPT 添加了上下文数据:NPC 所在的生物群系、NPC 所在位置的高度(地表或洞穴)
已更改:
- 金条形式的“插件”已替换为金币;
- 交易后获取物品的系统略有调整;
- 限制通过 GUI 与 NPC 的交流次数;
- NPC 物品栏可通过 GUI 打开,替代 Shift+鼠标右键;
- 修复了 NPC 错误记忆过去 GPT 对话的问题;
- 商人的商品种类已更改,增加了新类型的物品、药水以及附魔物品。
描述:
本模组添加了 NPC,它们取代原版村民,并集成了 ChatGPT 和 oLlama。也就是说,你可以直接通过游戏聊天与 NPC 进行交流。NPC 还会记得与玩家过去的对话。与 NPC 的交流通过 GPT 实现,并配备了一系列上下文数据以便更好地与 NPC 进行博弈。上下文包括:
NPC 的姓和名;
他的职业;
他的人格类型;
他的游戏心情;
你与他的声望等级;
其所在的生物群系;
其所在的高度(洞穴或地表);
各种指令和命令(如果声望允许,你可以要求 NPC 跟随你);
交易和服务(你可以要求 NPC 进行交易并打开他的物品栏,或要求他提供与其职业相关的服务);
对话对 NPC 声望的影响。(普通对话会略微提升你的声望,侮辱会降低你的声望,而 NPC 喜欢的评论和一般性对话将显著提升你的声望)
保存和加载过去的对话记录。
GPT-模组
目前,该模式中有两种 GPT 操作类型:“按钮模式”和“简易 GPT 模式”。
“按钮模式”是标准模式,当你需要靠近 NPC、右键点击它,并在 GUI 中点击“通过 GPT 说话”按钮时使用。要完成对话,你需要远离 NPC 3 个方块。其中所有针对 NPC 的命令均能正常工作。它为那些希望节省代币消耗、避免由 NPC 生成内容的玩家提供了一种替代方案。
“简易 GPT 模式”是一种新模式,可在模组设置中启用。通过此模式,你可以无需点击 GUI 中的按钮,直接通过聊天与 NPC 进行交流。NPC 能够“听到”6 个方块范围内的玩家声音。NPC 侧面出现的云朵也可以用来判断是否处于交流范围内。
NPC 还可以主动与玩家开始对话,或者仅仅生成回应语句。玩家可以回应这些言论,也可以忽略它们。15 秒后,或者如果你离开 NPC 超过 6 个方块,NPC 对话将自动关闭。当你在聊天中时,计时器会重置。由 NPC 发起的对话及其言论不会存储在 NPC 的记忆中以节省代币。目前,在此模式下并非所有文本命令都能正常工作。
未来,计划通过 GPT 通信触发 NPC 的各种功能。
Core-模组
但是,如果你没有机会使用该模组的 GPT 功能,也没关系。因为该模组还提供了其他功能:
-
通过对话框与 NPC 交流,点击执行你的动作。
右键点击 NPC 将打开一个对话框。“说话”和“动作”按钮负责社交部分,其中包含针对不同 NPC(无论友好与否)的相应动作选项。某些对话回应仅针对具有特定职业和原型(At the moment, mainly for the class "Farmer", "Blacksmith" and the archetypes "Cynic", "")的 NPC 出现。(目前主要针对“农民”、“铁匠”职业以及“愤世嫉俗者”等原型)。对话结束时有三种结果:
正面 - 你将收到友好的 NPC 回应,这会提升你与该 NPC 的声望。
中性 - 你将收到 NPC 的中性回应,这不会对你们之间的声望产生任何影响。
负面 - 你将收到 NPC 的负面回应,这会降低你与该 NPC 的声望。
-
与每个 NPC 的声望系统。
每个 NPC 都根据其声望等级对你持有不同的态度。你可以成为他们的陌生人,他们会在问候时注意到这一点。或者与他们建立关系,这也将在玩家的问候语中体现。你的声望等级决定了你是否可以将 NPC 作为同伴携带,或打开他的物品栏。未来,我计划扩展声望在 NPC 游戏玩法中的作用。
-
原型和心情系统。
原型 - 每个 NPC 都被分配了独特的原型(人格),它会以不同程度的方式持续影响对话的结果。与某些原型沟通会更轻松,因此对话结果往往可能是正面的。然而,对于那些不太愉快和友好的原型又该如何呢?与这类人的沟通可能更加困难,且大多数情况下对话结果将是负面的。
心情 - 如果 NPC 的原型是固定的,那么 NPC 的心情则是可变的。NPC 的心情以及原型都会通过操纵每种对话结果(正面、中性、负面)的百分比来影响对话结果。因此,对于像“抱怨者”这样原型的 NPC,如果他拥有合适的心情,你可以抓住时机,有很大几率实现正面的对话结果。
-
同伴模式。
拥有足够的声望(200),玩家可以将 NPC 作为同伴带在身边冒险。同伴不会让玩家感到无聊,因为他会以各种方式评论他们所处的地点,警告敌对生物的存在,并对选定的物品和方块进行点评。
-
赠送礼物。
并不总能找到与 NPC 共同的语言。为了显著提升你的声望,你可以赠送礼物。通常,有些礼物适合几乎所有的 NPC。但也有一些礼物仅适用于特定的 NPC 职业。俗话说:对某人来说是垃圾,对另一个人来说却是宝藏。然而,你不能给 NPC 一堆钻石,因为 NPC 一次性接受太多礼物时会感到尴尬。要赠送礼物,只需将一个物品扔到 NPC 脚下即可。
-
职业系统。
生成时,NPC 会被分配一个随机职业。他的皮肤以及可为玩家提供的服务交易内容将取决于此。由于技术问题,此版本尚不可用相关服务。
-NPC 复活系统。
现在你不必再担心心爱 NPC 的死亡,因为现在可以使用凤凰羽毛帮助其复活,该羽毛可以从牧师处购买。
-房屋功能。
每个人都应该拥有自己的家。在 NPC 的出生点会设定其家园位置。因此,居民会在夜间传送回家,以免被怪物杀害。你可以自行设定特定居民的家园位置。但需满足以下条件:房屋必须位于室内,不能在开阔地带;必须安装一扇门;必须安装一张床。
-NPC 对话系统
NPC 能够交谈并对某些事情发表评论,前提是满足特定条件:
空闲对话是当玩家靠近时,所有 NPC 随机说出的对话。
同伴空闲对话是你的同伴 NPC 随机说出的对话。
问候语 - 每个游戏清晨,NPC 会根据其与玩家的声望向玩家打招呼。
同伴 NPC 的生物群系反应 - 同伴 NPC 会对玩家所在的生物群系做出反应。
建筑 - 同伴 NPC 会对某些建筑(村庄、地下要塞等)做出反应。
传闻 - 通过传闻,NPC 会知道你在游戏中做了什么并对此发表评论。例如,如果你拾取了地狱石,NPC 会对此发表评论。或者,如果你发现了钻石,NPC 会为此祝贺你。NPC 可以告诉你许多有趣的事情。
NPC 同伴生物可以警告你接近的敌对生物。
生物声音 - NPC 同伴可以听到生物的声音并警告玩家其接近。
动态反应 - NPC 同伴可以对玩家的动作做出动态反应。目前此类动作不多,包括:玩家冲刺、击杀僵尸、击杀牛、击杀兔子。
-NPC 物品栏。
与 NPC 建立足够的声望(200)后,可能可以将物品转移给 NPC。矿下没手搬运?没关系!同伴会很乐意帮你从大地深处取出所有好东西!
-交易
每个职业都可以有自己的交易报价。玩家可以无限次买卖特定物品。然而,如果交易中出现了非常稀有且昂贵的物品,它们通常只能限量购买。
-服务
NPC 根据其职业可以为玩家提供不同的有用服务。(目前只有铁匠)
(不要忘记,更改设置后:
(选择神经网络、选择模型、安装 API 等),你总是需要重启游戏)
安装 OpenAI API:
- 进入主菜单 → Mods → MetaNPC Mod → API-key;
- 选择你要使用的模型,插入你的密钥并点击“Save API Key”;
- 密钥将被安装和验证,之后你可以重启游戏。
(如果密钥未通过验证,则说明它有问题,无法使用。这不是我的愿望清单,这是事实。在写信给我之前解决你的密钥问题(密钥输入不正确;拼写错误;缺少 VPN;密钥没有余额。)如果你没有购买私人密钥,而是从左边的网站、“密钥生成器”等处获取,请不要写信给我,因为那是浪费时间。)
标记:如果你的国家/地区无法使用 OpenAI 服务,则需要使用 VPN。
在模组中安装 oLlama:
- 下载 oLlama:;
- 找到适合你的模型:;
- 通过插入所选模型的下载行打开 PowerShell 控制台(例如,“ollama run llama3.2:3b”);
- 在控制台中输入“ollama list”并复制模型名称;
- 进入主菜单 → Mods → MetaNPC Mod → Config → oLlama setting。
输入地址“”,并将模型名称粘贴到相应字段中,然后点击“save”。选择使用 oLlama 后,重启游戏。
如何更改神经网络的上下文文件:
- 进入“.minecraft\config\MetaNPC_Mod”
- 每种语言会有两个文件:“GPT_Context_en”、“GPT_Context_ru”、“GPT_LoreFacts_en”、“GPT_LoreFacts_ru”。更改你需要的文件:
Context:此文件包含 NPC 的主要上下文,每次调用 NPC 后都会发送。
LoreFacts:此文件包含术语及其信息。如果在聊天中,玩家的句子包含此术语,NPC 将接收该信息并基于此形成回答。
(为了使一切正常工作,你必须尽一切努力,尝试修改上下文文本。在某些情况下,重新表述上下文会有所帮助,在其他情况下,使用更强大的模型会有所帮助,以便一切工作得更好,NPC 严格按照上下文响应。你需要在这里进行实验。)
致谢:
Timur Shayanov - 负责将时尚翻译成英语。
我的 Discord 是 yukiop。
如果俄语和英语的本地化出现问题,以便我进行修改。或者,你个人想告诉我某个错误、缺陷,或提出建议或意见。

Changes v.0.6.5:
Spoiler
Added:
-Added support for the Player2 API platform for MetaNPC_Mod
-New NPC class - "Awakened"
*This NPC allows you to create your own NPCs through the "Services" menu. It also gives you a "Summoning Stone" to add NPCs to your world (For cheaters or map makers, you can use the /metanpc_create and /metanpc_spawnprofile <NPC Profile Name> commands). When you create your NPCs, you save them in the format.MetaProfile. This means that the NPC will always be preserved in its original state and it becomes possible to share your created NPCs by transferring its file.MetaProfile.
-New NPC class - "Guardian"
*Independent NPCs that will protect residents from external threats. Namely, vanilla hostile mobs and from hostile players. Also, the Guards don't randomly walk around the village like the rest of the residents. Guards - patrol the trails of the village, plotting routes along the trails. You can influence these routes yourself by creating/connecting trails or removing an unnecessary path that you don't want the guards to waste their time on. The guards do not need to sleep, do not go far from the village, and cannot be hired as a companion.
-A new type of reactions - "Dynamic reactions"
* A radically new type of NPC reaction to the player. Previously, NPCs could not dynamically react to the player's actions. Now, there is a chance that the NPC will be able to react to any player action (Diamond mining, ore smelting, killing mobs, item selection, item crafting, etc.). At the moment, there are about 150 triggers in fashion, which can provoke the NPC to comment. Any of your actions in the game are not 100% triggered, so as not to overload the system with comments and not bother the player. For example, an NPC can respond to a player's "Use the workbench" action with only a 15% chance. Comments work both through a neural network and on pre-prepared replicas.
-Event logger (Experimental)
*A new type of input data for GPT, for a better understanding of the context of what is happening. The event logger records absolutely all the player's actions (Breaking blocks, installing blocks, using items, killing mobs, etc.), this can give the NPC the context of what is happening. For example, an NPC will always know what you have done on the workbench a minute ago. Or they will know what you put in the chest or took out of it.
-Lorny archive (Experimental)
*A new type of input data for GPT, for a better understanding of terms, events, ent. In order not to overload the standard NPC prompt with cumbersome details from a large number of characters, the Lore Archive was invented. It contains various information about the world of the game. For example, if there is information about the Enderman in the archive and the player asks the NPC, "What do you know about Endermen?" - The system will start searching the player's message for keywords that may be contained in the Archive. In this case, the keyword will be "Endermen" and the system will load the information from this card for context.
-Work area system
*A system designed for the active work of NPCs. At the moment, these zones can be used by: Farmer, Shepherd, Forester. To create a work area, you must use the "Work Area Book" item.
-New services from the NPC:
*Farmer - By hiring a farmer, he can be assigned to a work area. Depending on the size of the work area, the farmer himself can make a field for sowing crops. However, it is recommended to create a ready-made field for the farmer's work in advance. A farmer can plant and harvest basic crops - wheat, carrots, potatoes. In order for the farmer to start working, provide him with plant seeds. Having bone meal, it will accelerate plant growth.
*Forester - By hiring a forester, you can assign him to the work area. The forester must be provided with seedlings so that he can start seeding the work area with tree seedlings. When the trees grow up, he will start cutting them down and planting the seedlings anew.
*Shepherd - By hiring a shepherd, he can be assigned to the work area. It is recommended to build a pen in this area, where the cattle should ALREADY be. Having the necessary feed for livestock, the shepherd will multiply them up to the specified limit. If the limit is exceeded, the Shepherd can start slaughtering livestock to obtain meat, leather, and feathers. If the Shepherd has scissors or a bucket in his inventory, the Shepherd can shear sheep and milk cows.
*Adventurer - By hiring an Adventurer, you can take him as a companion without having 200 reputation points.
-New items:
* "Summoning Stone" - allows you to spawn an NPC in front of you from a file.MetaProfile. Such an NPC will have a guaranteed reputation of 200 points, allowing you to take such an NPC as a companion. This item can be obtained from an NPC of the "Awakened" class for every 10 levels of the player.
* "Configuration Book" - appears when logging into the game. Allows you to customize the mod using this item.
* "Work Area Book" - appears when you log in to the game. Allows you to create work zones for NPCs. Follow the instructions in the book to create it.
Changes:
-The models of male and female NPCs have been slightly changed. Male NPCs use the Steve model, Female NPCs use the Alex model.
Changes v.0.5.2:
Spoiler
Added:
-"OpenRouter support for the mod. OpenRouter provides many different role-play-friendly models."
-"Flexible configuration of GPT reactions for NPCs. You can set cooldown limits for different types of generation or completely disable specific GPT reactions."
-"Miner services – NPCs with the 'miner' profession can now be hired. When needed, the miner can follow you, mine visible ore, and point out ore behind blocks within a small radius."
-"Summary System – After each conversation with an NPC, a short summary of the interaction is generated. The system stores 10 summaries, which are given to the NPC during context loading. New summaries are saved and old ones are deleted."
-"Fragment Memory – In addition to summaries, NPCs can remember important information (if the AI considers it important or unusual). These memories are saved separately and loaded when needed. If an NPC has forgotten something, you can try reminding them. If your message contains enough key words, the system will find the memory and load it."
-"New prompt system – The prompt is now divided into 'Main Prompt', 'Player Name', and 'Player Info'. NPCs are no longer tied to a single global prompt. This means that different NPCs can have different prompts if you manually edit their files. If you change the Main Prompt, new NPCs will use it, while old NPCs will continue using their previous version."
-"Biography – Each NPC now generates their own biography (from pre-written fragments), improving NPC self-awareness and role-play quality."
-"Unique NPCs – In addition to regular generated NPCs, the world now contains pre-made NPCs with their own story and personality. Currently, Alex, Steve, and Quilla can be found. They spawn in their houses in the Plains biome."
Changed:
-""Button Mode" – completely removed from the mod. Instead, only the "Easy GPT Mode" is available. If you don’t want NPCs to generate anything automatically, simply disable all GPT generations in the mod settings."
-"Improved home system. NPCs will now sleep in their own houses if they have a bed. Yes, you must provide NPCs with a sleeping place."
-"Improved NPC combat system. Companion NPCs now attack hostile mobs with an iron sword and with attack animations. Equipping NPCs manually is not yet possible."
-"Changed the gift-giving and NPC inventory system. To give an item to an NPC, you must press SHIFT + Q to gift an item from the hotbar. If you simply drop any item near the NPC, they will pick it up into their inventory."
-"Fixed a localization bug where, if the game language was not RU or EN, the mod displayed localization keys instead of text. Now, if the game language is not supported by the mod, English is applied automatically."
-"Fixed a bug where curing a zombie villager created two NPCs: one normal and one broken duplicate."
-"Fixed a bug where NPCs could have only four last names."
There are also some other fixes and additions, but they will not be noticeable to most players.
Changes v.0.3.2:
Spoiler
Added:
-"Choosing a model that the mod can work with via OpenAI (GPT-3.5-Turbo, 4, 4-Turbo, 4-32k, 4o)"
-"Easy GPT-Mode" - by enabling this function in the menu, you can communicate with NPCs without interacting in the interface. It is enough to write something in the chat, or specify the name of the NPC in the message. NPCs can generate replicas themselves when a player is nearby. (Idle replicas, companion Idle replicas, rumors, etc.) NPCs "hear" the player in 6 blocks, this can be determined by the cloud that appears on the side of the NPC.
-"OpenAI can be used through a proxy."
-"Context Editing" - Added the ability to edit the sent context for the NPC, changing his perception of your world. The standard context has been optimized 3 times.
-"The mod has become completely multilingual"
-"Support for the first local neural network - oLlama"
-"A lot of bugs" (don't forget to delete this item)
Changed:
-"The procedure for registering the ChatGPT API key has become more intuitive"
- "To give a gift to an NPC, it is enough to throw an object at his feet and he will pick it up. No more buttons via GUI."
- "NPCs can no longer see 360 degrees if you approach them from behind. Replica generation does not work if you are behind the backs of NPCs."
-"NPCs in the code stopped inheriting the "Villager" tag and became separate "EntityCreature", which potentially reduces the number of incompatible mods, which is guaranteed to break the game"
Changes v.0.2.7:
Spoiler
Added:
The reaction of NPCs to structures;
NPCs' reaction to mob sounds;
The NPC's reaction to being underground;
A new class of NPCs is a Moneyman;
The NPC resurrection system using the Phoenix Pen (The pen can be purchased from a Priest);
Influencing the mood of NPCs by interacting through the GUI;
New services for the blacksmith: Repair - the ability to repair items for gold; Remelting - the ability to melt many different types of ore at the same time, for gold.
Dialogues via GPT can increase/decrease reputation;
Through the GPT dialog, you can open the inventory of NPCs, the window of trade, services;
Through the GPT dialog, you can ask the NPC to follow you, wait, let go of following;
Added contextual data for GPT: The biome in which the NPC is located, the height of the NPC location (Surface or caves)
Changes:
The "plugs" in the form of gold bars were replaced with gold coins;
The system of receiving items after trading has been slightly changed;
Limit of communication with NPCs via GUI
NPC inventory can be opened via the GUI, instead of Shift-PCM;
Fixed NPCs memorizing past dialogues via GPT;
The assortment of merchants has been changed with new types of items, the addition of potions, enchanted items.
Description:
This mod adds NPCs that replace vanilla Villagers, with the integration of ChatGPT and oLlama. That is, you can communicate with NPCs directly through the game's chat. NPCs will also remember past conversations with the player. Communication with NPCs is implemented via GPT, with an array of context for better wagering with NPCs. The context includes:
First and last name of the NPC;
His profession;
His personality type;
His gaming mood;
Your reputation level is with him;
The biome in which it is located;
The height at which it is located (Caves or surface)
Various orders and commands (You can ask the NPCs to follow you if their reputation allows);
Trade and services (You can ask the NPC to trade and open his inventory, or ask him to provide a service to his profession);
The impact of conversations on reputation with NPCs. (Ordinary conversations will raise your reputation a little, insults will lower your reputation, and comments and dialogues in general that NPCs will like will significantly increase your reputation)
Saving and loading past dialogs.
GPT-Mod
At the moment, there are two types of GPT operation in the mode: "Push-button mode", "Easy GPT-Mode".
"Button mode" is the standard mode when you need to approach the NPC, right-click on it, and click on the "Speak via GPT" button in the GUI. To complete the dialogue, you need to move away from the NPC by 3 blocks. All the commands for NPCs are working properly in it. It is left as an alternative for those who want to spend less tokens, avoiding generation by NPCs.
"Easy GPT-Mode" is a new mode that is enabled in the mod settings. With it, you can communicate with NPCs via chat without clicking on the button in the GUI. The NPC will "hear" the player in the area of 6 blocks. It can also be determined by the cloud that appears on the side of the NPC.
NPCs will also be able to start a dialogue with the player themselves or simply generate replicas. The player can respond to these remarks or ignore them. After 15 seconds, the NPC dialogue will be automatically closed or if you leave the NPC for 6 blocks. When you are in a chat, the timer is reset. Dialogues initiated by the NPC, as well as his remarks, are not stored in the memory of the NPC to save tokens. At the moment, not all text commands are working properly in this mode.
In the future, communication via GPT is planned to trigger various functions for NPCs.
Core-Mod
However, if you don't have the opportunity to use the GPT function of the mod, it's okay. Because the mod provides other functions as well:
-Communicate with NPCs through dialog boxes, by clicking your actions.
Right-clicking on the NPC will open a dialog box. The "Speak" and "Actions" buttons are responsible for the social part, where there will be appropriate options for actions to the NPCs, whether they are friendly or not. Some replicas in dialogues will appear only for NPCs with a certain class and archetype (At the moment, mainly for the class "Farmer", "Blacksmith" and the archetypes "Cynic", ""). There are three outcomes to the end of the dialogue:
Positive - You will receive a friendly NPC response, which will raise your reputation with the NPC.
Neutral - You will receive a neutral replica of the NPC, which will not affect your reputation with the NPC in any way.
Negative - You will receive a negative response from the NPC, which will reduce your reputation with the NPC.
-A reputation system with each NPC.
Each NPC will have its own attitude towards you, according to the reputation scale. You can remain a stranger to them, which they will note during the greeting. Or establish a relationship with them, this will also be noted in the player's greeting. Your reputation level determines whether you can take an NPC as a companion or open his inventory. In the future, I plan to expand the role of reputation in gameplay with NPCs.
-A system of archetypes and moods.
Archetype - Each NPC is assigned its own Archetype (Personality), which will constantly influence the outcome of the dialogue, to one degree or another. It will be easier to communicate with some archetype and, accordingly, the outcome of the dialogue can often be positive. However, what can you say about less pleasant and friendly archetypes. Communication with such people can be more difficult and most often the outcome of the dialogue will be negative.
Mood - If the NPC Archetype is constant, then the mood of the NPC is changeable. The mood of the NPC, as well as the Archetype, affects the outcome of the dialogue by manipulating the percentages of each outcome of the dialogue (Positive, neutral, negative). Therefore, a certain "debuff" in communication, for example with the "Grumbler" archetype, if he has the right mood, you can catch the moment and achieve a positive outcome of the dialogue with a great chance.
-Companion mode.
Having a sufficient reputation (200), the player can take NPCs with him on adventures as a companion. The companion may not make the player bored, because he will comment in every possible way on the places where they are located, warn about the presence of hostile mobs, comment on selected items, blocks.
-
Gift giving.
It is not always possible to find a common language with a person, as with an NPC. And to significantly increase your reputation, you can give gifts. Often, there are gifts that will suit absolutely any NPC. And there are those gifts that are suitable only for certain classes of NPCs. As they say: for one - garbage, for another - treasure. However, you cannot give the NPC a stack of diamonds, because the NPC will feel awkward taking many gifts from the player at a time. To give a gift, it is enough to throw an object under the feet of an NPC.
-
The class system.
When spawning, the NPC is assigned a random class. His skin and trading offers with services that he can give to the player will depend on this. Due to technical issues, services on this version are not yet available.
-NPC resurrection system.
Now you can not be afraid of the death of your beloved NPC, because now it can be resurrected with the help of a Phoenix feather, which you can buy from a priest.
-The purpose of the house.
Everyone should have their own home. At the spawn site of the NPC, its home point is set. Therefore, residents will teleport to their homes at night so that they are not killed by monsters. You can set up the points of the house of certain residents yourself. But conditions must be met, such as: The house must be indoors and not in an open field; A door must be installed; A bed must be installed.
-NPC replica system
NPCs are able to talk and comment on something, if there are certain conditions for this:
Idle replicas are Replicas that are randomly uttered by all NPCs if the player is nearby.
Idle Companion Replicas are Replicas that are randomly uttered by NPCs that are your companion.
Greetings - NPCs greet the player every game morning, taking into account his reputation with each NPC.
Companion NPC biomes react to the biomes they are in with the player.
Structures- NPC Companions react to some structures (Villages, Underground Fortress, etc.).
Rumors - Through rumors, the NPCs will know what you were doing in the game and will comment on it. For example, if you picked up a hellstone, the NPCs will comment on it. Or, if you find diamonds, the NPCs will congratulate you on this. There are many things that NPCs can tell you something interesting about.
NPC Companion mobs can warn you about approaching hostile mobs.
Mob Sounds - NPC Companions can hear the sounds of mobs and warn the player about their proximity.
Dynamic - NPC Companions can react to the player's actions in dynamics. At the moment, there are not many such actions, these are: A player's sprint, killing a zombie, killing a cow, killing a rabbit.
-NPC inventory.
Having a sufficient reputation with the NPCs (200), it may be possible to transfer items to the NPCs. Are there not enough hands in the mine? It doesn't matter! A companion will be happy to help you take out all the good from the bowels of the earth!
-Trade
Each class can have its own trading offers. The player can buy and sell certain items an infinite number of times. However, if very rare and expensive items appear in the trade, they can often be purchased in limited quantities.
-Services
NPCs, depending on their class, can provide different, useful services to the player. (At the moment, only the blacksmith)
(Don't forget, after changing the settings:
(selecting a neural network, selecting a model, installing an API, etc.), you always need to restart the game)
Installing the OpenAI API:
- Go to the main menu → Mods → MetaNPC Mod → API-key;
- Select the model you want to use, insert your key and click "Save API Key";
- The key will be installed and verified, after which you can restart the game.
(If the key has not been verified, then something is wrong with it and it will not work. It's not my wish list, it's a fact. Solve problems with your key before writing to me (The key is not entered correctly; typo; lack of VPN; key without balance.) If you did not buy a private key, but took it from the left-hand site, the "key generator", etc. do not write to me, because it is a waste of time.)
MARKING: If OpenAI services are not available in your country, a VPN is required.
Installing oLlama in the mod:
- Download oLlama: ;
- Find a suitable model for yourself:
- Open the PowerShell console by inserting the download line for the selected model (For example, "ollama run llama3.2:3b");
- Enter the "oLlama list" in the console and copy the model name;
- Go to the main menu → Mods → MetaNPC Mod → Config → oLlama setting.
Enter the address " " also, paste the model name into the appropriate field and click "save". After choosing to use oLlama, restart the game.
How to change the context file for a neural network:
- Go to ".minecraft\config\MetaNPC_Mod"
- There will be two files for each language "GPT_Context_en", "GPT_Context_ru", "GPT_LoreFacts_en", "GPT_LoreFacts_ru". Change the one you need:
Context: this is the file that contains the main context for the NPC, which is sent every time after each call to the NPC.
LoreFacts: this is the file that contains the terms and information about them. If in the chat, the player's sentence contains this term, the NPC will receive the information and form their answer based on this information.
(To make everything work as it should, you will have to make every attempt, experimenting with the text of the context. In some cases, reformulating the context will help, in others, using more powerful models will help so that everything works better and the NPCs respond exactly according to the context. You need to experiment here.)
Credits:
Timur Shayanov - for translating fashion into English.
My Discord is yukiop.
In case there are problems with localization of both Russian and English, so that I make edits. Or, you personally want to inform me about some bug, flaw, tell me about your suggestions or advice.
评论 0
登录后参与评分
还没有评论,来抢沙发吧