OptiFabric

OptiFabric

9M Downloads

OptiFabric has incompatible with Minecraft 1.16.5

perssphere07 opened this issue ยท 12 comments

commented

Latest OptiFabric has incompatible with Minecraft 1.16.5. Can you fix it?

commented

Since the only real changes in 1.16.5 are fixes to server and client crashing bugs, should it probably be enough to just add 1.16.5 to depends.minecraft
https://github.com/Chocohead/OptiFabric/blob/llama/src/main/resources/fabric.mod.json#L36

commented

the json goes inside the jar file (jar files are just renamed zip files)

commented

this is a step by step
(you will need to have wirar installed)
first open your folder where optifine fabric is located (likely the mods folder)

create a new folder in that folder name it anything you want (its a temp folder we will delete after we are done)

move the optifine fabric into that temp folder

right click on the optifine fabric and select extract files here

so you will see so mnay files come open the fabric.mod.json

in that go to depends and add 1.16.5 like this

https://pastebin.com/raw/NZzAWRjU

now save it and then select every thing in that temp folder you made except the optifine fabric jar

make archive it into a zip/rar format

go to this website

if you made into zip https://convertio.co/zip-jar/

if rar https://convertio.co/rar-jar/

now upload it and wait for it to convert and done download it put it into mods folder

commented

this is a step by step
(you will need to have wirar installed)
first open your folder where optifine fabric is located (likely the mods folder)

create a new folder in that folder name it anything you want (its a temp folder we will delete after we are done)

move the optifine fabric into that temp folder

right click on the optifine fabric and select extract files here

so you will see so mnay files come open the fabric.mod.json

in that go to depends and add 1.16.5 like this

https://pastebin.com/raw/NZzAWRjU

now save it and then select every thing in that temp folder you made except the optifine fabric jar

make archive it into a zip/rar format

go to this website

if you made into zip https://convertio.co/zip-jar/

if rar https://convertio.co/rar-jar/

now upload it and wait for it to convert and done download it put it into mods folder

This worked perfectly thank you very much ๐Ÿ‘

commented

If this is our first time installing it where do we put the file? (The Json)

commented

I have another method if you have 7-Zip and is familiar with it:

  1. Download optifabric-1.8.16.jar from https://www.curseforge.com/minecraft/mc-mods/optifabric/files.
  2. Open the file with 7-Zip.
  3. In 7-Zip, right-click on fabric.mod.json and choose Edit.
  4. Add "1.16.5" into the file, and do not forget to add a , (comma) to "1.16.4"
  "depends": {
    "fabricloader": "\u003e\u003d0.8.0",
    "minecraft": [
      "1.16.1",
      "1.16.2",
      "1.16.3",
      "1.16.4",
      "1.16.5"
    ],
    "mm": "\u003e\u003d2.0"
  },
  1. Save the file and close the text editor.
  2. 7-Zip will ask whether you want to "update it in the archive", click OK.
  3. Now, the new JAR file should be ready.
commented

Im a bit confused I got most of that to work. I saved the text and closed notepad but i got no sort of notification about "When 7-Zip asks whether you want to "update it in the archive", click OK." And closing it left it as a folder and not as a jar file. Im confused how to make it into a jar

commented

Im a bit confused I got most of that to work. I saved the text and closed notepad but i got no sort of notification about "When 7-Zip asks whether you want to "update it in the archive", click OK." And closing it left it as a folder and not as a jar file. Im confused how to make it into a jar

Maybe you extracted the JAR file, and go inside extracted folder, edit, that's not quite right.

You should use 7zip to open the JAR file directly, go find the file inside the JAR, right click, Edit, and save. Since then 7zip will ask you to update.

commented

I'm a bit confused I got most of that to work. I saved the text and closed notepad but I got no sort of notification about "When 7-Zip asks whether you want to "update it in the archive", click OK." And closing it left it as a folder and not as a jar file. I'm confused how to make it into a jar

@kyrkis Really? That's weird. 7-Zip would not extract/unzip anything unless you specify that to 7-Zip.

Of course, you can turn that folder into a ZIP file and convert it to JAR file using online services provided by @gnsc4.

commented

If you guys are having issues here is a modified jar (in a zip, extract the zip).
optifabric-1.8.16patched.zip
Thanks to #155 (comment)

commented

Open the jar with 7zip. extract optifabric.mod.json.
find where it lists the versions. add 1.16.5

im up and running and its fine.

commented

use 7-zip or winrar to extract the jar to a folder (make sure it's using the extract to optifabric-[version]\ option if using the windows shell right-click menu options) and then update the json (instructions below), delete everything in the jar (keep a file in there temporarily so it doesn't delete the jar and name it something like deleteme so you know which file to delete after), and copy the contents of the extracted folder into the empty jar and delete your temporary file. if you feel like it, you can make a separate jarfile and copy everything into it, or alternatively, drag the json out of the jar, delete the json still in the jar, update the extracted json, and drag the json back into the jar. optifabric should now work as intended.

area to edit:
open the file named fabric.mod.json (use any text editing tool, i use visual studio code, but the default notepad program works too if you don't want to install extra software)

modify this section :

"depends": {
    "fabricloader": "\u003e\u003d0.8.0",
    "minecraft": [
      "1.16.1",
      "1.16.2",
      "1.16.3",
      "1.16.4"
    ],
    "mm": "\u003e\u003d2.0"
  },

add this to the file:

"1.16.4",
"1.16.5"

the section should now look like this:

"depends": {
    "fabricloader": "\u003e\u003d0.8.0",
    "minecraft": [
      "1.16.1",
      "1.16.2",
      "1.16.3",
      "1.16.4",
      "1.16.5"
    ],
    "mm": "\u003e\u003d2.0"
  },