TradeHall
村民卡顿,消失——且不破坏交易功能。适用于 Paper 1.21+ 和 26.x。
一个村民每秒进行二十次完整的“大脑”运算:寻路、兴趣点、闲聊、补货计划。在一个拥有上百名村民的交易大厅中,这是普通生存服务器上最大的刻率延迟来源。TradeHall 关闭了那个“大脑”,并接管了村民仍欠你的那项工作——补货。
- 自动:一旦多名村民站在一起(默认为 8 格内 4 名),它们会自动进入休眠状态。无需任何标记。
- 也可手动:在下方放置一个标记方块,或使用命名牌——两者均可配置,且均为可选。
- 交易仍可正常工作。右键点击仍会打开交易窗口。
- 手动补货,因为休眠的村民不会自行补货:可配置间隔时间,同时遵循原版每天两次的限制。
- 伤害保护:休眠的村民无法躲避僵尸,因此在受到伤害时会短暂唤醒几秒。
/tradehall restore-all 唤醒所有村民——卸载前一种干净的退出方式。
- 婴儿村民和无职业的村民不受影响;它们需要自己的 AI。
命令:/tradehall [status|restore-all|reload](别名 /th)· 权限:tradehall.admin(命令,OP),tradehall.use(潜行右键点击村民,所有人)
测试环境
Paper 1.21.11, 26.2 和 26.3 —— 运行时测试,而不仅仅是“能加载”。对随附的 dev.tradehall.Optimizer 运行了 33 个断言,通过插件自身的类加载器加载,以确保测试不会因副本而偏离,并在真实服务器上使用实际生成的村民进行测试:AI 关闭、持久休眠标记、邻居计数以及完整的补货往返流程。两项测试均 33/33 全部通过。
小众领域
该职位上现有的插件(约 23,900 次下载)于 2024 年 7 月发布了最后一个版本,其 GitHub 仓库已被归档——作者已正式终止该项目。更重要的是:该 jar 包在 Paper 26.2 启动时崩溃,因为它无法解析 Minecraft 的新版本方案。在当前 Minecraft 版本中,目前没有针对此问题的可用插件。最活跃的替代方案约有 1,000 次下载。详情与证据:LISTING.md。
安装
将 jar 文件放入 plugins/ 目录,启动,完成。默认设置较为保守:8 格内 4 名村民自动休眠,每 10 分钟补货一次,每天两次,受伤后唤醒 8 秒。
AI 披露
人类主导开发:Arvid Grün 指导这项工作,设定需求,测试并批准每次发布。代码和文档由 AI 辅助编写(Claude)。未使用 AI 生成的图像;图标是在代码中以几何方式绘制的。
许可证
MIT — 见 LICENSE。
人类主导开发:人类维护者指导、测试并对每次发布负责;AI 仅作为开发工具使用(根据 Modrinth 政策披露)。图标为手工制作的几何艺术品,非 AI 生成。
TradeHall
Villager lag, gone — without breaking trading. For Paper 1.21+ and 26.x.
A villager runs a full brain twenty times a second: pathfinding, points of interest, gossip,
restock schedules. In a trading hall with a hundred of them, that is the single largest source
of tick lag on an ordinary survival server. TradeHall switches that brain off and takes over the
one job the villager still owes you — restocking.
- Automatic: once several villagers stand close together (default 4 within 8 blocks) they are
put to sleep by themselves. Nobody has to mark anything.
- Manual too: a marker block underneath, or a name tag — both configurable, both optional.
- Trading keeps working. Right-click still opens the trade window.
- Manual restocking, because a sleeping villager will not do it: configurable interval with
vanilla's two-per-day limit.
- Damage protection: a sleeping villager cannot run from a zombie, so it is woken for a few
seconds when hurt.
/tradehall restore-all wakes everyone — a clean way out before uninstalling.
- Babies and villagers without a profession are left alone; they need their AI.
Commands: /tradehall [status|restore-all|reload] (alias /th) · Permissions: tradehall.admin
(command, op), tradehall.use (sneak-right-click a villager, everyone)
Tested on
Paper 1.21.11, 26.2 and 26.3 — runtime-tested, not just "it loads". 33 assertions run against the
shipped dev.tradehall.Optimizer, loaded through the plugin's own classloader so the test
cannot drift from a copy, plus real spawned villagers on the live server: AI shutdown, the
persistent sleep marker, neighbour counting, and the full restock round-trip. 33/33 green on both.
Niche
The established plugin for this job (~23,900 downloads) shipped its last version in July 2024 and
its GitHub repository is archived — the author formally ended it. More to the point: that jar
crashes on startup on Paper 26.2, because it cannot parse Minecraft's new version scheme. On
the current Minecraft version there is currently no working plugin for this problem. The strongest
active alternative has about 1,000 downloads. Details and evidence: LISTING.md.
Install
Drop the jar in plugins/, start, done. Defaults are conservative: automatic sleep at 4 villagers
within 8 blocks, restock every 10 minutes, twice per day, 8 seconds of wake-up on damage.
AI disclosure
Human-led development: Arvid Grün directs the work, sets the requirements, tests and approves
every release. Code and documentation are written with AI assistance (Claude). No AI-generated
images are used; the icon is drawn geometrically in code.
License
MIT — see LICENSE.
Human-led development: a human maintainer directs, tests and takes responsibility for every release; AI is used as a development tool (disclosed per Modrinth policy). The icon is hand-made geometric artwork, not AI-generated.
评论 0
登录后参与评分
还没有评论,来抢沙发吧