How to add OptiFine to a CurseForge or Modrinth modpack
Put the official OptiFine JAR in the mods folder of your compatible Minecraft Java Forge instance. Open that folder from the three-dot menu in CurseForge or Modrinth App.
Put the official OptiFine JAR in the mods folder of your compatible Minecraft Java Forge instance. Open that folder from the three-dot menu in CurseForge or Modrinth App.
Start with matching conditions and the FPS limiter, then check the quality features your world and resource pack use.
Choose a supported game and loader first. Sodium uses Iris for shaders; OptiFine offers its own graphics and shader settings within each build.
Check the exact Java Edition profile first. If Minecraft quits, save that installation's log. If it opens, use the matching checks for missing OptiFine controls, shaders, flicker or FPS.
Save logs/debug.log from the Forge instance that crashed. Check the exact Minecraft, OptiFine and Forge builds before you repeat the failed step in a separate copy.
Follow the same-site Mirror route, check the exact JAR name, and know when to stop before opening a download.
Start with the I6 release for a clean Minecraft 1.20.1 installation. If you use Forge, match I6 to 47.2.18 or I5 to 47.0.35.
Use J7 pre11 for Minecraft 1.21.10 with Forge 60.1.0. Compare that preview with the exact 1.21.8 and 1.21.9 options and their shader limits.