跳到正文

Passive Chunk Pregenerator

作者:liliandev

This mod generates chunks passively around players, offline or online, and the worldspawn to generate chunks that will most likely be needed in the near future.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

This mod generates chunks passively around players, offline or online, and the worldspawn to generate chunks that will most likely be needed in the near future.

How this works

Minecraft is partially multithreaded.

Each Dimension(or Level if you are a modder and use Mojmaps) has its own Thread to generate chunks.
On the Main Thread, the one used for most ingame stuff, I’m checking for viable chunks to load. This includes a check if that dimensions worldgen thread is currently generating a chunk. This makes sure, that more important chunks are generated first. It then schedules the generation of a viable chunk on each thread, if it could find one.

Error Suppression

The IO Thread is sometimes trying to save chunks, while a new one is added to a map by a worldgen thread. This causes ConcurrentModificationExceptions to be thrown and logged. The chunk is saved to disc in a later attempt (that happened during my testing, and shouldn’t destroy worlds (but you should make backups, just to be sure)). These Exception, because they happen rather often and can be ignored are suppressed and won’t be logged.

常见问题

Passive Chunk Pregenerator 支持哪些 Minecraft 版本?

Passive Chunk Pregenerator 支持 Minecraft Java 版 1.18.2–1.19.2,共 2 个版本,可用的加载器:Fabric / Forge / Quilt。下载时注意选择和你游戏版本一致的文件。

Passive Chunk Pregenerator 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Forge / Quilt,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。

评论

登录后评论和评分

liliandev 的其他作品

查看全部 →