After reading the docs:
https://docs.spongepowered.org/en/server/getting-started/migrating.html#migrating-from-craftbukkit-or-spigot
And this comment on this thread from last year:
I’m happy to say that manually importing non-Sponge worlds seems to work just fine. However, there are some caveats that I noticed. Is there an update on the plan to create a conversion process? I couldn’t find anything on GitHub.
The first time you start up your server with your imported world, while already playable, the ‘level_sponge.dat’ file isn’t written to disk till you shut the server down the first time. This makes sense as world data is saved on shutdown.
However, say you are importing multiple worlds (which in that thread from last year, it seems that ‘starting over’ is quite common), and you want to visit some old worlds. In order for the World API to detect the world, it needs that .dat file in there. So to import all the worlds, I need to start the server on each one and shut it down to generate the UUID and level name data. That’s all fine and good too.
Here’s where I get stuck. Sponge looks in the folder for the default world to find other worlds. If I move these base directories into the default world dir, I would expect Sponge to find it, but it doesn’t. I think that fails because the dimensionId in the .dat file is a duplicate (set to 0 by default). If I edit the NBT directly to an unused dimensionId, it starts to show up in the list of all WorldProperties. (And since NBT editing is something I think that won’t end up in the API, this is something I’d rather not try to do programmatically myself.)
So my question is: could there be a more formal way to import a world folder? Or to be more specific, could Sponge recursively on startup find world data dirs in the default world dir, give them UUIDs if missing or update their dimensionId values so that those worlds will be detected in Sponge? (Should I file this as a GitHub issue?)
My use case is that if I were to start over on my server, I’d love to just dump my previous world folder into a newly created world dir and have them available right away.