Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WorldCreator - option to override setting initial spawn #12044

Closed
ShaneBeee opened this issue Jan 29, 2025 · 1 comment
Closed

WorldCreator - option to override setting initial spawn #12044

ShaneBeee opened this issue Jan 29, 2025 · 1 comment

Comments

@ShaneBeee
Copy link
Contributor

Is your feature request related to a problem?

The main issue with creating a new world via WorldCreator, is it can take upwards of 10 seconds (or longer on some machines I'm assuming)
After throwing in like 20 debug timings, I came to the conclusion that it's setting up the initial spawn area that is causing the massive delay.

In my test:

[14:13:20 INFO]: 'set biome provider' took: 2 ms
[14:13:20 INFO]: 'create dimension key' took: 0 ms
[14:13:20 INFO]: 'create ServerLevel' took: 39 ms
[14:13:20 INFO]: 'setup world border' took: 2 ms
[14:13:20 INFO]: 'initialized serverLevelData' took: 0 ms
[14:13:27 INFO]: 'set initial spawn' took: 6855 ms       #  <-------- eeek, nearly 7 seconds
[14:13:27 INFO]: 'init world' took: 0 ms
[14:13:27 INFO]: Preparing start region for dimension minecraft:world_custom_biomes
[14:13:27 INFO]: Preparing spawn area: 100%

It took almost 7 seconds to setup the initial spawn. This is due to Minecraft having to search around to find a valid spawn area thus having to run thru the chunk generator finding a place a player can safety spawn in at.

Describe the solution you'd like.

I would like something like:
WorldCreator#initialSpawnLocation(Location)

This could be used to override the vanilla setup of the initial spawn.
The dev later on could change the spawn location to suit their needs.

This addition would help speed up custom world creation immensely.

Describe alternatives you've considered.

I have done everything I could think of, including turning off loading spawn chunks.
But after doing all my testing, my only conclusion I could come to is that Minecraft decided the spawn location isn't something I could personally override.

Other

No response

@ShaneBeee ShaneBeee changed the title WorldCreator - option to overriding setting initial spawn WorldCreator - option to override setting initial spawn Jan 29, 2025
@ShaneBeee
Copy link
Contributor Author

@ShaneBeee ShaneBeee closed this as not planned Won't fix, can't repro, duplicate, stale Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant