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)
v1.2.3
Fixed some of the math behind the chunk loading to catch chunks that weren't being loaded
v1.2
Changed how chunk generation worked to prevent lag issues.
v1.1
Added configuration file handling. The area specified in the config file is loaded when each world loads.
Usage
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.
/chunkgen stop
Can be used to stop an in-progress chunk generation.
Config File
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.
Feature Request
Either submit a pull request, or open an issue and label it as a feature-request.
Permissions
Feel free to use this mod in any modpack or server, however please credit me (gecgooden).
Thank you for this mod, GecGooden, I've been wanting something simple like this for over a year now.
Just now used it on the Mechanical Titan server I spun up for a couple of friends. Absolutely killed the system doing a 100x100 chunk pre-gen, but once it was done things certainly ran smoother.
Drag0nvil, I'm not sure why that happens. Can you open an issue for it on GitHub and I'll get to it as soon as I can. If you could let me know what modpack you are using it in, that would be helpful.
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?
I don't really have much use for a github account so posting pull requests/issues is a no.
Do you think you can make milestones (every 10x10 chunks?) post a message to the chat? I'm not getting any feedback that the chunkgen command even works.
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.
chunkgen
A small mod that adds a command to allow players to pre-generate chunks.
Features
Downloads
Available from: https://github.com/gecgooden/chunkgen/ and now Curse!
Current Version:
1.3.0
Change Log
v1.3.0
v1.2.3
v1.2
v1.1
Usage
This mod adds the following command to Minecraft:
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.
Config File
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.
Feature Request
Either submit a pull request, or open an issue and label it as a feature-request.
Permissions
Feel free to use this mod in any modpack or server, however please credit me (gecgooden).
Not sure about 1.6.4, I'll have a look and let you know.
jut so you know minecraft world on PC is nearly infinite
It does unload the generated chunks, but at the end once they have been generated (If I remember correctly).
When it is generating that 100*100 area, its generating 100x100 chunks (so 1600*1600 blocks). Sorry about the confusion there.
Thanks, I'm glad you like it.
I guess i'm trying to look for a way to re-generate areas with chunk borders which where created when we updated forge on our server
there was a biome generation issue and change which created a bunch of chunk "cliffs" as we moved out past our previously explored area.
Just now used it on the Mechanical Titan server I spun up for a couple of friends. Absolutely killed the system doing a 100x100 chunk pre-gen, but once it was done things certainly ran smoother.
To be honest, I haven't tried it. It wasn't intended to do this though. Try it out, and let me know how it goes.
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).
The new release is available here: https://github.com/gecgooden/chunkgen/releases/tag/1.2
Hope it helps.
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.
Check out my Let's Play Series:
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?
The X/Z should be the chunk coordinates.
There was an issue that the chunks weren't fully loaded (foliage wasn't loaded properly). That should be resolved in 1.2.1.
I don't really have much use for a github account so posting pull requests/issues is a no.
Do you think you can make milestones (every 10x10 chunks?) post a message to the chat? I'm not getting any feedback that the chunkgen command even works.
That's a good idea, I'll look into it.
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.