Skip to content

Updated to work with the latest Fabric API & Loader. A fabric mod that patches optifine into the game at runtime.

License

Notifications You must be signed in to change notification settings

dianzzz/OptiFabric-1.14.4-Updated

 
 

Repository files navigation

Important

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!

OptiFabric 1.14.4 Updated GitHub Releases

  • 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+

Installing

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

Links

Issues

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

For Mod Devs

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

Screenshots

How it works

This would not have been possible without Chocohead's Fabric-ASM.

  1. The mod looks for an optifine installer or mod jar in the current mods folder
  2. If it finds an installer jar it runs the extract task in its own throwaway classloader.
  3. The optifine mod jar is a set of classes that need to replace the ones that minecraft provides.
  4. 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).
  5. Remap optifine to intermediary (or yarn in development)
  6. Move the patched classes out as they wont do much good on the classpath twice
  7. Add optifine to the classpath
  8. Register the patching tweaker for every class that needs replacing
  9. 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).
  10. Hope it works

About

Updated to work with the latest Fabric API & Loader. A fabric mod that patches optifine into the game at runtime.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%