Jump to content

Recommended Posts

Posted

I am making a modpack for a server I run.

 

One of the mods I plan on using has a recommendations to put in a java parameter when starting up minecraft. Now I know how to do this in the vanilla launcher, but the question is. Is there a way so that parameters is set by default when the Mod Pack I am currently creating is shared with other people. The parameter is basically just setting minecraft to use a min of 2 GB of ram.

Posted (edited)

Yes, there is.

Solution 1.


You edit your versions.json found in the forge jar file (open it with 7-zip or something), add a line like:

"javaArguments": "-Xmx2048m",

so your versions.json looks like

  ...
  "type": "something",
  "minecraftArguments": "something",
  "javaArguments": "-Xmx2048m",
  "mainClass": "something",
  ...

now you save that file and the archive manager (like 7zip) should update that file in the forge jar.

You're set.

Solution 2.

You can use runData to ensure that your modpack will not be used when the launcher is set to a lower memory setting than your preferred setting.

Tutorial here

Edited by EvilOwl
I forgot an "o" in 2015

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...