Changed generation pattern to spiral out from the origin
Set default option to pause chunk generation while users are online
(Special thanks to Baughn for these additions)
Fixed some of the math behind the chunk loading to catch chunks that weren't being loaded
Changed how chunk generation worked to prevent lag issues.
Added configuration file handling. The area specified in the config file is loaded when each world loads.
This mod adds the following command to Minecraft:
/chunkgen <x> <z> <height> <width> [dimension]
where x and y are the origin chunk coordinates, height and width describe a rectangle centered at x,z of chunks to generate and dimension is the dimension ID to generate the chunks in.
All arguments should be whole numbers, however x and z may also be ~ which represents the players current position.
dimension is an optional argument.
Can be used to stop an in-progress chunk generation.
The config file for chunkgen is in the expected place (config/chunkgen.cfg). Setting width andheight to something non-zero will allow you to generate extra chunks as the world is loading. This will run everytime the world is loaded, however it will not overwrite chunks that have already been generated. There are also no performance hits from doing this.
The value numChunksPerTick dictates how many chunks are generated per Server Tick. The default value is 1. Take care when setting this value as it may cause severe lag if set too high.
Configuration values can be set via the in-game Mod Config menu.
Either submit a pull request, or open an issue and label it as a feature-request.
Feel free to use this mod in any modpack or server, however please credit me (gecgooden).
I've been looking into ways to fix this, and I believe I have addressed this issue. It seems that all the generation was being done in one tick, and causing that tick to take a long time. I've addressed this by changing the chunk generation to span multiple ticks (the number of chunks/tick can be set in the config file).
EDIT: I just realised that you are running the 1.6.4 version. I'm likely not going to downgrade these improvements at this point, considering there are many 1.7.10 modpacks available at the moment, and the first version of Forge 1.8 being released recently.
Neat looking mod. I love to use this to prevent generating new chunks for good if that is possible. On my servers I tend to generate 4-8k out and use borders to stop people. But it be so sweet rather chunks just never generated or generated blank outside a limit.
Hmm, I tried this mod out and it doesn't appear to have worked at all. Running a FTB Infinity 1.7 server, ran it on the server and told it to gen from my bases x / z and did a height / width of 625 (since per other notes the height and width is in chunks not locs). It ran through a bunch of "locs" in the logs and afterwords doesn't appear to have actually generated any chunks nearby. I can still tell that they are being loaded and created when I go to them and map viewers aren't picking them up as created regions.
Is the X / Z perhaps supposed to be a chunk coordinate based system rather than the X / Z coordinates?
Hmm, does this mod not work in mystcraft worlds? Tried using it in one today and it doesnt seem to actually generate any chunks in the world. I even did a test and after creating a new one watched the region folder for that new mystcraft world, did /chunkgen ~ ~ 15 15 in that world, and no new region files got created.
I tried specifying MYST14 as the dimension ( the new myscraft world ) but it wouldn't accept a non number for the dimension.