This is a simple Minecraft Fabic mod that adds a configurable zoom key.
There are other mods that have this same feature but this is my first mod and I'm using this as an excuse to learn Minecraft modding.
By default the C key is mapped for zooming (as with Optifine) but you can change this in the Controls settings of Minecraft.
This is a client-side mod and so doesn't require Fabric on the server.
gradle.properties
and increase mod versionfabric.mod.json
is using the correct target version of Minecraft and fabricloader
.\gradlew vscode
.\gradlew build
If there is a loom version error at 4 above, update build.gradle
with the latest version from the example mod template here: https://github.com/FabricMC/fabric-example-mod/blob/master/build.gradle