Pages: 1
Posted on 12-13-11, 04:14 am
Banned for being a complete idiot.

Karma: 529
Posts: 627/987
Since: 07-09-11
It's actually pretty simple
What Minecraft does is it gets the value of the environmental variable APPDATA, then creates a folder .minecraft (or uses it if it's currently there) and uses and creates data there.
So basically, you just have to force a value to be sent to Minecraft when it requests for the environmental variable APPDATA, which can be done in Windows by set (and start to start minecraft).
So, for Windows users, you can use this template to change the minecraft data directory:
set APPDATA=(Absolute or Relative path to get .minecraft) start (Commands to run the minecraft launcher)


Here's mine for an example:
@echo off Title Minehack Portable set APPDATA=%CD%\ start javaw -jar Minehack.jar

So, I set my APPDATA path to be the current directory of the .bat file, which means a .minecraft directory will appear in the same directory as the .bat. And, I run the Minecraft launcher (Minehack.jar) with javaw. It's important to do start because otherwise the value you specified for APPDATA won't be enforced on Minecraft (javaw).
Posted on 12-13-11, 05:07 am
Roy Koopa


Karma: 4011
Posts: 1094/2722
Since: 06-26-11
Uhm....er.... And for what is this useful?
_________________________
See a lots of creative DS Hacking here
If you want to support me, you might check out my Patreon Page : )
Posted on 12-13-11, 06:31 am
Banned for being a complete idiot.

Karma: 529
Posts: 628/987
Since: 07-09-11
Portable Minecraft.
You can move your data around with little effort from computer to computer.
Posted on 12-13-11, 07:28 am
Porcupo
Did you win the game?

Karma: 211
Posts: 177/322
Since: 06-28-11
The only problem is that you can't create a "Portable GPU" xD

I made portable minecraft, only to figure out It could not run anywhere because nobody had a good GPU... xD
Posted on 12-13-11, 02:52 pm
AxewAxew

Karma: 673
Posts: 84/583
Since: 07-02-11
I could probably play portable Minecraft at school, as I believe the school computers' GPUs can handle it... Sorta.

I don't know why I would want to do this, though.
Though, that is quite a nice tip if I'll ever need to do it.
Pages: 1