This is a simple Minecraft Fabic mod that adds a configurable zoom key.
If you're a content creator, it would be super nice of you if you could mention the mod and point people to my channel here: https://youtube.com/logicalgeekboy
The motivation for this particular mod is that Minecraft 1.16 is out and I personally use Optifine which includes this same zoom feature. At the time of writing,
Optifine is being updated but I would like to have the zoom feature for when I make Minecraft videos. It seems that in addition to this, Optifabric is no longer going to be updated which means we can't run Optifine with other Fabric mods. I will probably be moving over to Sodium with some additional mods (like Logical Zoom).
By default the C key is mapped for zooming (as with Optifine) but you can change this in the Controls settings of Minecraft. If you already have the C key bound then you'll need to remap it before it'll work :o)
NOTE: This mod requires Fabric API mod: https://www.curseforge.com/minecraft/mc-mods/fabric-api