Villager Contracts Extended
基于 VillagerContract 的衍生版本,包含多项改进
描述
Villager Contracts Extended 是由 Invadermonky 创建的 Villager Contracts 模组的衍生版本,对原版模组进行了多项改进,例如无需配置即可实现通用兼容性,以及当安装了大量模组时,提供一个便于选择村民职业的界面。
功能
GUI(图形用户界面)
- 不再使用铁砧:当安装了大量模组时,原有的提示框和铁砧系统略显繁琐,有时甚至会超出屏幕显示范围
- 菜单:手持契约时右键点击可打开一个简单的界面,方便你轻松选择游戏中可用的任何职业或生涯
通用兼容性
- 全局模组兼容:只要村民是通过 Minecraft Forge 正确注册的,该模组即可从一开始就自动与任何此类模组兼容,无论这些村民来自哪个模组。你也可以通过黑名单或模组设置来禁用此功能
整洁且现代化的系统
- 优化提示框:在开发此衍生版本期间,旧版提示框系统和铁砧逻辑会导致在加载包含大量村民职业的大型整合包时,提示框变得过于庞大和笨重。现已彻底移除这些问题
- 重置职业:更改村民的职业并重置其交易内容
模组集成
得益于新的检测系统,本模组立即兼容 1.12.2 版本的任何村民模组,包括(并已在以下模组中测试):
- Vanilla Minecraft
- Quark
- Ice and Fire: ROTH Edition
- Thaumcraft
- Immersive Engineering
- GameStage
- 以及任何其他通过 Forge 注册村民的模组
配置
配置文件允许你根据整合包的需求调整模组的行为:
dumpVillagerInfo:启用后,会记录注册表中列出的所有职业和生涯(对整合包制作者很有用)entityBlacklist:实体标识符的黑名单,用于禁用与其进行的契约交互。如果你希望防止雇佣特定模组的村民,可以使用此功能;它与此前提及的配置配合使用validContracts:用于过滤允许的名称、职业和生涯的白名单autoDetectVillagersComment:自动检测其他模组注册的所有村民职业和生涯。当你不想手动配置大量村民时非常有用consumeContractOnUseComment:决定将契约应用于村民后是否消耗该契约contractCostTypeComment:决定分配契约给村民所需的成本类型contractCostAmountComment:创建契约所需的经验值或绿宝石等级的数量。未来它将变为全局设置,意味着你可以为其指定任意物品
许可与致谢
许可证
本项目完全依据 MIT 许可证 分发,并基于 Invadermonky 创作的 Villager Contracts 基础版本的代码
由于原始项目已合法发布为 MIT 许可证,因此此衍生版本保持完全开源并获得许可。任何后续对此项目的衍生或修改都必须继续保留原始版权声明,并遵守随附于该 仓库 的 MIT 许可证条款
作者与贡献者
- Invadermonky:原始 Villager Contracts 模组的创作者
- 0xNull:本衍生版本的开发者,负责性能优化、GUI 制作和维护工作
- MrKoteo:俄语 (ru_ru) 翻译
Villager Contracts Extended
A fork of VillagerContract with some improvements
Description
Villager Contracts Extended is a fork of Villager Contracts created by Invadermonky that adds several improvements to the original mod, such as general compatibility without having to configure the mod and an interface that makes it easy to select a villager's profession when there are a lot of mods installed
Features
GUI
- No More Anvil: The tooltip and anvil system was a bit tedious when there were a lot of mods, causing it to sometimes disappear off the screen
- Menu: Right-clicking while holding a contract opens a simple interface where you can easily select any profession or career available in the game
Universal Compatibility
- Global mod compatibility: Works automatically right from the start with any villager properly registered through Minecraft Forge, regardless of which mod added them. This can be disabled via the blacklist or the mod's settings
Clean and Modernized System
- Cleanup of tooltips: The old tooltip system and the anvil logic which caused tooltips to become too large and cumbersome when loading large mod packs with many villager professions during the development of this fork have been completely removed
- Reset Profession: Changes the villager's profession and resets their trades
Mod Integrations
Thanks to the new detection system, this mod is immediately compatible with any villager mod for version 1.12.2, including (and tested with):
- Vanilla Minecraft
- Quark
- Ice and Fire: ROTH Edition
- Thaumcraft
- Immersive Engineering
- GameStage
- And any other mod that registers villagers through Forge
Configuration
The configuration file allows you to adjust the mod's behavior to suit the needs of your modpack:
dumpVillagerInfo: When enabled, it logs all professions and careers listed in the registry (useful for modpack creators)entityBlacklist: A blacklist of entity identifiers for which contractual interactions have been disabled. This is useful if you want to prevent a villager from a specific mod from being hired, this is accompanied by the previously mentioned configurationvalidContracts: A whitelist for filtering allowed names, professions, and careersautoDetectVillagersComment: Automatically detects all villager professions and careers registered by other mods. This is useful when you don't want to configure a lot of villagersconsumeContractOnUseComment: Determines whether the villager contract is consumed when applied to a villagercontractCostTypeComment: Determines the cost required to assign a contract to a villagercontractCostAmountComment: This is the number of XP or emerald levels required to create a contract. Soon it will be global, meaning you'll be able to assign any item to it
License & Credits
License
This project is distributed entirely under the MIT License and is based on the code from the base version of Villager Contracts by Invadermonky
Since the original project was legitimately published under the MIT License, this fork remains fully open source and is permitted. Any subsequent forks or modifications of this project must continue to retain the original copyright notices and comply with the terms of the MIT License attached to this repository
Authors & Contributors
- Invadermonky: Creator of the original Villager Contracts mod
- 0xNull: Developer of this fork, responsible for performance optimizations, the GUI, and maintenance
- MrKoteo: Russian (ru_ru) translation
下载 VillagerContracts Extended
下载 VillagerContracts Extended
下载 VillagerContracts Extended
下载 VillagerContracts Extended
下载 VillagerContracts Extended
下载 VillagerContracts Extended
下载 VillagerContracts Extended
下载 VillagerContracts Extended
下载 VillagerContracts Extended
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
更新日志
Bug修复
- 物品无法使用(因为我不小心删除了一个重要类)
- 修复了抬头看天空时使用物品时发生的崩溃
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧