Savestate loading that doesn't close the Minecraft server, but instead change the region files underneath and reload the chunks once it's done copying
Implementation
In 1.12.2 you could easily achieve this by making the player think they switch dimensions, when in fact it switches dimensions to the same world they are currently in. So the steps would be:
Remove the player from the chunk map
Unload the minecraft world
Copy files
Pre-Load the minecraft world
Add the player to the chunk map
This all worked fine but in 1.14+ new obstacles appeared.
Observations
The world has to fully close for it to leave the references to the reagion files
The player can't be easily removed from the chunk map to simulate a dimension change
Loading the player in the new dimension is done via a respawn packet
Goal
Savestate loading that doesn't close the Minecraft server, but instead change the region files underneath and reload the chunks once it's done copying
Implementation
In 1.12.2 you could easily achieve this by making the player think they switch dimensions, when in fact it switches dimensions to the same world they are currently in. So the steps would be:
This all worked fine but in 1.14+ new obstacles appeared.
Observations