稳定版 Paper 末影珍珠加载
一个在 Paper 服务器上使区块加载与卸载更可靠的数据包,并在末影珍珠消失后延迟卸载相关区块。
该数据包支持哪些版本?
目前提供适用于 26.2 和 26.3 的构建版本。由于我本人也在积极使用此数据包,未来版本可能会获得支持。
它具体做什么?
此数据包会对末影珍珠首次出现的区块进行强制加载(force load)。只要珍珠存在(无论是落地还是持有者离开服务器导致珍珠消失),该区块将保持强制加载状态。默认情况下,珍珠消失后会等待 10 秒才移除强制加载。此延迟是可配置的,但由于技术限制,最小值为 2 个游戏刻(gameticks)。系统内置了安全机制:如果设置的延迟低于该最小值,则会自动覆盖为最小值。此数据包通过在每个这样加载的区块中放置一个标记实体来跟踪区块状态,该实体位于区块角落的 Y -64 处。
该数据包提供哪些设置?
-
可配置的卸载延迟:使用以下命令设置卸载延迟:
/scoreboard players set #EPLscores epl_unloaddelay 200
将 200 替换为你选择的数值(单位为游戏刻,即你期望的秒数乘以 20,最小值为 2)。
-
区块修复:如果你遇到不必要地强制加载或未能正确强制加载的区块,可以使用以下命令重置所有已标记的区块:
/function pearl_loader:admin/fix_chunks
这将移除所有强制加载的区块,并尝试重新强制加载它们,同时重置其标记实体。建议在尽可能少的末影珍珠存在且未被其他玩家加载的区块卸载时使用此功能,因为这些区块可能不会被重新加载。
-
移除清理:当你希望停止使用此数据包时,运行以下命令以清理所有由该数据包创建的强制加载区块、标记实体以及记分板目标:
/function pearl_loader:admin/remove_datapack
随后可从世界文件夹中删除压缩包文件。
我想报告一个 Bug
欢迎提交 Bug 报告!你可以在 项目的 GitHub 页面 上打开一个问题,我会尽力解决。
Stable Paper Enderpearl Loading
A datapack that makes chunk loading and unloading more reliable on paper servers and adds delayed chunk unloading upon pearls dissapearing.
What versions does the pack support?
There are currently builds for 26.2 and 26.3. Future versions are likely to receive support as I actively use this pack myself.
What exactly does it do?
This datapack forceloads the chunk an enderpearl first appears in. It will then remain forceloaded untill the pearl dissappears, either when it lands or when the owner leaves the server. By default it will wait 10 seconds after the pearl is gone to remove the force loading. This delay is configurable, with a minimum of 2 gameticks due to technical limitations. Safety is build in that overrides your chosen delay if it is below that. The datapack uses a single marker entity per chunk loaded this way, located at y -64 in the chunk corner, to track the chunks status.
What settings does the pack offer?
- Configurable unoad delay: Set the unload delay with
/scoreboard players set #EPLscores epl_unloaddelay 200, replacing 200 with your chosen value in gameticks (your desired seconds times 20, minimum of 2).
- Chunk repair: If you ever run into chunks that are unnecessarily forceloaded or fail to forceload, you can reset all marked chunk using
/function pearl_loader:admin/fix_chunks. This will remove all the forceloaded chunks and attempt to re-forceload them and resets their markers. This is best used when as few pearls as possible are present and chunks unloaded by this that arent otherwise loaded (like by a player) might not be reloaded.
- Removal cleanup: When you wish to stop using this datapack, run
/function pearl_loader:admin/remove_datapack to clean up all the forceloaded chunks, marker entities en scoreboard objectives belonging to this pack. You can then delete the zip file from the world.
I want to report a bug
Bug reports are welcome! You can open an issue on the project's GitHub page and I will do my best to resolve it.
评论 0
登录后参与评分
还没有评论,来抢沙发吧