
会顶嘴、记得你并请求帮助村民。 走近村民并正常聊天。它会以角色扮演的口吻回答,在其头顶的气泡中显示,使用你选择的 AI 或内置对话(当你未配置 AI 时)。向它询问工作,你会得到一份真实的工作:收割庄稼、为铁匠铺取铁、清理田里的僵尸。完成后,你将获得绿宝石作为报酬,村民对你的印象会变好,整条街都会听到这件事。
Fabric、Forge 和 NeoForge · Minecraft 1.20.1, 1.21.1, 26.1.2, 26.2 和 26.3 · 适用于任何 OpenAI 兼容的 AI 提供商、本地模型,甚至无需 AI

2.0 版本,村庄广场更新,让与村民交谈成为游戏的一部分,而不仅仅是一个新奇功能:
- 村庄委托:用你自己的话向村民询问工作,接受、完成、获得绿宝石和经验值奖励
- 声誉与八卦:完成的委托会提升你的原版声誉(可能会降低交易价格);邻居会听说你做了什么并在交谈中提及;被你伤害过的村民不会再给你提供工作
- 气泡对话:说话村民头顶的气泡,以及 AI 思考时的“...”气泡
- 三项进度成就,从第一次聊天到“村庄广场英雄”
- 更智能的上下文:生物群系、袭击事件、附近的怪物、你手持的物品、你的声望状态以及任何开放的委托
- 无需 AI 也能更好体验:内置对话现在会谈论生意,注意夜晚和雨天,并传递村庄新闻
- 更好的礼貌行为:村民不再回复本意是发给其他玩家的消息
- Minecraft 26.1.2,你的 1.x 世界和配置文件均可继承


对拥有交易的村民说**“有什么我能做的吗?”**(或“需要帮忙吗?”,“有差事吗?”,“¿tienes trabajo?”,“as-tu une quête ?”)。它会提供一个符合其职业的任务,或让你处理村庄周围的怪物。聊天栏中会出现一个卡片,显示条款并有 [Accept](接受)和 [Decline](拒绝)选项;你也可以直接说 “yes”。
| 职业 |
请求物品 |
| 农民 |
小麦、胡萝卜、土豆、甜菜根、南瓜、骨粉 |
| 图书管理员 |
纸、书、羽毛、墨囊 |
| 制图师 |
纸、玻璃板、指南针 |
| 牧师 |
腐肉、金锭、红石、玻璃瓶 |
| 盔甲匠、武器匠、工具匠 |
铁锭、煤炭,以及熔岩桶、燧石或木棍 |
| 屠夫 |
生猪肉、生牛肉、鸡肉、生羊肉、甜浆果 |
| 渔夫 |
鳕鱼、三文鱼、线、煤炭 |
| 箭工 |
木棍、燧石、线、羽毛 |
| 皮革工匠 |
皮革、兔皮、燧石 |
| 牧羊人 |
白色羊毛、线、剪刀 |
| 石匠 |
黏土、石头、石英、安山岩 |
| 以上所有职业 |
击败僵尸、骷髅、蜘蛛、苦力怕或掠夺者 |
- 资深村民会要求更多并支付更多(大师级村民最多可要求两倍的资源)
- 进度从你的库存计数,或从你接受任务后的击杀数计算:随时可以问 “how many?”(多少?)
- 再次与村民交谈即可交付:物品会被扣除,绿宝石和经验值会发放
/villagerai requests 列出你当前开放的所有委托
- 最多同时存在 3 个开放委托,同一村民再次请求前有短暂冷却时间,无业游民或只会抱怨的村民不会提供委托


村民会读取 Minecraft 已为你记录的声誉。完成一项委托会增加关于你的原版“轻微正面”八卦(治愈僵尸村民也会获得此类评价),这会计入影响交易价格的声誉系统,村民之间也会互相传播八卦。48 格范围内的邻居会听说这项任务(“我听说你给农民 Kael 送了 16 个麦子”),并在与你交谈时提起。
每个村民都视你为陌生人、朋友(在帮了忙或进行良好交易后)或(在完成十次帮忙后)村庄的英雄。如果你伤害了一名村民,他会变得警惕或敌对:在坏八卦消散之前,他不会给你提供工作。


回复会漂浮在说出该话语的村民头顶,并以其名字开头。当 AI 正在思考时,你会看到 “...”,随后根据回复长度显示几秒的回答。气泡是骑乘在村民身上的原版文本显示,因此附近站立的每个人都能看到这场对话。可通过 display.speechBubbles = false 关闭它们。


在 config/smartvillagers/config.toml 中选择预设:DeepSeek、OpenAI、OpenRouter、NanoGPT(按用量付费或订阅)、Ollama 或 LM Studio(用于本地机器上的模型),或任何 OpenAI 兼容端点。如果没有选择提供商,委托、声誉、八卦和气泡功能仍可使用内置对话正常工作。
- 村民的提示词包含其人格与职业、你最近的对话内容、所在生物群系、时间与天气状况、掠夺事件及附近的怪物、玩家手持物品、站立姿态、听到的消息以及任何待处理请求
- AI 仅负责生成回复文本。交易提议、进度状态和报酬均由模组逻辑决定,因此无法通过对话说服村民免费赠送绿宝石
- 玩家在首次使用聊天功能前需同意 AI 服务条款;密钥和提示词均不会写入日志
- 设置了每位玩家每分钟的限制次数、并发上限以及回复长度限制,以控制成本可预测性
- 可选功能:通过 Simple Voice Chat 模组让村民大声朗读回复


| 命令 |
适用对象 |
功能说明 |
/villagerai consent accept 或 decline |
所有人 |
允许或拒绝 AI 回复 |
/villagerai requests |
所有人 |
查看你未处理的请求及进度 |
/villagerai request accept 或 decline |
所有人 |
回复上一次提供的选项(聊天按钮) |
/villagerai request assign <村民> [fetch or slay] |
管理员(op) |
让一个村民向你提出请求 |
/villagerai persona get / set / clear |
管理员(op)(或在允许的情况下对所有人开放) |
查看/设置/清除村民的名字、性格特征、风格、背景故事以及你与该村民的关系状态 |
| /villagerai memory clear [村民] | op | 清除对话、请求和新闻 |
| /villagerai status, reload, test, debug | op | 诊断信息 |

[display]
speechBubbles = true
[proximity]
ignorePlayerToPlayerChat = true
[requests]
enabled = true
maxActive = 3 # 每个玩家同时开放的任务数量
cooldownMinutes = 10 # 村民再次为你提供任务前的冷却时间(20 分钟 = 一个 Minecraft 白天)
reputationReward = 10 # 完成请求后获得的原版正面声望值(范围:0 到 25)
[ai]
provider = "DEEPSEEK" # DEEPSEEK、NANOGPT、NANOGPT_SUBSCRIPTION、OPENAI、OPENROUTER、OLLAMA、LMSTUDIO、CUSTOM
model = "deepseek-flash"
apiKey = ""
现有的 1.x 配置文件在首次启动时会自动添加新键;不会重命名任何内容。完整列表请参见
[README](https://github.com/MeherBenSalem/CivilizationAI#configuration) 和
[提供商指南](https://github.com/MeherBenSalem/CivilizationAI/blob/main/docs/ai-providers.md)。


| Minecraft | Java | 加载器 |
|-----------|------|---------|
| 1.20.1 | 17+ | Fabric (需安装 Fabric API)、Forge 47 |
| 1.21.1 | 21+ | Fabric (需安装 Fabric API)、Forge 52、NeoForge |
| 26.1.2 | 25+ | Fabric (需安装 Fabric API)、NeoForge |
| 26.2 | 25+ | Fabric (需安装 Fabric API)、NeoForge 26.2.0.93 或更高版本 |
| 26.3 | 25+ | Fabric (需安装 Fabric API)、NeoForge 26.3.0.97 或更高版本 |
文件名为 `smartvillagers-<loader>-<minecraft>-2.0.0.jar`。将模组安装在服务器上,或在单人游戏中安装即可使用。Simple Voice Chat 是可选的(服务器和客户端均需安装),用于提供语音回复。

**我需要 AI 密钥吗?** 不需要。如果没有密钥,村民将使用内置对话,请求、声望、八卦和气泡对话等功能均正常工作。拥有密钥(或本地模型)后,其回复将由 AI 生成。
**需要花钱吗?** 仅当你的 AI 提供商收费时才需要。Ollama 和 LM Studio 可在你自己的计算机上运行模型。
**AI 能给我物品或改变价格吗?** 不能。AI 仅负责生成村民所说的话语。请求和奖励由模组本身处理,模组会将发生的情况告知 AI,以确保生成的对话与实际情况相符。
**我需要创建新世界吗?** 不需要。1.x 版本的村民会保留其名称、人格和记忆,且 1.x 的配置会在原地自动更新。
**当我与朋友交谈时,村民会回答吗?** 如果你的消息中提到了另一位在线玩家(此行为可配置),村民不会回答。你也可以要求输入特定前缀,或者让村民仅回应你注视的对象。
**我的聊天记录会被发送到哪里吗?** 仅发送到你配置的 AI 提供商,且仅在每位玩家通过 `/villagerai consent accept` 命令同意之后才会发送。






[Discord](https://discord.gg/SAmd9fhNhr) · [源代码与问题反馈](https://github.com/MeherBenSalem/CivilizationAI) · [支持我们](https://nightbeam.dev/support) · 由 NightBeam Studio 制作

Villagers who talk back, remember you and ask for your help. Walk up to a villager and chat normally. It answers
in character, in a speech bubble above its head, with the AI of your choice or with built-in dialogue when you have
none. Ask it for work and you get a real job: bring the harvest in, fetch iron for the forge, clear the zombies off
the fields. Finish it and you are paid in emeralds, the villager thinks better of you, and the whole street hears about it.
Fabric, Forge and NeoForge · Minecraft 1.20.1, 1.21.1, 26.1.2, 26.2 and 26.3 · works with any OpenAI-compatible AI
provider, a local model, or no AI at all

Version 2.0, The Village Square Update, makes talking to villagers part of the game instead of a novelty:
- Village requests: ask a villager for work in your own words, accept, finish it, get paid in emeralds and XP
- Reputation and gossip: finished requests improve your vanilla reputation (which can lower prices); neighbours hear about
what you did and bring it up; villagers you have hurt won't give you work
- Speech bubbles above the villager who is talking, and a "..." bubble while the AI thinks
- Three advancements, from your first chat to Hero of the Village Square
- Smarter context: biome, raids, nearby monsters, what you're holding, your standing and any open request
- Better without AI: the built-in dialogue now talks shop, notices night and rain, and passes on village news
- Better manners: villagers no longer answer messages meant for another player
- Minecraft 26.1.2, and your 1.x worlds and configs carry over


Say "any work for me?" (or "need help?", "got any errands?", "¿tienes trabajo?", "as-tu une quête ?") to a
villager with a trade. It offers a request that fits its profession, or asks you to deal with the monsters around the
village. A card in chat shows the terms with [Accept] and [Decline]; you can also just say "yes".
| Profession |
Asks for |
| Farmer |
wheat, carrots, potatoes, beetroot, pumpkins, bone meal |
| Librarian |
paper, books, feathers, ink sacs |
| Cartographer |
paper, glass panes, compasses |
| Cleric |
rotten flesh, gold ingots, redstone, glass bottles |
| Armorer, Weaponsmith, Toolsmith |
iron ingots, coal, plus a lava bucket, flint or sticks |
| Butcher |
porkchops, beef, chicken, mutton, sweet berries |
| Fisherman |
cod, salmon, string, coal |
| Fletcher |
sticks, flint, string, feathers |
| Leatherworker |
leather, rabbit hide, flint |
| Shepherd |
white wool, string, shears |
| Mason |
clay, stone, quartz, andesite |
| Any of them |
defeat zombies, skeletons, spiders, creepers or pillagers |
- Experienced villagers ask for more and pay more (a master asks for up to twice as much)
- Progress is counted from your inventory, or from your kills since you accepted: ask "how many?" any time
- Hand it in by talking to the villager again: the items are taken, emeralds and XP are paid
/villagerai requests lists what you have open
- Up to 3 open requests, a short wait before the same villager asks again, nothing from nitwits or the unemployed


Villagers read the reputation Minecraft already keeps for you. A finished request adds vanilla "minor positive"
gossip about you (the kind curing a zombie villager also earns), which counts towards the reputation that sets trade
prices, and villagers pass gossip to each other. Neighbours within 48 blocks hear about the
job ("I heard you brought 16 wheat for Kael the farmer") and bring it up when you talk to them.
Every villager treats you as a stranger, a friend (after a favour or good trading) or, after ten favours, a
hero of the village. Hurt a villager and it turns wary or hostile: it will not give you work until the bad
gossip fades.


Replies float above the head of the villager who said them, headed by its name. While the AI is thinking you see "...",
then the answer, for a few seconds depending on its length. Bubbles are vanilla text displays riding the villager, so
everyone standing nearby sees the conversation. Turn them off with display.speechBubbles = false.


Pick a preset in config/smartvillagers/config.toml: DeepSeek, OpenAI, OpenRouter, NanoGPT (pay-as-you-go or
subscription), Ollama or LM Studio for a model on your own machine, or any OpenAI-compatible endpoint. With
no provider, requests, reputation, gossip and bubbles all still work with the built-in dialogue.
- The villager's prompt includes its persona and profession, your last conversations, the biome, time and weather,
raids and nearby monsters, what you're holding, your standing, news it heard and any open request
- The AI only words the reply. Offers, progress and payments are decided by the mod, so nobody can talk a villager
into handing out free emeralds
- Players accept AI consent once before their chat is sent to a provider; keys and prompts are never written to logs
- Rate limits per player and per minute, a concurrency cap and a reply length limit keep costs predictable
- Optional: villagers speak their replies out loud through Simple Voice Chat


| Command |
Who |
What |
/villagerai consent accept or decline |
everyone |
Allow or refuse AI replies |
/villagerai requests |
everyone |
Your open requests and progress |
/villagerai request accept or decline |
everyone |
Answer the last offer (the chat buttons) |
/villagerai request assign <villager> [fetch or slay] |
op |
Have a villager offer you a request |
/villagerai persona get / set / clear |
op (or everyone, if allowed) |
A villager's name, trait, style, backstory and your standing |
/villagerai memory clear [villager] |
op |
Forget conversations, requests and news |
/villagerai status, reload, test, debug |
op |
Diagnostics |

[display]
speechBubbles = true
[proximity]
ignorePlayerToPlayerChat = true
[requests]
enabled = true
maxActive = 3 # open requests per player
cooldownMinutes = 10 # before the same villager offers you another (20 = one Minecraft day)
reputationReward = 10 # vanilla positive gossip per finished request (0 to 25)
[ai]
provider = "DEEPSEEK" # DEEPSEEK, NANOGPT, NANOGPT_SUBSCRIPTION, OPENAI, OPENROUTER, OLLAMA, LMSTUDIO, CUSTOM
model = "deepseek-flash"
apiKey = ""
Existing 1.x configs get the new keys on first start; nothing is renamed. The full list is in the
README and the
provider guide.


| Minecraft |
Java |
Loaders |
| 1.20.1 |
17+ |
Fabric (with Fabric API), Forge 47 |
| 1.21.1 |
21+ |
Fabric (with Fabric API), Forge 52, NeoForge |
| 26.1.2 |
25+ |
Fabric (with Fabric API), NeoForge |
| 26.2 |
25+ |
Fabric (with Fabric API), NeoForge 26.2.0.93 or newer |
| 26.3 |
25+ |
Fabric (with Fabric API), NeoForge 26.3.0.97 or newer |
Files are named smartvillagers-<loader>-<minecraft>-2.0.0.jar. Install the mod on the server, or in your game for
single player. Simple Voice Chat is optional (server and clients) for spoken replies.

Do I need an AI key? No. Without one, villagers use the built-in dialogue, and requests, reputation, gossip and
speech bubbles work exactly the same. With a key (or a local model) their replies are written by the AI.
Does it cost money? Only if your AI provider charges. Ollama and LM Studio run models on your own computer.
Can the AI give me items or change prices? No. The AI only writes what the villager says. Requests and rewards
come from the mod, which tells the AI what happened so the words match.
Do I need a new world? No. 1.x villagers keep their names, personas and memories, and 1.x configs are updated in
place.
Will villagers answer when I talk to my friends? Not when your message names another player who is online
(configurable). You can also require a prefix, or only answer villagers you look at.
Is my chat sent anywhere? Only to the AI provider you configure, and only after each player accepts with
/villagerai consent accept.






Discord · Source and issues · Support us · Made by NightBeam Studio
评论 0
登录后参与评分
还没有评论,来抢沙发吧