Where Does OptiFine Store Settings and Shader Packs?
OptiFine optionsof.txt, shaderpacks and config in .minecraft.
Last updated
OptiFine files its famously long option list in optionsof.txt at the .minecraft root, with shader packs and dynamic lights in sibling folders. Fabric-era alternatives use different files, so keep them straight.
Shader packs are the heavy part. Back up the shaderpacks folder separately from the tiny settings file.
Where OptiFine stores this, by platform
%APPDATA%\.minecraft\optionsof.txt
Every OptiFine toggle in one text file. Shader packs live in .minecraft\shaderpacks beside it. Copy both when migrating; version mismatches between OptiFine builds ignore unknown lines harmlessly.
Frequently asked questions
Where do OptiFine shader packs go?
Into .minecraft\shaderpacks next to optionsof.txt above. They appear in Video Settings after a resource refresh.
Why did OptiFine reset my settings?
A version change rewrote optionsof.txt above. Restore your backup copy with the game closed.
Notice an outdated path? Let us know.