Question about preloading chunks
Hi everyone, I'm starting a server with Distant Horizons, and before players join, I'd like to preload chunks to avoid overloading the world and also have a clean Distant Horizons with no empty chunks. Could someone guide me through this process?
22 Replies
1. Set the generator mode to
Internal Server
using the /dh config
command
2. Make sure you have C2ME and other performance mods installed, else pregeneration will be very slow with the generator mode set to Internal Server
2. Set the CPU Load preset to I paid for the whole CPU
using the /dh config common.threadPreset
command
3. Pregenerate LODs and chunks using the /dh pregen
commandThank you very much for responding, your kindness is appreciated.
But will that preload LODS only from Distant Horizons?
My main idea was to preload with chunky and I thought I had the work done, but I was reading a little and I see that it is not the only thing that needs to be done.
If you set the generator mode to
Internal Server
it will both generate and save chunks and LODsAh, perfect, much easier still.
Thank you very much indeed
Yea, pregenerating with chunky when you also have DH installed is not recommended
Due to this:
Using Chunky to pregenerate for DH is not recommended for several reasons. The first one is the swiss cheese that might show up when using chunky while DH is installed. The second reason is that it's pointless, as DH has a build in pregenerator that is better integrated than chunky:
- It saves space by only storing LODs, not normal chunks
- It is faster to use DH's pregenerator to generate the LODs than first using chunky to generate the normal chunks, and then using DH to convert the normal chunks to LODs
- It is part of DH, and therefore always/only called when DH needs it
- Chunky calculates it's radius in blocks, confusing the user if they are not aware of this
Distant Horizons' built-in LOD pregenerator is enabled by default, and can be sped up or slowed down by changing the
Cpu Load
in DH's settings, or disabled by turning off Distant Generation.
If you want to pregenerate both LODs and normal chunks, set the Distance Generator Mode to Internal Server
under Advanced, World Generator. This will of course take up quite a lot more storage space. Make sure you have C2ME installed if you want to use Internal Server, as the generation speed will be crap if you don't.
Note, this also applied to other similar pregeneration mods.:balbrainbowheart:
/generators
- FEATURES: Complete generation of all LODs with mostly correct structures and trees. Does not save vanilla chunks, and is much faster than INTERNAL_SERVER unless C2ME is installed.
- INTERNAL_SERVER: Generates and saves both DH LODs and vanilla chunks, has 100% correct LODs, because it also saves vanilla chunks it takes the most amount of drive space. Generation speed will suck unless C2ME is installed.
- PRE-EXISTING: generates LODs for all existing vanilla chunks.
tried doing this but it says unknown command. Does it not work in singleplayer?
The commands are only present server side
On the client side for single player you can use the settings GUI
/config
To edit the config, press the button next to the FOV slider to edit the config.
The config file found in .minecraft/config/DistantHorizons.toml
And for the pregen set the target DH RD and go AFK
thanks, looks like i don't have to use chunky since dh does it already. But if I were to do it in a server there's no command to pregen 5000 chunks? It needs to have a player inside the server and constantly travel to get the same effect? Or can I type /dh pregen 5000 if I have a server?

When I start this, when do I know when to stop?
Or does it stop on its own?
When you are on a server, you can follow the original steps I gave you
If you're doing this in singleplayer, there should be a progress update above your hotbar
If you're doing this on a server, DH will frequently log the progress in chat and the log
I mean, I don’t have to place any value and all that? All automatic?
You have to specify some parameters in the pregen command
https://gitlab.com/distant-horizons-team/distant-horizons/-/wikis/1-user-guide/1-frequently-asked-questions/5-server-owners/Server-Owners#commands
Usage: /dh pregen start <dimension> <x> <z> <radius in chunks>
Perfect, thanks you
❤️
i've no idea what the exact commands i'm supposed to type here. The wiki also doesn't say the specific parameters. Is it something like "/dh config internal_server then /dh pregen 500 chunks"?

For pregen its this:
/dh pregen start <dimension> <x> <z> <radius in chunks>Not sure about the internal server tho. Try doing it from inside a minecraft instance on the server using OP. That way you have auto-complete
for future reference it was "/dh config generation.mode INTERNAL_SERVER"