To enable OptiFine on your selected pack, it is necessary to refer to the table below and identify which mods must be uninstalled beforehand.
Do note if you are using Fabric Loader you need a mod called OptiFabric but if you are using Forge make sure you are using the recommend version that Optifine is built for
|All The Fabric 2||All The Fabric 3||All The Fabric 4|
Kingdoms of the Valley
|Sodium Extra||Sodium Extra||Lithium|
Entity Culling Fabric/Forge
|Phosphor||Phosphor||Entity Culling Fabric/Forge|
|Custom Entity Models (CEM)|
|Reese's Sodium Options|
If you're experiencing issues still with Optifine, have you considered using an alternative? One option to consider is Rubidium, which offers support for MC 1.16.5 and newer.
You can check it out here: https://www.curseforge.com/minecraft/mc-mods/rubidium
If you're interested in using shaders with Rubidium, you'll also need to download Oculus, which is fully compatible with Rubidium.
You can find Oculus here: https://www.curseforge.com/minecraft/mc-mods/oculus
We hope these suggestions help you enhance your Minecraft experience. Let us know if you have any further questions or concerns.