I have a PC dual booted with Linux and Windows and Minecraft is installed on both. Now sometimes I play Minecraft in Linux and sometimes in Windows. I want to know if I could change the location where worlds are saved to a hard drive that is shared by both operating systems, so that I can use the same world on both operating systems.
3 Answers
The Minecraft launcher allows you to change the folder it places your saves in (among other things) via the profile settings.
Create a "Minecraft" folder on a shared drive. Make sure you have read/write access to this folder from both Windows and Linux.
Start the Minecraft Launcher and click on Installations
Hover over the profile you want to change, click on ..., then Edit.
Enter the folder on your shared drive in the Box labeled "Game Directory". The game will now place
saves
,resourcepacks
,screenshots
andcrash-reports
(maybe some more folders) in this Directory.Repeat on the other OS.
-
1Thanks.. I tried and it works superbly.. Better than my method.. Feb 15, 2016 at 5:22
-
1For those in 2020: Open the launcher, click the Minecraft tab on the left, then click the "installations" tab in the main pane. You should see something like "Latest release". Hover over it and you will see a gray button with 3 dots on the right. Click that and select "Edit". You can then specify the game directory and other properties– pooshlaAug 21, 2020 at 16:18
-
1@pooshla Thanks for the heads-up. I have edited the answer to reflect the current launcher.– MrLemonAug 21, 2020 at 19:31
Create a folder called saves somewhere in your shared drive. (eg. D:\Xyz\saves). Move your worlds(if you have any saved) to this folder.
Then in Windows, create a symlimk to the folder:
Open elevated cmd.
Navigate to .minecraft folder:
cd %appdata%\.minecraft
Delete the saves folder from here.
In cmd, type:
mklink /D saves <path to saves folder>
eg. If your saves folder is D:\Xyz\saves, type:mklimk /D saves D:\Xyz\saves
Now reboot to Linux. In Linux,
Go to the shared drive which has saves folder.
Right click on saves folder and make link.
Rename the link to saves.
Go to .minecraft folder in your home directory and delete the saves folder from there.
Move the saves link here.
Now both operating systems will share the saved worlds.
Note: Shared drive must be NTFS for mklink to work.
Yes there is. Go to your user account and find roaming. go into it. in there is .minecraft (unless you changed if u changed fine what you changed it to) then open it and there will be a file called "Saves". Copy that onto a hard drive. then when you go to Linux open that hard drive and drag the saves into your save location which is in your minecraft launcher than edit profile and near the top.
%appdata%\.minecraft
on Windows or~/.minecraft
on Linux.