Minecraft Wiki

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

了解更多

Minecraft Wiki
Advertisement
Ic translate
此条目的(部分)内容需要翻译。

你可以帮助我们来翻译此条目,但请勿使用机器翻译

警告

自从这个 Wiki 可以被任何人编辑任何页面后,建议你不要使用这个脚本,而将它作为你的指导手册那样编写这个页面。

这个教程解释了如何在便携式驱动器(Thumb、Flash 或 USB)上运行 Minecraft。你在使用不同的电脑上使用相同的游戏数据(世界、保存的数据、资源包、服务器等)时这很有用,因为游戏数据将会始终保存在便携式驱动器中。

先决条件

你需要:

  • 一个最少拥有 512MB 内存的便携式驱动器。你将会需要更多的空间在驱动器上储存你的 Minecraft 存档。
  • 一个运行着 Windows、OS X、或任何 Linux 的发行版的电脑,这台电脑要符合 Minecraft 配置运行需求

步骤

安装了 Windows 的电脑

准备工作

因为 Minecraft 需要安装多个文件,我们将会收集 Minecraft 运行所有的所需文件,并在便携式驱动器中分好类,以方便寻找。请注意,如果你不正确的按照下面的指示做,那么 Minecraft 可能会崩溃或启动失败。Windows 对所有的文件和文件夹名称的大小写都很敏感。

  • 将便携式驱动器插入到你的电脑中,并打开它。
  • 新建一个文件夹,将其命名为 Minecraft Portable(或其他你选择的名字,名字不能含有中文字符),并进入文件夹。
  • 在这个文件夹里,新建2个文件夹,并分别命名为 LauncherData
    • 注:这些文件夹必须有确切的名称,因为我们将在以下步骤中使用它们。
    • 现在在驱动器上有3个文件夹:在 Minecraft Portable 里面的 LauncherData

启动

往便携式驱动器中添加启动器/客户端:

  • 下载 Minecraft launcher。
    • 你可以在 Minecraft 下载页 中下载它。
    • 确保你使用了“Minecraft for Windows (alternative)” 版本,这可以在“Show all platforms”页面中找到。
  • 将 Minecraft.exe 复制到已经创建的 Launcher文件夹。

数据文件

此部分教程将会指导你如何将游戏数据(世界、储存的数据、资源包、服务器等)复制到便携式驱动器中。
如果你不想复制你的游戏数据,你可以跳过这个部分。

所有的游戏数据都必须在 .minecraft 文件夹里。

  • 按下 ⊞ Windows + R
    • 输入 %APPDATA% 并点击确定。
  • 查找 .minecraft 文件夹,并复制它。
  • 将复制的文件夹粘贴到 Data 文件夹。

Setting Up

Now that all the data files are there, we need to tell Windows to point Minecraft to the files on the portable drive. To do this, we will create a batch file.

  • Open Notepad or a similar text editor.
    • Press ⊞ Windows + R
    • Enter notepad and click OK.
  • Copy and paste the following into the text editor.:
set APPDATA=%CD%\Data
Launcher\Minecraft.exe
  • If you would like to use minecraft.jar, copy and paste this instead:
set APPDATA=%CD%\Data
Launcher\Minecraft.jar
  • Now click File > Save As ...
  • Navigate into your Minecraft Portable folder (not Launcher or Data).
  • Name this file "StartMinecraft.bat"
    • Note: Make sure to include the quotation marks (""), or else Notepad will try correct it to StartMinecraft.bat.txt and it will not work.

Playing

  • Once you have completed Setting Up, you can now launch Minecraft portable by running the StartMinecraft.bat file you have created.
  • When the launcher appears, click Play to begin.

Instructions for Linux

We will assume that the portable drive is at /dev/sdb1 and that Minecraft is installed at ~/games/.minecraft

  • Note: You may need to different directories names depending on your distribution and set-up.

Run the following in a terminal (make sure you are running these as root, or use sudo):

umount /dev/sdb1
mkdir /media/minecraft
mount /dev/sdb1 /media/minecraft
mkdir /media/minecraft/games # If there is a folder called games in you USB, skip this step
cp - rn ~/games/.minecraft /media/minecraft/ # This might take a while
cd
umount /dev/sdb1
rm /media/minecraft # Double check to make sure that your USB in not mounted!

After that, if you want to play Minecraft, just type the following in the terminal. (Again, you need superuser privileges)

umount /dev/sdb1
mkdir ~/games # skip if there is a folder called games in your home dir
mount /dev/sdb1 ~/games # You would not be able to play any games that are saved in the ~/games dir

Execute your Minecraft launcher to start playing.

Instructions for OS X

This guide does not make Minecraft truly portable, as it requires you to copy the game data from and to the portable drive each time you play.

Setting Up

    • Locate your Minecraft files. Press Command+Shift+G while in finder and then paste ~/Library/application support/minecraft into the dialog.
    • Copy that minecraft folder in your application support folder.
    • Insert in your portable drive and make 2 folders in it:
      • data and launcher
    • Paste your minecraft folder into the "data" folder in the portable drive.
    • Drag your launcher into the "launcher" folder
    • Remove your portable drive

Playing

Once you are done setting up, you can test if your Minecraft can start on another Mac.

    • Insert your portable drive into another Mac to test
    • Open the launcher folder and move the Minecraft launcher into your Applications folder.
    • Double click the launcher to run it. Then after Minecraft loads, exit it.
    • Again, go to Users/USERNAME/Library/Application Support
    • In "Application Support", delete the minecraft folder.
    • Move the minecraft folder in your data folder on your portable drive to the desktop.
    • Then drag it from your desktop into application support.
    • Run Minecraft again.

Additional Notes

NOTE: If you are installing resource packs or mods onto the portable drive, when the respective instructions tell you to copy files you will need to use the .minecraft folder on your thumb drive. Note: This also works in Dropbox, Google Drive, and OneDrive.

Source

If you have any trouble understanding, the original guide can be found in this thread.


Alternative Methods

Cryshal's Method

Doesn't work, minecraft still runs from the appdata folder, Minecraft Profile Manager is useless, and java will not run from the flash drive.

What you need:

  • A flash drive. (I'd suggest around 2GB, but varies depending on how many worlds/texture packs you have)
  • Windows


  • First, create a folder named, say, "Flash MC". Then, go on over to get jPortable which lets you run Java right on your flash drive, without it being installed on the computer.
  • You will want to install that onto your flash drive in a directory like \Flash MC\jPortable.
  • Then, go to Minecraft Profile Manager's thread, and download it.
  • Put it into your Portable MC folder. Follow the instructions. (Put minecraft.exe into the same folder that it is in)
  • You should now be able to launch MPM, make a profile and download all the needed Minecraft files to play.

Note

  • MPM runs using JAVA, meaning you must have java running in order for it to work.
  • Computers that are running windows should work just fine, unless they haven't been using Microsoft update.

I hope this helps you!

HiWiki's Method

WARNING

Please follow the steps CAREFULLY to avoid minecraft crashing!
This part was made by HiWiki!

WARNING - Do it in your own risk!
Only Works in WINDOWS!

  • In this method you will need:
    • USB (Minimum Space is 2.5GB or more if you have mods and/or texturepacks (You will also need Additional space for worlds))
    • Notepad
    • Minecraft Client
    • And .minecraft folder

Steps

  • First things first! You need to make two folders named bin and data
  • Then you place minecraft client inside bin folder
    • If you use a jar (or anything else that run minecraft) will still be placed in the bin folder
  • But the data of minecraft isn't in the data folder yet,
    • So you will need to Press ⊞ Windows + R to open run and type in the dialog box %appdata% then copy .minecraft folder (Also include other folders that also included in minecraft such as .aether)
      • Select those folders then press Ctrl + C (or Ctrl + X if you want to move the files rather than copy it)
  • Then after that Press ⊞ Windows + R to open run again and type notepad then paste the following code in it:
SET APPDATA=%CD%\data
bin\minecraft.exe
  • But if you use a Jar, put this instead:
SET APPDATA=%CD%\data
bin\minecraft.jar
  • And if you use a Jar/Exe with a different name such as Minecraft-launcher put this
SET APPDATA=%CD%\data
bin\<name of launcher>.<jar/exe>
  • Then you are all done!

Note!

  • You will need Java for this, but if you also want java in your Flash/Thumb/USB drive then scroll down and look for Add Portable Java
  • Any data you have in your .minecraft in appdata will also be in your Flash/Thumb/USB drive

Add Portable Java Method

You will need an extra 0.5 GB in your Drive for this to work!

  • Now you have done the above
  • Time to add portable java! (YAY!)
  • 1st, Click this link
  • Then on the page that redirected you, click Download Now or this link
  • Then open PortableApps.com_Platform_Setup_11.2.exe then wait until you see the add apps section
    • Make sure you place the setup in the Flash/Thumb/USB drive!
  • Then in utilities find and tick the boxes jPortable,jPortable Launcher,jPortable Browser switch then press install
  • Then wait for it to install then after that, your done!

How to open jPortable

  • First, find the folder PortableApps in your Flash/Thumb/USB drive
  • Then double click start, Then press jPortable Launcher
  • A window will open, then find the jar (Don't worry if it shows jar can be opened only change it to all files then find your exe)
  • Then after that press open then your minecraft will open

Issues and how to fix them

  • The minecraft directory is not there, if that happens then press edit profile then find and locate your data folder in file explorer then right click it then press properties
    • Also in the edit profile window tick the Game directory box
    • Now a window should open, so you will Select the text by dragging in the Location Line then paste it in the Game directory box then include this \.minecraft or paste it in the Game directory box
  • Then you are done!

Credits

This part was made by HiWiki! If there is information that is not here, then I did not made it, then also PM so I can restore it If there's any problem PM me and i'll help you (But not all the time) The original source can be found in this thread.

I hope this part helps you!

Changing the launcher file to use an autorun.inf

If you are using an autorun.inf instead of using

set APPDATA=%CD%\data
bin\minecraft.exe

or

set APPDATA=%CD%\data
bin\minecraft.jar

change the file to this:

set APPDATA=Minecraft portable\data
cd Minecraft portable\drive\
Minecraft.jar


Video Tutorial

A video tutorial showing the step-by-step procedure on how to make Minecraft portable and run it from a USB thumb drive without Java installed


Advertisement