1

Anyway to generate all chunks?

RainOfPain125 •1/1/18 3:28 am
•
2.4k
•
1/8/2018 10:35 pm
I host a factions server with a 40k x 40k border and would like to generate all the chunks within the border. How?

as simple as that.
Posted by
RainOfPain125
Level 5 : Apprentice Network
0

  Have something to say?

Join • Sign in

10

L Llama
• 01/08/2018 10:35 pm
• Level 56 : Grandmaster Chicken Caveman
Mc edit maybe?
1
superego5642
• 01/01/2018 2:17 pm
• Level 4 : Apprentice Miner
Use worldborder plugin to generate the chunks. It will take time and a lot of processing power.
1
Scott
• 01/01/2018 5:02 am
• Level 40 : Master Droid
Write some code to teleport each person to each chunk with 1 tick delay between teleport? That would mean it would take a maximum of 1600 ticks, which is 80 seconds.
2
RainOfPain125
• 01/01/2018 3:01 pm
• Level 5 : Apprentice Network
That would not work, as each chunk (16x16x256) is divided into regions (16x16x16) You would need to do a LOT of teleporting to accomplish that
1
ShelLuser
• 01/01/2018 7:00 am
He/Him • Level 61 : High Grandmaster Senpai
This is about the only way there is to this problem. However, you don't have to teleport a player/entity to every chunk because most players use a render distance of minimal 10 and therefor load several chunks at once, usually an easy 9 in total (basically all surrounding chunks).

That might be useful here, though would require an awful lot of calculating I guess.
1
Scott
• 01/01/2018 12:44 pm
• Level 40 : Master Droid
Using a "minimal" variable could be a bad idea. But also, why does OP want to load every chunk in? There is a reason why chunks load and unload. If its a server, then the server would have that data cached in ram - sending each one out to the client is pointless and will cause lag!
1
RainOfPain125
• 01/01/2018 3:05 pm
• Level 5 : Apprentice Network
Because chunks aren't all just generated when the world is very first made. It is progressively generated as players enter chunks and regions. This progressive generation may bring a little lag to people as they explore new areas, so my idea was why not generate all the chunks within my border as a one-time thing so my CPU wouldn't have to generate the chunks when people explore, instead the chunk would have already been saved to my hard drive, and would be moved to the RAM
1
ShelLuser
• 01/01/2018 2:14 pm
He/Him • Level 61 : High Grandmaster Senpai
The OP mentioned generating, not necessarily loading. And I can definitely understand the desire for that: this would have the potential to generate one (large) section of land which would never get distorted or messed up when the server gets upgraded to a newer version of Minecraft.

If you want to keep a map and upgrade then there's always a risk that undiscovered (so: not generated) terrain will suddenly follow a new generation routine which can easily result in major map inconsistencies.
1
Emerald_Mage
• 01/01/2018 4:56 am
• Level 1 : New Miner
There's no way to make all chunks render instantly. Players will just come across and it will render on it's own. Correct me if i'm wrong
1
MmanGamer14
• 01/08/2018 10:30 pm
• Level 8 : Apprentice Cake
op wants the chunks generated ahead of time so that the only thing the server has to do is load it for the players
get outta here
1

Welcome