Mods/Installing OptiForge/Manual Install/Fresh
This guide will help you install the latest Minecraft Forge and OptiFine.
Step 1. Finding your .minecraft directory
In many Linux file managers, dot files (files and folders prefixed with a period
.) will be hidden. In Nautilus, press Ctrl+H to toggle the display of dot files.
Step 2. Download Minecraft
First you must download a copy of vanilla Minecraft. Skip this step if you have already downloaded the Minecraft version you would like to use. You can either choose to use the Minecraft launcher or download it manually.
- Download the official Minecraft launcher from here, and then open it. In some Linux distributions, you must first set the file's executable bit if opening it with xdg-open.
- (Optional) If you want to use a specific version other than the latest version, click the hamburger icon, then "Launch options", then "Add new". Finally, click on your desired Minecraft version from the drop down menu labeled "Version". Save profile when done.
- Click "Play". This will download a copy of your chosen Minecraft version. You can then exit out of Minecraft and continue.
Step 3. Copy to a new Minecraft version
- In the
versionsdirectory of your .minecraft folder, create a copy of your selected vanilla Minecraft version (e.g.
1.12.1) and give the copy a new name. The name of this folder will be the name of your new Minecraft version. For this guide we'll use
cp -R "$HOME/.minecraft/versions/1.12.1" "$HOME/.minecraft/versions/1.12.1 OptiForge"
- You must also rename the .jar and .json files to match. Rename the new "1.6.2.jar" to "1.6.2 OptiForge.jar", and "1.6.2.json" to "1.6.2 OptiForge.json".
Your directory structure should now look something like this:
- 1.12.1 OptiForge
- 1.12.1 OptiForge.jar
- 1.12.1 OptiForge.json
- 1.12.1 OptiForge
- You now need to modify the
.jsonfile and replace the old version name with the new one. Open the
.jsonfile in your favorite modern text editor. It is not recommended to use Windows Notepad.
- Look for
1.12.1is the vanilla version you chose to start with. Change
1.12.1to the version name you chose:
"id":"1.12.1 OptiForge". Save the file when you're done.
python -c "import sys,json;v=sys.argv;f=open('$HOME/.minecraft/versions/\ '+v+'/'+v+'.json','r+');d=json.load(f);d['id']=v;f.seek(0);f.write(json.dum\ ps(d,sort_keys=True,indent=2));f.truncate()" "1.12.1 OptiForge""
1.12.1 OptiForgeat the end with your version name if it differs.
Step 4. Install Forge and OptiFine into the new version
You will now download Forge and OptiFine into the
.json file. The rest of this guide is continued on the next page. You will use the new Minecraft version you just created as the existing version in that guide.