Does OptiFine work with Fabric? OptiFabric and the alternatives

Use OptiFabric for Minecraft 1.20.1, 1.20.2 or 1.20.4. Match OptiFabric Reforged to an exact OptiFine build on supported newer versions. For a fresh Fabric shader setup, start with Iris and its Sodium dependency.

A cube path forks beside still water, with one branch following the river and another crossing a stone ridge.

Fabric needs a bridge to load the original OptiFine JAR. Start with Chocohead’s OptiFabric 1.14.3 for Minecraft 1.20.1, 1.20.2 or 1.20.4. Keep the older 1.13.25 setup only if your 1.20.1 pack requires it. For modern versions, OptiFabric Reforged has separate releases that name exact OptiFine builds. If you only want shaders in a fresh Fabric instance, I'd start with Fabric's recommended Iris and Sodium route. For Minecraft 1.21.10, see the exact Iris and Sodium pair.

Check the exact game and loader versions

Open the instance you play. In Minecraft Launcher, go to Installations, open the installation's three-dot menu, choose Edit and read Version. Fabric's launcher example shows both numbers in the same field. In fabric-loader-0.15.3-1.20.4, 0.15.3 is the loader and 1.20.4 is Minecraft. The example shows where to read the numbers. The release you choose determines the required loader version.

Fabric profile with Version set to fabric-loader-0.15.3-1.20.4 above Game Directory.
Read the loader number and the Minecraft version in Version. The bridge release determines which loader you need.

In Prism or another modpack manager, check the instance's version and loader settings. This route applies to Minecraft: Java Edition. For Bedrock on Windows, phones or consoles, use its own graphics and pack options.

Find a bridge for the exact Minecraft version

OptiFabric and OptiFabric Reforged are separate projects with separate files. Start with the published file for your Minecraft version, then read its OptiFine filename and loader requirements.

MinecraftPublished Fabric bridgeOptiFine choice
1.20.1, 1.20.2, 1.20.4Chocohead 1.14.3 betaMatch the game version or use the build your pack specifies.
1.20.1 with a legacy packChocohead 1.13.25 beta with Loader 0.14.25Use the 1.20.1 build the pack specifies.
1.20.6Reforged 1.1.9J1 pre18
1.21.1Reforged 2.2.16 for 1.21.1J1
1.21.4Reforged 2.2.16 for 1.21.4J3
1.21.8Reforged 2.2.16 for 1.21.8J6 pre16
1.21.11Reforged 2.2.16 for 1.21.11J9
26.1.2Reforged 2.2.11 for 26.1.2K1 pre2
26.2Reforged 2.2.13 for 26.2K2 pre5

Chocohead’s 1.14.3 changelog records added support for Fabric Loader 0.15 and a fix for the font issue with Fabric API 0.86 and later. If your 1.20.1 pack needs 1.13.25, Fabric’s crash guide specifies Loader 0.14.25. Loader 0.15.0 and later can fail at launch with that bridge. If you use 1.13.25 for Architectury compatibility, Fabric recommends API 0.85.0 to avoid square glyphs.

For Reforged 1.1.9 on Minecraft 1.20.6, the maintainer’s requirements specify Fabric Loader 0.19.3 or newer and Java 21 or newer. The Reforged 1.21.x releases above list Fabric Loader 0.19.5 or newer and Java 21 or newer. The 26.x releases above list Fabric Loader 0.19.5 or newer and Java 25. For other 1.21.x versions, start from the maintainer's exact-version table, then open the release notes for the file you plan to use. The 26.2 release notes matter here. Reforged 2.2.13 names K2 pre5 while the general table still names pre4 for its older 2.2.11 entry.

The Reforged 2.2.16 release notes report shader crashes on Minecraft 1.21.6 and Minecraft 1.21.7. For shaders on those versions, choose the corresponding Iris file and its Sodium dependency.

The project's examples establish the pairings the maintainer lists. Other mods can change whether the instance starts. Keep a working pack intact and check the bridge in a separate instance first.

Add the two matching JAR files

Need a Fabric installation? Close Minecraft Launcher and use the Fabric Installer for your operating system. Pick the Minecraft and Loader versions you just checked. Reopen Launcher and select the new Fabric profile under Installations. To keep it separate from a working setup, use Edit to give it a different Game Directory.

  1. Download the bridge file for your Minecraft version from its own project.
  2. Get its named OptiFine JAR from the official OptiFine catalog. Click Show all versions for older releases or expand + Preview versions when you need a preview.
  3. In Minecraft Launcher, hover over the Fabric installation under Installations and click its folder icon. Put both intact JARs inside that installation's mods folder.
Minecraft Launcher installation controls with a folder icon next to Play.
Open the folder on the Fabric installation you play.

If you use Prism, choose the instance, open Edit > Mods and click Add file for the two JARs. The Prism instructions for adding local files apply to the selected instance. In the official launcher, a custom Game directory takes precedence over the default .minecraft folder.

Prism Launcher Mods controls with Add file between Download mods and Check for Updates.
In the selected Prism instance, use Add file to add the two matching JARs.

Open the Fabric installation and reach the title screen. Check the new controls in Options > Video Settings that your OptiFine build provides. Keep an Iris and Sodium setup in a separate instance. Chocohead's bridge metadata declares a Sodium conflict. If your new setup fails before the title screen, remove the two files from the test instance and compare its log with the working version.

Choose Iris and Sodium for a fresh Fabric setup

For shaders, start with the Iris file for your Minecraft version on Fabric and use its listed Sodium dependency. For rendering changes alone, use a compatible Fabric build of Sodium. For example, Iris 1.9.6's supported versions include 1.21.6, 1.21.7 and 1.21.8. Read the version list and dependency details before you choose. Compare Iris and OptiFine if the shader pack is the reason you want to switch. For connected textures, models or dynamic lights, check the OptiFine alternatives by feature.

Shaders on Fabric for Minecraft 1.21.10

Use Iris 1.9.7 for Fabric with Sodium 0.7.3 for Fabric. The Iris file lists that Sodium build as required, and both files list Minecraft 1.21.10. Put them in the same Fabric instance. Start the game and open Video Settings → Shader Packs to pick your pack.

For zoom, dynamic lights, connected textures or custom entity models, use the relevant item in Fabric's feature-by-feature list. Each mod has its own version and loader support.

Read the project type before downloading

The OptiFine for Fabric modpack packages features from Iris, Sodium and other mods. The separate OptiFabric modpack describes its own collection of graphics features. If an older tutorial sends you to a project with a similar name, check the maintainer and whether the page offers a bridge JAR or a complete modpack.