Take the 2-minute tour ×
Arqade is a question and answer site for passionate videogamers on all platforms. It's 100% free, no registration required.

I know how to set the Minecraft offline mode player name via:

Java -Xms512m -Xmx1024m -cp "%APPDATA%\.minecraft\bin\*"
     -Djava.library.path="%APPDATA%\.minecraft\bin\natives"  
      net.minecraft.client.Minecraft "MyName"

How do I pass more parameters to the Minecraft jar file? For instance, I would like to pass the directory parameter to the jar.

Also is it possible to make it so that the above line is executed through a Java applet?

Any help is much appreciated :)

share|improve this question
    
This article may help: en.kioskea.net/faq/…. It discusses changing the directory. –  Jake King Mar 3 '12 at 2:52
    
why would you want to launch via applet? you already can do that at minecraft.net –  Aidan Mueller Mar 8 '12 at 17:05
    
Shouldn't this question be on StackOverflow or something of the sort? Like maybe SuperUser? –  Jeffrey Lin Oct 30 '12 at 17:28

2 Answers 2

Disclaimer: I did write the tool I'm going to suggest to use. So, yes, this is shameless self-promotion. And no, this does not include any jars from Mojang, it is a stand-alone launcher-like...uuhhh...thingy...

You can do that with the EasyMineLauncher. It will allow you to set:

  • The directory of the jars
  • The minecraft.jar directly (which allows renaming of said jar)
  • The directory of lwjgl
  • The directory of the lwjgl native files
  • The directory in which the .minecraft directory is stored
  • A username
  • Some window options
  • A server and port to directly connect to

The following drawbacks are coming with that:

  • No updates
  • No authentication (not sure if you can play on Online servers which demand authentication or not)

You can check out the Readme for some further information.

share|improve this answer

I wrote a batch script that was originally for myself to put the .minecraft folder in the same directory as the launcher. I am not really sure what you are asking since your question is a bit vague. Assuming that minecraft is in C:\minecraft and that launch-minecraft.bat is in C:\minecraft, you can put this in launch-minecraft.bat to make .minecraft be in C:\minecraft:

@ECHO OFF
CD /D %~dp0
<your code here>

where @ECHO OFF is to make the display cleaner, CD /D %~dp0 makes it so that it changes the working directory to where the batch script is located, and <your code here> is the code you want to use. Using this, your file structure should look like this (my ASCII art might be messed up on some systems):

C:
|_ Minecraft
....|_ launch-minecraft.bat
....|_ .minecraft

share|improve this answer

protected by badp Jul 6 '13 at 13:46

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.