Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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?

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.

{
"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.

  • Author

wow, so i need to make a folder tree for each mod i'm using?

Isn't there an easier way to make mod profiles? (with stock launcher)

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.

  • Author

'cuz i tried using the game folder and it still loaded all the mods in the main game folder.

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.

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.

  • Author

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""

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.

  • Author

yeah thats the profile.json inside the versions folder.

like, "forge version.json"

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.