This fork of OptiFabric is solely meant to update the 1.14.4 release to properly work with connected textures, the latest 1.14 Fabric API and the latest Fabric Loader. I've used code and fixes from later versions of the official OptiFabric to patch this version.
Full credit goes to modmuss50 for creating OptiFabric and Chocohead for maintaining it, without them this wouldn't have been possible.
Note: This project is not related or supported by either Fabric or OptiFine.
Note: This project does not contain OptiFine, you must download it separately!
- Officially approved for 1.14.4 speedrunning as long as it's used without Fabric API
- Works great with texture packs that rely on 1x1 biomes, which are no longer supported on Minecraft 1.15+
After installing Fabric for 1.14.4, you will need to place the OptiFabric mod jar as well as the OptiFine installer in the mods folder.
Fabric Loader should be the latest version from the Fabric Website
If you need more help you can read a more detailed guide here
If you happen to find an issue and you believe it is to do with this specific version of OptiFabric and not the official OptiFabric, OptiFine or a mod please open an issue here
Add the following to your build.gradle
repositories {
maven { url 'https://jitpack.io' }
}
dependencies {
modCompile 'com.github.Sjouwer:OptiFabric-1.14.4-Updated:v0.7.3'
}
Put the standard Optifine jar in /run/mods
Class export can be enabled using the following VM Option, this will extract the overwritten classes to the .optifine folder, useful for debugging.
-Doptifabric.extract=true
This would not have been possible without Chocohead's Fabric-ASM.
- The mod looks for an optifine installer or mod jar in the current mods folder
- If it finds an installer jar it runs the extract task in its own throwaway classloader.
- The optifine mod jar is a set of classes that need to replace the ones that minecraft provides.
- Optifine's replacement classes change the name of some lambada methods, so I take a good guess at the old name (using the original minecraft jar).
- Remap optifine to intermediary (or yarn in development)
- Move the patched classes out as they wont do much good on the classpath twice
- Add optifine to the classpath
- Register the patching tweaker for every class that needs replacing
- Replace the target class with the class that was extracted, also do some more fixes to it, and make it public (due to access issues).
- Hope it works