Configurable Villagers
按你的意愿定制村民。Configurable Villagers 将原版硬编码的村民行为部分——例如交易库存量、补货频率、繁殖速度以及治愈僵尸村民所需的时间——暴露出来,并放入一个可在服务器运行时编辑的配置文件中。
它完全在服务器端运行。 玩家使用原版客户端加入即可。无需安装模组,不存在版本不匹配问题,也不需要在 Discord 中向他人解释。
你可以修改的内容
交易
| 选项 |
默认值 |
效果 |
trading.maxUsesMultiplier |
1.0 |
乘以交易在锁定前可使用的次数。将其设置为 4.0,原本在使用 12 次后耗尽的交易现在可以持续 48 次。 |
restocking.restocksPerDay |
2 |
村民每天可以补货的次数。 |
繁殖
| 选项 |
默认值 |
效果 |
breeding.ignoreBedRequirement |
false |
即使没有可用的空闲床,也允许村民繁殖。 |
breeding.cooldownTicks |
6000 |
父母再次繁殖前需要等待的时间。0 表示移除冷却时间。 |
breeding.maxBreedsPerDay |
-1 |
限制每个村民每天的繁殖次数。-1 表示无限制。 |
breeding.babyGrowthTicks |
24000 |
新生儿保持婴儿状态的时间。 |
治愈
| 选项 |
默认值 |
效果 |
curing.conversionTimeMultiplier |
1.0 |
治愈僵尸村民所需的时间。 |
curing.discountMultiplier |
1.0 |
永久治愈折扣的大小。0.0 表示移除该折扣。 |
此外还有 enabled,这是一个总开关,启用后可在不卸载模组的情况下将所有设置恢复为原版。
所有默认值均与原版完全一致。 安装模组后,在你调整任何参数之前,游戏内容不会发生任何变化。
配置方法
配置文件位于 config/configurablevillagers.json,它会自行生成文档——头部列出了每个选项、其默认值及作用说明,因此你无需离开文件即可查阅信息。
你也可以在不触碰磁盘文件的情况下进行操作:
/configurablevillagers help 列出所有选项、默认值和描述
/configurablevillagers status 显示当前值及其对应的默认值
/configurablevillagers set breeding cooldownTicks 600
/configurablevillagers reload 重新读取文件(在手动编辑后使用)
set 命令会立即保存更改。所有命令均需权限等级 2。
要求
| Minecraft |
Fabric Loader |
Java |
| 1.21 – 1.21.1 |
0.16.0+ |
21 |
| 1.21.9 – 1.21.11 |
0.16.0+ |
21 |
| 26.2 |
0.19.3+ |
25 |
Fabric API 在所有版本中均为必需项。
支持专用服务器和单人游戏。客户端 不需要 安装此模组。
注意事项
trading.maxUsesMultiplier 在交易生成时生效,因此该值会被固化到报价中并同步给客户端——原版玩家看到的将是真实的库存数量,而不是交易过早变灰。村民会保留已经生成的交易;新的乘数仅适用于之后生成的交易。这也影响流浪商人,因为他们共享相同的报价类型。
breeding.babyGrowthTicks 仅适用于通过繁殖出生的村民。由刷怪蛋或村庄生成产生的婴儿仍使用原版的计时器。
curing.discountMultiplier 高于 1.0 的值无效——原版已经授予声望系统允许的最大折扣,因此只有低于 1.0 的值才会产生可见效果。
- 在 26.2 版本中,交易本身(即每种职业出售的物品及其价格)是一个数据包注册表。本模组故意不重复这一功能——请使用数据包来管理交易内容,而本模组用于处理围绕这些交易的机制。
Configurable Villagers
Villagers, on your terms. Configurable Villagers exposes the parts of villager behaviour that
vanilla hardcodes — how much stock a trade holds, how often villagers restock, how fast they
breed, how long curing a zombie villager takes — and puts them in a config file you can edit
while the server is running.
It runs entirely on the server. Players join with a vanilla client. No mod to install, no
version mismatch, nothing to explain in your Discord.
What you can change
Trading
| Option |
Default |
Effect |
trading.maxUsesMultiplier |
1.0 |
Multiplies how many times a trade can be used before it locks. Set it to 4.0 and a trade that ran out after 12 uses now lasts 48. |
restocking.restocksPerDay |
2 |
How many times a villager may restock per day. |
Breeding
| Option |
Default |
Effect |
breeding.ignoreBedRequirement |
false |
Let villagers breed even when no free bed is available. |
breeding.cooldownTicks |
6000 |
How long parents wait before breeding again. 0 removes the cooldown. |
breeding.maxBreedsPerDay |
-1 |
Cap breeds per villager per day. -1 = unlimited. |
breeding.babyGrowthTicks |
24000 |
How long a newborn stays a baby. |
Curing
| Option |
Default |
Effect |
curing.conversionTimeMultiplier |
1.0 |
How long curing a zombie villager takes. |
curing.discountMultiplier |
1.0 |
How large the permanent cure discount is. 0.0 removes it. |
Plus enabled, a master switch that returns everything to vanilla without uninstalling.
Every default reproduces vanilla exactly. Installing the mod changes nothing until you
turn a knob.
Configuring it
The config lives at config/configurablevillagers.json and writes its own documentation — a
header listing every option, its default and what it does, so you never have to leave the file
to look something up.
You can also do it without touching the disk:
/configurablevillagers help list every option, default and description
/configurablevillagers status current values next to their defaults
/configurablevillagers set breeding cooldownTicks 600
/configurablevillagers reload re-read the file after editing it
set saves immediately. All commands need permission level 2.
Requirements
| Minecraft |
Fabric Loader |
Java |
| 1.21 – 1.21.1 |
0.16.0+ |
21 |
| 1.21.9 – 1.21.11 |
0.16.0+ |
21 |
| 26.2 |
0.19.3+ |
25 |
Fabric API is required on every version.
Works on dedicated servers and in singleplayer. Clients do not need the mod.
Good to know
trading.maxUsesMultiplier applies when a trade is generated, so the value is baked into
the offer and synced to clients — vanilla players see the real stock count instead of the
trade greying out early. Villagers keep trades they already rolled; the new multiplier
applies to trades generated afterwards. It also affects wandering traders, since they share
the same offer type.
breeding.babyGrowthTicks applies to villagers born from breeding. Babies from spawn eggs
or village generation keep the vanilla timer.
curing.discountMultiplier above 1.0 does nothing — vanilla already grants the maximum
the reputation system allows, so only values below 1.0 have a visible effect.
- In 26.2 the trades themselves (what each profession sells, and for how much) are a datapack
registry. This mod deliberately does not duplicate that — use a datapack for trade contents
and this mod for the mechanics around them.
评论 0
登录后参与评分
还没有评论,来抢沙发吧