Minecraft Wiki

除另有声明,转载时均必须注明出处若簡繁轉換出錯,請以遊戲內為準请勇于扩充与修正内容有兴趣逛逛我们的微博沟通交流,欢迎到社区专页需要协助,请在告示板留言

了解更多

Minecraft Wiki
Advertisement

本教學將教你如何在Google Drive上執行Minecraft(請注意,這並不是真正從雲端執行遊戲,只是將它複製到一個不同的位置,並保持與雲檔案同步)。如果你想在切換計算機時儲存遊戲資料(如世界、資源包Mod等)並自動備份遊戲,這是非常有用的(最後一次測試:1.14.1)。

你需要什麼

  • 一個Google帳戶(最好擁有15GB的儲存空間)
  • 一個使用Windows作業系統的計算機
  • 一個Minecraft帳號
  • Minecraft用戶端(Minecraft.exe)
  • 一個「.minecraft」資料夾(至少執行一次Minecraft以建立資料夾)

步驟

準備工作

下載Google Drive

我們需要在你的電腦安裝Google Drive。

  • 首先,到這裡下載Google Drive。
  • 點擊藍色的「Download(下載)」按鈕。
  • 點擊「Agree and Download(同意並下載)」。
  • 執行.exe檔案。
  • 登入到我們剛剛安裝的Google Drive,選擇你想用來儲存Minecraft檔案的帳戶。

一個新的資料夾將被建立在「Favorites」下,將所有鏡像檔案放置在drive.google.com。

建立資料夾

  • 找到你新的Google Drive資料夾並打開它。
  • 右鍵 > 新建 > 資料夾。
  • 將其命名為「Minecraft Portable」(或任何你想要的)並點擊右鍵。
  • 建立「bin」和「data」資料夾在「Minecraft Portable」資料夾的裡面。
    • 這兩個資料夾的名稱必須完全相同,因為我們將在下面的代碼中使用它們。

There are now three new folders on your Google Drive: bin and data, both located in Minecraft Portable.

用戶端

現在複製啟動器到Google Drive上。

  • Locate your Minecraft client and copy it. (It should be in your Downloads folder as minecraft.exe. If it's not, download it here https://www.minecraft.net/en-us/download/alternative.)
    • You need the .exe file, NOT the shortcut. If you're not sure, the shortcut's icon has a blue arrow on it.
    • If you can't find minecraft.exe, just download it again from minecraft.net. and copy it.
  • Paste minecraft.exe into the bin folder that you have created on Google Drive.

資料檔案

Our new Minecraft still has no data; here's how to find it:

  • Press ⊞ Windows + R.
    • type %APPDATA%\Roaming.
    • hit ENTER.
  • Locate your .minecraft folder and copy it.
  • Navigate back to Minecraft Portable and double-click data.
  • Paste your .minecraft folder into data. (If you don't want to copy all your data just make a folder and call it .minecraft)
    • If you have many saves, large saves, or a lousy Internet connection, this could take awhile.
    • Don't get too excited once it pastes. Now Google Drive will start to sync all the files. This can take up to 5 hours in addition to the hour it will take to paste the files. Let it do it's thing overnight. It's much less stressful.

All saves, resource packs, and mods you might have are now in your Google Drive.

設定

Now that all the data files are there, we need to tell Windows how to handle them Google Drive and for that, we will create a batch file.

  • Press ⊞ Windows + R
    • type Notepad
    • hit ENTER
  • Copy and paste this code into Notepad or a similar text editor. (Note: If your .exe is located in the bin folder, replace drive with bin):
"%CD%\bin\MinecraftLauncher.exe" --workDir "%CD%\data\.minecraft"
  • For whatever reason, if you use minecraft.jar, type this:
"%CD%\bin\Minecraft.jar" --workDir "%CD%\data\.minecraft"
  • Now click File > Save As ...
  • Locate your Minecraft portable folder (not bin or data) and double-click it.
  • Name this file "Launcher.bat"
    • Note: Make sure to include the "" - or else Notepad will correct it to Launcher.bat.txt and it will not work.

完成

That's it, all should work perfectly. A simple double click on the newly created Launcher.bat will start the launcher and you can play as usual. Minecraft may take a little longer to launch, but that's expected, it's just the batch file working.

有幾點需要注意:

  • Should you ever want to download a resource pack, map, or mod, place the files into the respective folders in the .minecraft folder on your Google Drive. However, said packs, maps, or mods will then of course be integrated in your cloud version.
  • To connect to your synced Minecraft on another computer, download Google Drive, log in and double-click Launcher.bat inside Minecraft Portable
  • Minecraft Portable can run alongside regular Minecraft. To run regular Minecraft, just run it the way you normally would. Your saves will not be synced.
  • Using the above settings, you will not be able to change the allocated RAM (add more memory) to your synced Minecraft. This should be one of the first things to troubleshoot if your Minecraft does not work.

參考

Advertisement