价格锁定
防止村民交易价格不断上涨。你找到的交易条件就是最终的交易条件——在长期运行的世界中,不再出现需要 60 颗绿宝石购买的修补书。
在长期运行的世界中,随着基于需求的加价累积,村民的价格会通货膨胀。能够修复此问题的 Paper 插件无法在原版 NeoForge/Fabric 服务器上运行;Price Lock 以模组的形式实现了相同的功能。
它在每次交易后清除需求加价,并在你打开村民界面时再次清除,使得 GUI 打开的瞬间价格保持平稳。通过一个服务器配置开关 freezePrices(默认开启),可在 Mod Config GUI 中进行编辑。无需命令。
它适用于原版村民、流浪商人以及使用原版交易系统的模组村民(More Villagers、交易数据包、任何扩展自 AbstractVillager 的实体)。拥有独立定价机制的完全自定义商人实体不在支持范围内——因为它们本身就不存在原版的通胀问题。无需 Mixin。
v0.1 版本在交易和打开 GUI 时清除加价(这是一种零 Mixin 且确保能正常工作的方法);直接冻结内部需求计数器则需要 Mixin,目前暂不在支持范围内。
服务端 — 仅安装在服务器上。

接受视频、直播和服务器的付费委托。发送你的想法至:kuronami.mods@gmail.com

Bug 反馈与提问:请在 CurseForge 页面评论,或在 X 上私信 @kuronami333。
可自由用于任何整合包。源码:
Price Lock
Stops villager trade prices from creeping up. The deal you found stays the deal you get — no more 60-emerald mending books on a long-lived world.
On a long-running world, villager prices inflate as demand-based markup accumulates. The Paper plugins that fix this don't run on vanilla NeoForge/Fabric servers; Price Lock does the same thing as a mod.
It clears the demand markup after every trade and again whenever you open a villager, so prices are flat the moment the GUI opens. One server-config toggle, freezePrices (default on), editable in the Mod Config GUI. No commands.
It works on vanilla villagers, wandering traders, and modded villagers that use the vanilla trade system (More Villagers, trade datapacks, anything extending AbstractVillager). Fully-custom merchant entities with their own pricing are out of scope — they don't have vanilla's demand inflation to begin with. No mixin.
v0.1 clears the markup on trade and on GUI-open (the zero-mixin approach that's certain to work); freezing the internal demand counter outright would need a mixin and is intentionally out of scope for now.
Server-side — install on the server only.

Paid commissions for videos, streams and servers. Send me your idea: kuronami.mods@gmail.com

Bugs and questions: comment on the CurseForge page, or DM @kuronami333 on X.
Free to use in any modpack. Source:
下载 Price Lock
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Price Lock
下载 Price Lock
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Price Lock
下载 Price Lock
0.1.0 — fabric 1.20.1 构建版本。服务端使用,无依赖项,MIT 许可证。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧