Anabiosis
希腊语:休眠后恢复生命。
一个服务端 Fabric 模组,让未加载的区块在重新加载时补上错过的时间——作物生长、熔炉完成工作、标记的农场真实运行——无需区块加载器,也无需在你离开时保持任何事物持续 ticking。
仅适用于服务端:原版客户端可以连接。需要 Fabric API。
1. 生长补偿
当区块重新加载时,每个可生长的方块都会获得其统计上错过的随机刻(random ticks),这些随机刻来自原版会产生的相同分布,并通过每个方块自身的 randomTick 应用——因此光照、水分和间距规则得到尊重,不会被重新实现。
涵盖作物、藤蔓、树苗、甘蔗、仙人掌、竹子、海带、洞穴藤蔓、下界疣、甜浆果、可可和正在生长的紫水晶。铜氧化支持已添加但默认关闭。工作被排队并限速,以确保重新加载永远不会导致服务器卡顿。
2. 机器补偿
熔炉、高炉、烟熏炉和酿造台根据经过的时间进行算术推进——燃料消耗、烹饪进度和酿造循环按事件计算,而非按刻计算。熔炼经验值按照原版方式存储;收集产出物支付相同的经验值。
3. 模拟区域
怪物农场无法惰性计算——生成、寻路和流水需要真实的模拟。因此 Anabiosis 会重放它们。
站在农场的 AFK 位置并运行 /anabiosis sim add —— 就这么多。没有东西保持加载,也没有东西在你离开时持续 ticking。当该区域重新加载时,错过的时间会被重放为真实模拟:使用原版自己的生成器代码和怪物上限进行真正的生成尝试,真实的实体 AI 和物理效果,真实的漏斗和怪物生成器——在每个刻的计算预算内加速,使服务器保持 20 TPS,而你的农场在一两分钟内 visibly 模糊地度过数小时的补偿过程。
标记充当幽灵 AFK 玩家:原版的 24-128 方块生成环、生成器激活范围和消失规则都针对你放置它的位置进行评估。战利品从不外推或估算——每个掉落物都来自在重放期间真正生成、游荡、跌落并死亡的怪物。
故意排除在重放之外的是:计划刻和红石。时钟、活塞和侦测器绝不会比实时更快运行——重放仅用于农场机制。
配置
首次运行时生成 config/anabiosis.properties:包含各类别的生长开关、补偿上限、重放预算、重放上限(默认 6 小时——超出此时间的缺席会被截断,不会按比例缩放)以及区域限制。
注意:如果你的服务器设置了 pause-when-empty-seconds(现代默认值),则当服务器为空时游戏时间会冻结,任何人都不会积累任何东西。如果你希望所有人离线时时间继续流逝,请将其设置为 -1。
源码、问题反馈及完整文档:
Anabiosis
Greek: return to life after suspended animation.
A server-side Fabric mod that makes unloaded chunks catch up on the time they missed when they reload - crops grow, furnaces finish, and marked farms genuinely run - without chunk loaders and without keeping anything ticking while you're away.
Server-side only: vanilla clients can connect. Requires Fabric API.
1. Growth catch-up
When a chunk reloads, every growable block receives the random ticks it statistically missed, drawn from the same distribution vanilla would have produced and applied through each block's own randomTick - so light, hydration, and spacing rules are honored, never reimplemented.
Covers crops, stems, saplings, sugar cane, cactus, bamboo, kelp, cave vines, nether wart, sweet berries, cocoa, and budding amethyst. Copper oxidation is supported but off by default. Work is queued and throttled so reloads never lag the server.
2. Machine catch-up
Furnaces, blast furnaces, smokers, and brewing stands advance arithmetically over the elapsed time - fuel, cook progress, and brew cycles computed per event, not per tick. Smelting XP is banked exactly as vanilla does; collecting the output pays the same experience.
3. Sim regions
Mob farms can't be computed lazily - spawning, pathfinding, and water streams need real simulation. So Anabiosis replays them.
Stand at your farm's AFK spot and run /anabiosis sim add - that's it. Nothing stays loaded and nothing ticks while you're away. When the area reloads, the missed time is replayed as real simulation: genuine spawn attempts using vanilla's own spawner code and mob caps, real entity AI and physics, real hoppers and monster spawners - fast-forwarded within a per-tick compute budget, so the server holds 20 TPS while your farm visibly blurs through hours of catch-up in a minute or two.
The marker acts as the phantom AFK player: vanilla's 24-128 block spawn ring, spawner activation range, and despawn rules all evaluate against where you placed it. Loot is never extrapolated or estimated - every drop comes from a mob that actually spawned, wandered, fell, and died during the replay.
Deliberately excluded from replay: scheduled ticks and redstone. Clocks, pistons, and observers never run faster than realtime - replay is for farm mechanics only.
Configuration
config/anabiosis.properties is generated on first run: per-category growth toggles, catch-up caps, replay budget, replay ceiling (default 6 hours - absences beyond it are truncated, never scaled), and region limits.
Note: if your server sets pause-when-empty-seconds (the modern default), game time freezes when the server is empty and nothing accrues for anyone. Set it to -1 if you want time to pass while everyone is offline.
Source, issues, and full documentation:
评论 0
登录后参与评分
还没有评论,来抢沙发吧