Data Packs Quality of Life

Chunk Pregenerator [1.21.5 - 26.2]

  • 5.1k views 8 today
  • save_alt 493 downloads
Compatibility
Minecraft 1.21
Changes include
  • Functions
  • Predicates
Added CreditLprogrammer
  • 9
  • 6
  • 3
XAVI333
Lvl 40Master Engineer
20
No more lag while exploring!
Load chunks beforehand so you can enjoy exploration.

This DataPack allows you to pregen chunks before you go exploring, so you won't experience lag from generating chunks during exploration.

Very useful for servers where players usually explore simultaneously.


USAGE:

Run /function help:chunk_pregenerator to get all info needed to use this DataPack.
There are 3 parameters you should know:
  • Cx: x coordinate of the square's center
  • Cy: y coordinate of the square's center
  • R: square's radious in chunks (each chunk is 16 blocks long)

Here is an example:

Each '✅' is a chunk that will be loaded.
Each '❌' is a chunk that won't be loaded.
Running /function c_pre:start {Cx: 0, Cz: 0, R: 3}.
❌❌❌❌❌❌❌❌❌
❌✅✅✅✅✅✅✅❌
❌✅✅✅✅✅✅✅❌
❌✅✅✅✅✅✅✅❌
❌✅✅✅🟢✅✅✅❌
❌✅✅✅✅✅✅✅❌
❌✅✅✅✅✅✅✅❌
❌✅✅✅✅✅✅✅❌
❌❌❌❌❌❌❌❌❌

3 Update Logs

v1.1 [1.21.5 - 26.2] : by XAVI333 07/09/2026 4:30:35 pmJuly 9 @ 8:30 pm UTC

  • Updated for Minecraft 1.21.11
  • Updated for Minecraft 26.1.x
  • Updated for Minecraft 26.2

It has not been extensively tested on 26.1.x versions.
LOAD MORE LOGS

More like this

  Have something to say?

Azterrix
11/10/2025 11:35 am
Level 1 : New Miner
it doesnt work
1
Antoha256M
08/13/2025 2:35 pm
He/Him • Level 48 : Master Professor
history
A useful datapack, but can you remove the position arguments and just take the player's position as the center?

And limit the chunks to be loaded in one line. For example, if I specify a radius of 100, then the tps will drop to 10, you could limit the simultaneous loading of the line to 48 chunks.
2
XAVI333
08/14/2025 3:40 am
Level 40 : Master Engineer
history
Thanks for your feedback!

You can already run the function "start_here" to ignore the position arguments and use your current position as center.

As for lag, it's a bit complicated, since each user's device has its own performance (some will do better than others). That's why I decided the best option was to prioritize speed over lag. After all, this DataPack is designed to be used AFK when no one is playing.
However, I wouldn't rule out adding an option to modify the parameters that control this in the future.
2

Welcome