Multi Village Selector (MVS)
Minecraft 1.21.1 | NeoForge & Fabric | MIT License
Multi Village Selector 让你能够控制 Minecraft 中的村庄生成。与其让各个村庄模组争夺生成槽位,MVS 会拦截村庄生成过程,并根据可配置的权重从你安装的所有村庄模组中进行选择。
MVS 解决的问题
当你安装了多个村庄模组(如 Cobblemon Additions、ChoiceTheorem's Overhauled Village、Towns & Towers 等)时,它们会争夺相同的生成位置。有些模组会覆盖其他模组,有些则永远不会生成,而你无法控制这种混合效果。MVS 通过以下方式解决这一问题:
- 拦截任何模组处理之前的原版村庄生成
- 选择所有已配置的村庄结构,使用加权随机选择
- 遵循生物群系规则,例如沙漠村庄在沙漠中生成,雪地村庄在雪地中生成等
- 提供你对村庄生成以及不同类型村庄混合比例的控制权
下载
- Modrinth: Multi Village Selector
- CurseForge: Multi Village Selector
- GitHub Releases: Latest Release
要求:
- Minecraft 1.21.1
- NeoForge 21.1.80+ 或 Fabric Loader 0.16.0+ 配合 Fabric API
- Architectury API(两个平台均需要)
快速开始
- 安装 MVS 和 Architectury API 到你的
mods/文件夹中 - 启动 Minecraft 并加载一个世界
- 在游戏中运行
/mvs generate以扫描你安装的模组 - 查看 生成的配置文件
local/mvs/multivillageselector.json5 - 移动 该配置文件到
config/multivillageselector.json5 - 重启 Minecraft 以应用更改
就是这样!来自你所有模组的村庄现在将以加权方式生成——但请务必检查权重,因为生成器会做出一些猜测,并不完美。
有关详细的设置说明,请参阅 Getting Started Guide。
配置
MVS 使用包含四个主要部分的 JSON5 配置文件:
{
// MVS 控制的結構集(通常仅为 minecraft:villages)
intercept_structure_sets: ["minecraft:villages"],
// 你的村庄结构及其每个生物群系的权重
structure_pool: [
{ structure: "minecraft:village_plains", biomes: {"#minecraft:is_plains": 25} },
{ structure: "bca:village/default_mid", biomes: {"#bca:villages": 29} }, // Cobblemon Additions
// ... 更多结构
],
// 可选:降低特定生物群系中的生成频率
biome_frequency: {
"#minecraft:is_ocean": 0.3, // 仅 30% 的海洋生成尝试会进行
},
// 可选:控制村庄密度(显示原版默认值)
placement: {
"minecraft:villages": {
spacing: 34,
separation: 8,
}
}
}
有关完整文档,请参阅 Configuration Guide。
命令
/mvs generate # 扫描模组并生成配置
/mvs biome # 显示当前生物群系信息
/mvs locate <structure> # 查找最近的带有传送链接的结构
/mvs structure biomes <id> # 显示某结构的生物群系规则
/mvs structure pool # 列出 MVS 配置池中的结构
/mvs structure list # 将所有游戏结构转储到文件
/mvs structure nearby # 列出玩家附近的结构
/mvs structure predict # 预测当前位置将生成什么
/mvs help # 显示所有命令
有关完整文档,请参阅 Commands Reference。
支持的模组
MVS 适用于那些向结构集中添加新村庄的模组:
- Vanilla Minecraft - 所有 5 种村庄类型
- Cobblemon Additions (BCA) - 宝可梦主题村庄
- ChoiceTheorem's Overhauled Village (CTOV)
- Towns & Towers
- Terralith
- 以及更多...
某些模组需要禁用其自身的村庄生成。请参阅 Mod Compatibility 获取设置说明。
已测试兼容的模组
这些模组已与 MVS 一起测试且没有问题:
- C2ME - 并发区块生成与 MVS 正常工作
- Explorer's Compass - 结构定位仍然有效
- Nature's Compass - 生物群系定位仍然有效
- Chunky - 预生成与 MVS 结构正常工作
MVS 无法控制的内容
MVS 拦截的是结构选择,而不是连字符块组装。那些替换单个村庄组件(建筑、道路)而非添加整个村庄结构的模组工作方式不同:
- Better Villages - 替换原版村庄的连字符块
- Luki's Grand Capitals - 替换/扩展原版村庄组件
这些模组仍将对其所应用的任何 MVS 选择的村庄进行修改,通常是原版村庄。如果你只使用其中一种,这通常没问题——MVS 决定生成哪种类型的村庄,然后连字符替换器修改其建筑。但 MVS 不能帮助你解决这类模组之间的冲突。
文档
| 指南 | 描述 |
|---|---|
| 快速上手 | 安装与首次设置 |
| 配置说明 | 完整的配置参考 |
| 模组兼容性 | 各模组的设置说明 |
| 指令参考 | 游戏内指令参考 |
| 间距指南 | 控制村庄密度 |
| 故障排除 | 常见问题及解决方案 |
| 项目范围 | 设计理念与限制 |
已知问题
- 大型模组结构可能无法通过生物群系验证 - 带有大型起始块的结构(如 BCA、Terralith)可能会失败原版的游戏内生物群系检查。请在配置中使用
relaxed_biome_validation: true。 - Terralith 天空生物群系 - Terralith 在地表之上添加了 3D 生物群系。位于高地形上的结构可能会采样到天空生物群系而非预期的地表生物群系,从而导致生物群系验证失败。
详见 故障排除 以获取详细信息和变通方法。
常见问题
我需要安装村庄模组吗?
MVS 可与原版游戏配合使用,但您只能看到原版的村庄。安装诸如 Cobblemon Additions 或 Towns & Towers 等村庄模组以增加多样性。
为什么我的村庄没有生成?
请查看 故障排除指南。常见原因包括:模组冲突、生物群系不匹配或间距设置问题。
MVS 能控制其他结构(神殿、庄园)吗?
目前,MVS 专注于村庄。设计理由请参阅 项目范围。您可以将任何结构添加到 MVS 的池中,但它仅设计用于一个结构池。
Fabric 还是 NeoForge?
两者都支持!MVS v0.3.0+ 通过 Architectury 支持这两个平台。
我可以将其加入我的整合包吗?
当然可以!如果您有功能请求或发现错误,请提交 Issue。如果它超出了 项目范围,我可能会拒绝。
你能对所有结构都做这个吗?
那会更难一些。以这种方式管理所有结构池要复杂得多。我正在考虑这一点,但说实话,对于这种用例,全面的数据包可能更容易实现。
我如何让村庄更频繁或更少地生成?
使用 placement 配置部分来调整 spacing 和 separation。有关详细信息和建议,请参阅 间距指南。
贡献
欢迎贡献!请:
- Fork 本仓库
- 创建功能分支
- 提交 Pull Request
对于错误报告和功能请求,请使用 GitHub Issues。
作者
项目设计: RhettL
代码实现: 作为一名在其他语言中从事职业的应用开发者,我(RhettL)写 Java 代码不如我用代码思考那样流畅。本仓库中的代码几乎完全由 Anthropic 的 AI 编程助手 Claude Code(Claude Sonnet 4.5)编写。我提供了设计、指导、纠正性推理、测试、项目管理以及更多内容。
许可证
MIT License - 详情请见 LICENSE。
致谢
- 村庄模组创作者,感谢他们出色的结构设计
- Cobblemon Additions 创作者,感谢他们的鼓励并允许我在其 Discord 上宣传此模组
- Architectury,提供多加载器支持
- json5-java,用于配置解析
- NeoForge 和 Fabric 团队
- Claude Code (Sonnet 4.5),在 RhettL 的指导下完成了大部分编码工作
Multi Village Selector (MVS)
Minecraft 1.21.1 | NeoForge & Fabric | MIT License
Multi Village Selector gives you control over village spawning in Minecraft. Instead of each village mod fighting for spawn slots, MVS intercepts village generation and selects from all your installed village mods using configurable weights.
The Problem MVS Solves
When you install multiple village mods (Cobblemon Additions, ChoiceTheorem's Overhauled Village, Towns & Towers, etc.), they compete for the same spawn locations. Some mods override others, some never spawn, and you have no control over the mix. MVS fixes this by:
- Intercepting vanilla village spawns before any mod processes them
- Selecting from all configured village structures using weighted random selection
- Respecting biome rules so desert villages spawn in deserts, snowy villages in snow, etc.
- Providing you control over village spawning and the mix/ratio of different village types
Download
- Modrinth: Multi Village Selector
- CurseForge: Multi Village Selector
- GitHub Releases: Latest Release
Requirements:
- Minecraft 1.21.1
- NeoForge 21.1.80+ or Fabric Loader 0.16.0+ with Fabric API
- Architectury API (required for both platforms)
Quick Start
- Install MVS and Architectury API in your
mods/folder - Launch Minecraft and load a world
- Run
/mvs generatein-game to scan your installed mods - Review the generated config at
local/mvs/multivillageselector.json5 - Move the config to
config/multivillageselector.json5 - Restart Minecraft to apply changes
That's it! Villages from all your mods will now spawn with weighted representation -- but be sure to look over the weights, the generator makes some guesses and isn't perfect.
For detailed setup instructions, see the Getting Started Guide.
Configuration
MVS uses a JSON5 config file with four main sections:
{
// Which structure sets MVS controls (usually just minecraft:villages)
intercept_structure_sets: ["minecraft:villages"],
// Your village structures with per-biome weights
structure_pool: [
{ structure: "minecraft:village_plains", biomes: {"#minecraft:is_plains": 25} },
{ structure: "bca:village/default_mid", biomes: {"#bca:villages": 29} }, // Cobblemon Additions
// ... more structures
],
// Optional: Reduce spawn rate in specific biomes
biome_frequency: {
"#minecraft:is_ocean": 0.3, // Only 30% of ocean spawn attempts proceed
},
// Optional: Control village density (vanilla defaults shown)
placement: {
"minecraft:villages": {
spacing: 34,
separation: 8,
}
}
}
See the Configuration Guide for complete documentation.
Commands
/mvs generate # Scan mods and generate config
/mvs biome # Show current biome info
/mvs locate <structure> # Find nearest structure with teleport links
/mvs structure biomes <id> # Show biome rules for a structure
/mvs structure pool # List structures in MVS config pool
/mvs structure list # Dump all game structures to file
/mvs structure nearby # List structures near player
/mvs structure predict # Predict what would spawn at current location
/mvs help # Show all commands
See the Commands Reference for full documentation.
Supported Mods
MVS works with mods that add new villages to structure sets:
- Vanilla Minecraft - All 5 village types
- Cobblemon Additions (BCA) - Cobblemon-themed villages
- ChoiceTheorem's Overhauled Village (CTOV)
- Towns & Towers
- Terralith
- And many more...
Some mods require disabling their own village spawning. See Mod Compatibility for setup instructions.
Tested Compatible Mods
These mods have been tested alongside MVS without issues:
- C2ME - Concurrent chunk generation works fine with MVS
- Explorer's Compass - Structure location still works
- Nature's Compass - Biome location still works
- Chunky - Pre-generation works correctly with MVS structures
What MVS Cannot Control
MVS intercepts structure selection, not jigsaw piece assembly. Mods that replace individual village pieces (buildings, paths) rather than adding whole village structures work differently:
- Better Villages - Replaces vanilla village jigsaw pieces
- Luki's Grand Capitals - Replaces/extends vanilla village pieces
These mods will still apply their changes to whatever village MVS selects, usually the vanilla villages. This is usually fine if you only use one - MVS picks which village type spawns, then the jigsaw replacer modifies its buildings. But MVS doesn't help you with fighting between those types of mods.
Documentation
| Guide | Description |
|---|---|
| Getting Started | Installation and first-time setup |
| Configuration | Complete config reference |
| Mod Compatibility | Per-mod setup instructions |
| Commands | In-game command reference |
| Spacing Guide | Controlling village density |
| Troubleshooting | Common issues and solutions |
| Project Scope | Design philosophy and limitations |
Known Issues
- Large mod structures may fail biome validation - Structures with large starter pieces (BCA, Terralith) can fail vanilla's biome check. Use
relaxed_biome_validation: truein config. - Terralith sky biomes - Terralith adds 3D biomes above ground level. Structures on tall terrain may sample a sky biome instead of the expected surface biome, causing biome validation failures.
See Troubleshooting for details and workarounds.
FAQ
Do I need village mods installed?
MVS works with vanilla, but you'll only see vanilla villages. Install village mods like Cobblemon Additions or Towns & Towers for variety.
Why aren't my villages spawning?
Check the Troubleshooting Guide. Common causes: mod conflicts, biome mismatches, or spacing settings.
Can MVS control other structures (temples, mansions)?
Currently, MVS focuses on villages. See Scope for design rationale. You can add any structure to MVS's pool, but it's designed for only one structure pool.
Fabric or NeoForge?
Both! MVS v0.3.0+ supports both platforms via Architectury.
Can I add this to my modpack?
Yes! Please file an issue if you have feature requests or find bugs. If it's outside the project scope, I'll likely say no.
Can you do this for all structures?
That's harder. Managing ALL structure pools this way is much more complex. I'm considering it, but honestly comprehensive datapacks are probably easier for that use case.
How do I make villages spawn more or less often?
Use the placement config section to adjust spacing and separation. See the Spacing Guide for details and recommendations.
Contributing
Contributions are welcome! Please:
- Fork the repository
- Create a feature branch
- Submit a Pull Request
For bug reports and feature requests, use GitHub Issues.
Authors
Project Design: RhettL
Implementation: As a career application developer in other languages, I (RhettL) don't write Java as fluently as I can think in code. The code in this repo was written almost entirely with Claude Code (Claude Sonnet 4.5), an AI coding assistant by Anthropic. I provided design, direction, corrective reasoning, testing, project management, and much more.
License
MIT License - see LICENSE for details.
Acknowledgments
- Village mod creators for their amazing structures
- Cobblemon Additions creators for encouragement and allowing me to tell people about this mod on their Discord
- Architectury for multi-loader support
- json5-java for config parsing
- NeoForge and Fabric teams
- Claude Code (Sonnet 4.5) for doing most of the work coding this at RhettL's direction
下载 Multi Village Selector
下载 Multi Village Selector
下载 Multi Village Selector
下载 Multi Village Selector
下载 Multi Village Selector
下载 Multi Village Selector
下载 Multi Village Selector
下载 Multi Village Selector
下载 Multi Village Selector
下载 Multi Village Selector
更新内容
从聊天应用生成的配置
/mvs generate 现在会在末尾显示一个 [立即应用更改] 按钮,你无需再手动查找文件并复制。
/mvs generate将配置写入local/mvs/multivillageselector.json5并显示该按钮。- 点击它后执行
/mvs generate do-confirm,会提醒你先审查列表(这是基于最佳猜测的结果,可能存在错误),并提供 [确认,立即移动] 选项。 - 随后执行
/mvs generate apply,将文件移至config/目录下。如果生成的文件不存在,则会提示你。
如果你的现有配置仍是 MVS 创建的未修改默认值,它将被直接替换。如果其中包含你自己的修改,则首先将其保存为 multivillageselector.json5.bak(仅保留最新的备份)。之后重启 Minecraft。手动复制文件的方式仍然有效。
底层改进
- 映射表现升级为 Mojang + Parchment。
- Gradle 构建迁移至 Kotlin DSL;NeoForge 入口点移至独立包中。
- 通用模块增加了 JaCoCo 覆盖率报告,并在
check阶段强制执行回归基线。 - CI:Gradle 包装器验证、通过
setup-gradle进行 Gradle 缓存、并发控制、覆盖率报告制品。 - 文档已针对新流程进行更新。
配置格式无变更。可从 0.4.2 版本直接升级。
完整更新日志:
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
原版世界生成优化模组
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧