你可以帮助我们来翻译此条目,但请勿使用机器翻译。
自从这个 Wiki 可以被任何人编辑任何页面后,建议你不要使用这个脚本,而将它作为你的指导手册那样编写这个页面。
这个教程解释了如何在便携式驱动器(Thumb、Flash 或 USB)上运行 Minecraft。你在使用不同的电脑上使用相同的游戏数据(世界、保存的数据、资源包、服务器等)时这很有用,因为游戏数据将会始终保存在便携式驱动器中。
先决条件
你需要:
- 一个最少拥有 512MB 内存的便携式驱动器。你将会需要更多的空间在驱动器上储存你的 Minecraft 存档。
- 一个运行着 Windows、OS X、或任何 Linux 的发行版的电脑,这台电脑要符合 Minecraft 配置运行需求。
步骤
安装了 Windows 的电脑
准备工作
因为 Minecraft 需要安装多个文件,我们将会收集 Minecraft 运行所有的所需文件,并在便携式驱动器中分好类,以方便寻找。请注意,如果你不正确的按照下面的指示做,那么 Minecraft 可能会崩溃或启动失败。Windows 对所有的文件和文件夹名称的大小写都很敏感。
- 将便携式驱动器插入到你的电脑中,并打开它。
- 新建一个文件夹,将其命名为 Minecraft Portable(或其他你选择的名字,名字不能含有中文字符),并进入文件夹。
- 在这个文件夹里,新建2个文件夹,并分别命名为 Launcher 和 Data。
- 注:这些文件夹必须有确切的名称,因为我们将在以下步骤中使用它们。
- 现在在驱动器上有3个文件夹:在 Minecraft Portable 里面的 Launcher 和 Data。
启动
往便携式驱动器中添加启动器/客户端:
- 下载 Minecraft launcher。
- 你可以在 Minecraft 下载页 中下载它。
- 确保你使用了“Minecraft for Windows (alternative)” 版本,这可以在“Show all platforms”页面中找到。
- 将 Minecraft.exe 复制到已经创建的 Launcher文件夹。
数据文件
此部分教程将会指导你如何将游戏数据(世界、储存的数据、资源包、服务器等)复制到便携式驱动器中。
如果你不想复制你的游戏数据,你可以跳过这个部分。
所有的游戏数据都必须在 .minecraft 文件夹里。
- 按下 ⊞ Windows + R
- 输入 %APPDATA% 并点击确定。
- 查找 .minecraft 文件夹,并复制它。
- 将复制的文件夹粘贴到 Data 文件夹。
设置
现在所有的数据文件都在这里了,我们需要告诉 Windows 将 Minecraft 引导到在便携式驱动器的文件上。为了达成这个目标,我们需要创建一个批处理文件。
- 打开记事本或一个简单的文字编辑器。
- 按下 ⊞ Windows + R。
- 键入 notepad 并点击确定。
- 在文字编辑器中复制并粘贴下列文字:
set APPDATA=%CD%\Data<br> Launcher\Minecraft.exe
- 如果你愿意使用 minecraft.jar,使用下列文字代替:
set APPDATA=%CD%\Data<br> Launcher\Minecraft.jar
- 现在点击 文件 > 另存为...
- 导航到你的 Minecraft Portable 文件夹(不是Launcher 或 Data)。
- 命名这个文件为 "StartMinecraft.bat"。
- 双击运行它。如果要修改这个文件,请右击这个文件,并点击“编辑”。
开始游戏
- 一旦设置完成后,你就可以通过运行已经创建的 StartMinecraft.bat 文件来启动 Minecraft 了。
- 当启动器出现时,点击 Play 开始游戏。
安装了 Linux 的电脑
我们要确定便携式驱动器在 /dev/sdb1 中,并且 Minecraft 被安装在 ~/games/.minecraft
- 注:目录名称可能不同,这取决于你将 Minecraft 安装到的目录。
在一个 Terminal 中运行下列命令(确保以管理员方式运行,或者使用 sudo):
umount /dev/sdb1 mkdir /media/minecraft mount /dev/sdb1 /media/minecraft mkdir /media/minecraft/games # 如果你的 USB 中有一个储存游戏的文件夹,那么可以跳过该步骤。 cp - rn ~/games/.minecraft /media/minecraft/ # 这可能需要花费一些时间。 cd umount /dev/sdb1 rm /media/minecraft # 双击以确保你的 USB 已经安装!
在此之后,如果你想游玩 Minecraft,只需要在 Terminal 中输入下列命令。(你还是需要超级用户权限)
umount /dev/sdb1 mkdir ~/games # 如果游戏文件夹在根目录里,那么可以跳过。 mount /dev/sdb1 ~/games # 你将不能够玩任何储存在 ~/games 目录里的游戏。
运行你的 Minecraft 启动器并开始游玩。
安装了 OS X 的电脑
这部分并不是真的是让 Minecraft 在便携驱动器上运行,因为它需要在你每次进行游戏时复制游戏数据到便携驱动器上面。
设置
- 寻找你的 Minecraft 文件。当在搜索界面时按下 Command+Shift+G ,然后复制 ~/Library/application support/minecraft 到对话框中。
- 将在你的 application support 文件夹里的 minecraft 文件夹复制。
- Insert in your portable drive and make 2 folders in it: 插入你的便携驱动器,并新建2个文件夹:
- data 和 launcher
- 将 minecraft 文件夹粘贴到便携式驱动器的 “data” 文件夹中。
- 拖动你的启动器到“launcher”文件夹。
- 移除你的便携式驱动器。
开始游戏
一旦完成设置后,你就可以在另一台 Mac 上测试你的 Minecraft 是否可以运行了。
- 将便携式驱动器插入到另一台要测试的 Mac。
- 打开 launcher 文件夹,并移动 Minecraft launcher 到你的 Applications 文件夹。
- 双击启动器来运行它。在 Minecraft 加载后退出。
- 转到 Users/USERNAME/Library/Application Support
- 在 “Application Support”中,删除 minecraft文件夹。
- 将便携式驱动器里的 data 文件夹里面的 minecraft 文件夹移动到桌面。
- 将该文件夹从桌面移动到 application support。
- 再次运行 Minecraft。
补充注释
注:如果你往便携式驱动器里安装资源包或 Mod,那么当有响应的指示让你复制文件时,你就需要使用到你的拇指驱动器里面的 .minecraft 文件夹。 注:该方法同样适用于 Dropbox、Google Drive 和 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
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)
- 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)
- 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
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||