Mods
Resource Packs
Data Packs
Modpacks
Shaders
Plugins
Mods Resource Packs Data Packs Plugins Shaders Modpacks
Get Modrinth App Upgrade to Modrinth+
Sign in
ModsPluginsData PacksShadersResource PacksModpacks
Sign in
Settings
Passive Chunk Pregenerator

Passive Chunk Pregenerator

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.

6,639
66
Utility

Compatibility

Minecraft: Java Edition

1.19.2
1.18.2

Platforms

Fabric
Forge
Quilt

Supported environments

Server-side

90% of ad revenue goes to creators

Support creators and Modrinth ad-free with Modrinth+

Links

Report issues View source

Creators

liliandev
liliandev Owner

Details

Licensed Unlicense
Created 2 years ago
Updated 2 years ago
DescriptionChangelogVersions

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.

Modrinth is open source.

main@81b0922

© Rinth, Inc.

Company

TermsPrivacyRulesCareers

Resources

SupportBlogDocsStatus

Interact

Discord X (Twitter) Mastodon Crowdin
Get Modrinth App Settings
NOT AN OFFICIAL MINECRAFT SERVICE. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.