If you are trying to run "Opticraft" (OptiFine) for Minecraft 1.20+, you are fighting an uphill battle. However, the runs flawlessly with the right tweaks.
If you are trying to play on the server, remember that you do not "download" Opticraft itself; you add it as a multiplayer server. Open your Minecraft launcher and launch the game. Select Multiplayer > Add Server . Enter smp.opticraft.net as the IP address. General Minecraft Launcher Fixes for Windows 7 Download and Install the Minecraft Launcher
Windows 7 lacks certain Universal C Runtime (UCRT) updates and DirectX features that Minecraft’s rendering engine (LWJGL) now requires. This leads to glfwError 65542 or Failed to create a pixel format errors.
Minecraft and its optimization mods rely on C++ libraries to communicate with your hardware. Windows 7 often misses these updates.
Windows 7’s older window manager conflicts with OptiFine’s rendering.