Chunky
Your step-by-step guide to using Chunky to pregenerate a world
Getting Started
Install Chunky on your server by downloading either the plugin or mod and dragging & dropping the file into your server's plugins or mods folder. You can use an SFTP client or the Plugins/Mods tab in your game panel to do this.
info
Even though you would ideally generate each world, be mindful that 1 block in the nether is 8 in the overworld. Because of this players can get outside of the worldborder if you make them the same size. So make the overworld 8 times bigger to not have this happen.
This can use a lot of storage space, so don't go overboard. A site like world size calculator may give you a estimate of that. The difference between 10k and 20k is about 50GB storage.
Configuring Chunky
Enable Continue-on-Restart (Recommended)
Chunky can use a lot of RAM and may require server restarts. To ensure your pregeneration continues after a restart, navigate to /plugins/Chunky/config.yml and change the setting from continue-on-restart: false to continue-on-restart: true. You typically won't need to change anything else in this file.
Verify Your Permissions
Make sure you have the necessary permissions to use Chunky's commands. The simplest method is to give yourself operator (OP) status using the console or an in-game command.
If you are using a permissions plugin like LuckPerms, you can grant the wildcard permission chunky.*.
Using Chunky
Example
The following example uses commands in the server console.
You can also run them in-game, which provides autocomplete.
It is recommended to pregenerate only one world at a time, especially for modded servers.
Start by selecting the world you want to pregenerate by using the command /chunky world world
Set a worldborder using the command worldborder set 100 for 100 blocks, if you want chunks simply multiply by 16. (since each chunk is 16 blocks)
Example: To pregenerate a 5,000-chunk area, the diameter would be 5,000 * 16 = 80,000.
Use the command chunky worldborder so Chunky knows the world border size and center.
The final step, use the command chunky start. When it's finished it will tell you and you should no longer see any progress of generating.
For more information, read the chunky wiki here