#How to pre-generate chunk?

1 messages · Page 1 of 1 (latest)

safe quartz
#

Hi, anyone know, how would I pre-generate a chunk, without loading it?

#

anyone?

stuck girder
#

@safe quartz there is a way

safe quartz
stuck girder
#

chunk.Load();

#

if (!(new Location(Bukkit.getWorld(this.getWorld()), 3985, 71, 68)).getChunk().isLoaded())
{
(new Location(Bukkit.getWorld(this.getWorld()), 3985, 71, 68)).getChunk().load();
}

#

you get the coordinates of the chunk

#

so

safe quartz
#

but load also loads it into memory, right?

stuck girder
#
(new Location(Bukkit.getWorld(this.getWorld()), x,y,z)).getChunk().load()
#

I believe so

safe quartz
#

I just want to generate it and save it, so it's ready

stuck girder
#

Animals, will move, redstone will work

#

TNT will spawn

#

etc...

safe quartz
#

Yeah

stuck girder
#

What exactly do you need?

safe quartz
#

I just need to generate the chunk and save it to the disk.

#

So once I need it, it won't generate, but just load

stuck girder
#

????

#

It will load the chunk

#

What else do you want from me

safe quartz
#

I think you don't understand the difference between genereted and loaded chunk.

stuck girder
#

...

#

Load the chunk

#

it will LOAD the chunk

safe quartz
#

Yeah

stuck girder
#

that's all it does

#

it doesnt generate it

#

it LOADS it

safe quartz
#

I just need to generate it without loading

stuck girder
#

Close thread > solved

#

@safe quartz

safe quartz
#

It isn't solved

stuck girder
#

It is tho

#

Chunk.load()

safe quartz
#

Omg can you read?