Is it possible to setup Minecraft so that the maps are loaded and saved from a different folder (like my Dropbox folder)?
Where are they stored by default?
minecraft-java-edition
Is it possible to setup Minecraft so that the maps are loaded and saved from a different folder (like my Dropbox folder)?
Where are they stored by default?
Best Answer
You would need soft links to do that.
Create a soft link from your minecraft savegame folder to inside the Dropbox folder.
However, it will be quite suboptimal. Minecraft stores save games in many, many small files and Dropbox does not support folder-wide rollbacks.
What I would use instead is a source control versioning system.
First time setup
hg init
on your save folderhg add; hg commit
to save the state of your game.Backing up
hg commit
again to save the state of your game. Give a meaningful commit message (e.g. "got my first iron pickaxe!")This, except maybe for the commit message, should be easily automated with batch files. Here's a very simple bash script for Ubuntu:
Going "back in time"
hg rollback
to undo the last commit and restore the save game to your previous save state.hg revert
to restore the save games to your last commit.Dropbox backup
While we are scripting, we might as well have a single file copy of your game files to be put on Dropbox.
This makes for a much more Dropbox-friendly solution -- just be aware you are backing up the repository, not just the game files. If you want just the latter:
Remote hosting
If you want to keep game files up to date between different machines, it is trivial to do so - even without Dropbox. You can have a remote copy of your repository for free at these hosting solutions. Choose one that will not complain about your not using their service for a non-code project... Intuxication for example.
Be very careful, however -- you want to avoid conflicts. Merging will not work, so you will need to always push after you play and always pull before you play. This is trivial to do if you are using a script:
Specific setup details vary based on your hosting solution.