
你是否曾在自己的基地里烹饪,然后去打开箱子……打开箱子……再打开箱子……“为什么它一直关闭?!哦,史蒂文又去纳尼亚旅行去了。”
认识一下 Chunky Friends!这是一款自动化的区块预生成调度工具。通过在你离线时自动生成区块,节省时间、存储空间和性能。
亮点
- 支持单人游戏与多人游戏
- 客户端可选安装
- 轮询玩家选择机制
- 迭代式同心圆环生成
- 基于最后登录时间的“合格玩家”驱逐机制
- 在你离线时自动运行(支持“暂停”与“恢复”)
- 支持通过 JSON 文件、命令行界面 (CLI) 或图形用户界面 (GUI,仅在客户端安装时可用) 进行配置

工作原理
该模组会在玩家下线时缓存其最后已知的位置。当服务器上最后一名玩家下线后,它会开始调度一系列 Chunky 预生成任务。一旦有玩家加入服务器,Chunky 的任务就会暂停;而当所有人再次下线时,任务则恢复运行。如果某玩家在 X 小时内未登录,他们将被从预生成池中移除,待其重新登录后会被重新添加。你也可以配置模组在玩家连接至服务器时继续运行(如果需要)。
为了保持公平性,该模组采用轮询机制运行;每个 Chunky 任务都从小范围开始,并随时间推移逐渐扩大。你可以选择最大生成的区域半径,以及将其分解为多少个较小的同心圆环切片。
示例场景
假设你有史蒂文 (Steve)、艾莉克斯 (Alex) 和 Herobrine。第一层圆环为 33 个区块半径,第二层为 66 个区块半径,第三层为 100 个区块半径。你应该这样配置 Chunky Friends:
/chunkyfriends config maxradius 100
/chunkyfriends config ringcount 3
/chunkyfriends config curve linear
或者使用更简单的配置方式(也可通过 Mod Menu 访问 GUI):
/chunkyfriends gui
当他们全部下线后,他们将按以下顺序接收更新:
- 为史蒂文的位置预生成 33 区块半径的区域
- 为艾莉克斯的位置预生成 33 区块半径的区域
- 为 Herobrine 的位置预生成 33 区块半径的区域
- 为史蒂文的位置预生成 66 区块半径的区域
- 为艾莉克斯的位置预生成 66 区块半径的区域
- 为 Herobrine 的位置预生成 66 区块半径的区域
- 为史蒂文的位置预生成 100 区块半径的区域
- 为艾莉克斯的位置预生成 100 区块半径的区域
- 为 Herobrine 的位置预生成 100 区块半径的区域
可以将每位玩家想象成落入池塘的一滴水珠,而同心圆环就像向外扩散的涟漪,最终与其他涟漪相遇并抵消。水珠离其他水珠越远,其涟漪在平复融入池塘之前传播得就越远。
由于 Chunky 已经处理了去重逻辑(“此区块已生成;跳过”),因此预生成的隐式优先级会给予那些移动距离最多的玩家,从而在史蒂文决定跳上船并按住 'W' 键行驶 3 小时时,让所有在线玩家的体验更加平滑。

Have you ever been cooking back at your base, and then you go to open your chest and... open your chest... open your... "why does it keep closing?! Oh, Steve is traveling to Narnia again."
Meet, Chunky Friends! An automated chunk pregeneration scheduling tool. Save time, storage, and performance by having chunks generated automatically when you're offline.
Highlights
- Suports Singleplayer & Multiplayer
- Client Optional
- Round Robin Player Selection
- Iterative Concentric Rings
- "Qualified Player" Eviction based on Last Login
- Runs automatically when you're offline ("Pause" & "Resume")
- Configuration via JSON, CLI, or GUI (when installed client-side)

How it works
The mod caches each player's last known location when they log off, and when the last player has logged off of the server, it begins scheduling a variety of Chunky pregeneration tasks. The moment a player joins the server, Chunky tasks get paused, and the moment everybody logs off again, it resumes. When a player hasn't logged on in X hours, they're removed from the pregeneration pool, and once they login again, they're re-added. You can also configure the mod to run even when players are connected to the server (if desired).
To keep things fair, it operates in round robin; each Chunky task starts small, and gets bigger over time. You choose the maximum generated zone, and how many slices of smaller concentric rings that gets broken down into.
Example Scenario
You have Steve, Alex, and Herobrine. The Tier 1 ring is 33 chunks, Tier 2 is 66 chunks, and Tier 3 is 100 chunks. You'd configure Chunky Friends as follows...
/chunkyfriends config maxradius 100
/chunkyfriends config ringcount 3
/chunkyfriends config curve linear
or for easier configuration (GUI is also available via Mod Menu)
/chunkyfriends gui
And once they all log off, they would receive their updates in this order.
- Pregen for Steve's location, 33 chunks radius
- Pregen for Alex's location, 33 chunks radius
- Pregen for Herobrine's location, 33 chunks radius
- Pregen for Steve's location, 66 chunks radius
- Pregen for Alex's location, 66 chunks radius
- Pregen for Herobrine's location, 66 chunks radius
- Pregen for Steve's location, 100 chunks radius
- Pregen for Alex's location, 100 chunks radius
- Pregen for Herobrine's location, 100 chunks radius
Think of each player like a raindrop into a pond, and the concentric rings like the ripples that go outwards, eventually meeting other ripples, and cancelling out. The further away a raindrop is from the other raindrops, the more it's ripple will travel before flattening out into the pond.
Since Chunky already handles deduplication ("this chunk was already generated; skipping"), implicit priority for pregeneration gets given to the people that have traveled the most, smoothing out the gameplay for everyone online when Steve decides to hop in a boat and hold 'W' for 3 hours.
评论 0
登录后参与评分
还没有评论,来抢沙发吧