Jump to content

Recommended Posts

Posted

From what I findo out, some say that it should be used in the <profile>.json file

under "minecraftArguments": " " like:

"minecraftArguments": " --modListFile file1.json "

it must have a filePath assigned like --modListFile ModList1.json and such file under ".\.minecraft\ModList1.json"

and it must contain:

{
  "repositoryRoot": "/home/squiddev/mods",
  "modRef": ["computercraft.jar", "cctweaks.jar"]
}

but the information source was not 100% sure of that.

Can anyone help me on that?

Posted

The root object of the list file can contain three properties:

  • repositoryRoot

    (string) - The root directory. All mod paths are relative to this.

  • modRef

    (array of strings) - An array of mod references to load.

  • parentList

    (optional string) - The path of the parent list, if any. If specified, FML will load this list as well as the current one. This can be chained (e.g. list A inherits from list B, which inherits from list C), but not looped (e.g. list A inherits from list B, which inherits from list A).

 

Each mod reference is a string in the following format:

"<group>:<name>:<version>[:<classifier>]"

 

The path of the mod JAR is built from these components in the following format: <repositoryRoot>/<group>/<name>/<version>/<name>-<version>[-<classifier>].jar

 

The square brackets denote an optional part; if no

classifier

is specified, it won't be used in the path.

 

Any period (

.

) in the

group

will be replaced with a directory separator.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Posted

{
"repositoryRoot": "jsonmods",
"modRef": [
	"dan200:ComputerCraft:1.78",
	"org.squiddev:CCTweaks:1.8.9-0.3.2"
]
}

 

This will load two mods: <gameDir>/jsonmods/dan200/ComputerCraft/1.78/ComputerCraft-1.78.jar and <gameDir>/jsonmods/org/squiddev/CCTweaks/1.8.9-0.3.2/CCTweaks-1.8.9-0.3.2.jar (where <gameDir> is the game directory specified in the client's launcher profile or the server's directory).

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Posted

You can use the

--mods

command line argument (a comma-separated list of mod files) or just create a separate game directory for each profile.

 

I think the mod list file was mainly intended for modpack launchers (e.g. ATLauncher) to store their mods in a central location shared between all instances/profiles and still only load the mods for the launched pack.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Posted

about this "--mods" arg how do use it?

 

Like I said, it's a comma-separated list of mod files to load. There's not much more to it than that.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Posted

like "--mods mod1.jar, mod2.jar, mod3.jar," ?

 

--mods "modsDir1/mod1.jar,modsDir1/mod2.jar,modsDir2/mod3.jar"

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Posted

btw. i put that here right?

 

"minecraftArguments": "--username ${auth_player_name} --version ${version_name} --gameDir ${game_directory} --assetsDir ${assets_root} --assetIndex ${assets_index_name} --uuid ${auth_uuid} --accessToken ${auth_access_token} --userProperties ${user_properties} --userType ${user_type} --tweakClass net.minecraftforge.fml.common.launcher.FMLTweaker --mods "modsDir1/mod1.jar,modsDir1/mod2.jar,modsDir2/mod3.jar""

Posted

Assuming that's in a JSON file, you need to escape the quotation marks for the

--mods

argument by placing a backslash in front of them:

 

"minecraftArguments": "--username ${auth_player_name} --version ${version_name} --gameDir ${game_directory} --assetsDir ${assets_root} --assetIndex ${assets_index_name} --uuid ${auth_uuid} --accessToken ${auth_access_token} --userProperties ${user_properties} --userType ${user_type} --tweakClass net.minecraftforge.fml.common.launcher.FMLTweaker --mods \"modsDir1/mod1.jar,modsDir1/mod2.jar,modsDir2/mod3.jar\""

 

Does the Mojang launcher actually support passing arguments to Minecraft like this?

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.