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.
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.
By default the C key is mapped for zooming (as with Optifine) but you can change this in the Controls settings of Minecraft.
- Download and install Fabric from here: https://fabricmc.net/use
- Download Fabric API mod from here: https://www.curseforge.com/minecraft/mc-mods/fabric-api and place in your mods folder.
- Download Logical Zoom from https://www.curseforge.com/minecraft/mc-mods/logical-zoom/files and place in your mods folder.
- Start Minecraft and go to Options > Controls > Logical Zoom to change the hotkey.
This is a client-side mod and so doesn't require Fabric on the server.
- Visit https://modmuss50.me/fabric.html for latest settings
- Paste settings into
gradle.properties
and increase mod version - Check
fabric.mod.json
is using the correct target version of Minecraft andfabricloader
- Run
.\gradlew vscode
- F5 and test the mod is working
- Run
.\gradlew build
- Publish /build/libs/logical_zoom-x.jar
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