Skip to content

Instantly share code, notes, and snippets.

@ScottoMotto
Last active October 30, 2019 23:07
Show Gist options
  • Save ScottoMotto/f5bb22e6ff5691e2465d8720ba648885 to your computer and use it in GitHub Desktop.
Save ScottoMotto/f5bb22e6ff5691e2465d8720ba648885 to your computer and use it in GitHub Desktop.
JSON patch for MultiMC for Optifine 1.14 Minecraft
{
"+tweakers": [
"optifine.OptiFineTweaker"
],
"formatVersion": 1,
"libraries": [
{
"name": "net.minecraft:launchwrapper:1.12"
},
{
"MMC-filename": "OptiFine_1.14_HD_U_F1_pre2.jar",
"MMC-hint": "local",
"name": "optifine:OptiFine:1.14_HD_U_F1_pre2"
}
],
"mainClass": "net.minecraft.launchwrapper.Launch",
"name": "OptiFine",
"requires": [
{
"equals": "1.14",
"uid": "net.minecraft"
}
],
"uid": "optifine.Optifine",
"version": "1.14_HD_U_F1_pre2"
}
@JimStoneCraft
Copy link

OptiFine_1.14_HD_U_F1_pre1.jar worked fine using this method but pre2 crashes, I have no idea why.

@ScottoMotto
Copy link
Author

ScottoMotto commented May 22, 2019

Instructions for use.

  1. Extract the Optifine jar with the installer. The file will initially be named OptiFine_1.14_HD_U_F1_pre2_MOD.jar. (or whatever your Optfine version is named)
  2. Remove the trailing _MOD from the name to make OptiFine_1.14_HD_U_F1_pre2.jar. (or whatever your Optfine version is named)
  3. Create a new 1.14 instance in MultiMC. Not 1.14.1 or 1.14.2 pre.
  4. Right click on the Instance icon in the MMC window and choose Instance Folder from the menu.
  5. Inside the Instance Folder create a new folder called "libraries".
  6. Put the Optifine jar in this folder.
  7. Back in the MMC window right click on the Instance icon and select Edit Instance from the menu.
  8. In the Version tab of the window that opens, click the Add Empty button under the Advanced section at the bottom right of the window.
  9. A dialog will open. Enter "Optifine" for the name and "optifine.Optifine" for the uid. (removing quotes ofc)
  10. Press OK to accept the changes and close the dialog.
  11. A new line will be added in the Version tab window. Select this line.
  12. Click the Edit button from the Edit section.
  13. Your system text editor for json files should launch with a window contain a few lines of text. If no editor opens then you can assign one in the Settings-External Tools-External Editors in the main MMC settings. Or use the tools in OS to assign default programs.
  14. Copy the text from this gist and paste it into the json file. If you are using a version of Optfine that is different from the one listed, copy the name of your Optifine and replace the corresponding text in the file above. When finished, close and save.
  15. You should now be able to launch and check the Options-Video Settings in Minecraft to see that Optifine is installed.

@JimStoneCraft
Copy link

You can also use Edit Instance, click "Add to Minecraft.jar" and select the extracted file (OptiFine_1.14_HD_U_F1_pre2_MOD.jar).

That does the same thing.

@ann4belle
Copy link

Extract keeps telling me to run 1.14 first. How do I force it to extract?

@ScottoMotto
Copy link
Author

IMPORTANT: To use this method you must have installed 1.14 in the Vanilla Minecraft launcher to be able to extract the file from the installer.

@fuck-shithub
Copy link

Doesn't work with 1.14.4

@fuck-shithub
Copy link

Alright, I found a fix for 1.14.4_HD_U_F2_pre1:

  1. Have Minecraft 1.14.4 installed on the default MC launcher.
  2. Run the OptiFine installer and extract, then move the extracted JAR to your instance's libraries folder and remove the "_MOD" suffix from the filename.
  3. Run the OptiFine installer again but now Install OptiFine for default MC launcher.
  4. Go to %appdata%\.minecraft\libraries\optifine\launchwrapper-of\2.1 and copy the JAR to your instance's libraries folder.
  5. Go to the Version tab for your instance in MultiMC.
  6. Add Empty
    Name: OptiFine
    uid: optifine.Optifine
  7. Edit it
  8. Paste the following into the file
{
    "+tweakers": [
        "optifine.OptiFineTweaker"
    ],
    "formatVersion": 1,
    "libraries": [
        {
            "MMC-filename": "launchwrapper-of-2.1.jar",
            "MMC-hint": "local",
            "name": "optifine:launchwrapper-of:2.1"
        },
        {
            "MMC-filename": "OptiFine_1.14.4_HD_U_F2_pre1.jar",
            "MMC-hint": "local",
            "name": "optifine:OptiFine:1.14.4_HD_U_F2_pre1"
        }
    ],
    "mainClass": "net.minecraft.launchwrapper.Launch",
    "name": "OptiFine",
    "requires": [
        {
            "equals": "1.14.4",
            "uid": "net.minecraft"
        }
    ],
    "uid": "optifine.Optifine",
    "version": "1.14.4_HD_U_F2_pre1"
}

And you're good to go!

@maop
Copy link

maop commented Jul 30, 2019

This is what works for me:

  1. Extract Optifine and let it save as OptiFine_xxxx_MOD.jar (yes you have to make a 1.14.4 profile with the Minecraft.jar official launcher first)
  2. Go to MultiMC and Edit Instance
  3. In Version section click Add to Minecraft.jar and select OptiFine_xxxx_MOD.jar
  4. that's it, launch!

MultiMC saves the optifine's jar in /jarmods and creates the patch at /patches

I just tested with OptiFine_1.14.4_HD_U_F2.jar and everything worked just fine.

@pjlasl
Copy link

pjlasl commented Oct 30, 2019

This is what works for me:

  1. Extract Optifine and let it save as OptiFine_xxxx_MOD.jar (yes you have to make a 1.14.4 profile with the Minecraft.jar official launcher first)
  2. Go to MultiMC and Edit Instance
  3. In Version section click Add to Minecraft.jar and select OptiFine_xxxx_MOD.jar
  4. that's it, launch!

MultiMC saves the optifine's jar in /jarmods and creates the patch at /patches

I just tested with OptiFine_1.14.4_HD_U_F2.jar and everything worked just fine.

I have been looking for a solution and this worked perfect for me. It worked for OptiFine_1.14.4_HD_U_F4.jar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment