
Modrinth · Minecraft mod
ViewLock
This mod is a fork of View Lock by FamroFexl that is updated to 26.2. If the original project is updated, this will no longer be maintained.
Quick answer
Which ViewLock release matches 26.1?
ViewLock 1.2.4.2 targets 26.1, 26.1.1, 26.1.2 with Fabric. It must be installed on the client. Do not install it on the dedicated server. All 1 required mods have matching files.
Where it goes
Is ViewLock required on the client, server, or both?
It must be installed on the client. Do not install it on the dedicated server.
This file is marked client-only.
What else does ViewLock 1.2.4.2 need?
1.2.4.2 on 26.1. Every mod below is checked against that same setup.
Install Fabric API first. We found matching files for this game-version and loader setup.
We only count dependency files that match this setup. A file for another loader does not fill the gap.
Before you install it
Add ViewLock without breaking your instance.
Built for ViewLock 1.2.4.2 on 26.1. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use 1.2.4.2. It targets 26.1, 26.1.1, 26.1.2 with Fabric; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
Install Fabric API first. We found matching files for this game-version and loader setup.
- 03
Put it on the correct side
It must be installed on the client. Do not install it on the dedicated server.
- 04
Pick the file you checked
Use the “Get this file” button beside 1.2.4.2. It opens that exact file at the source.
About this project
What does ViewLock add?
This mod locks your view to a specific direction and can be adjusted to only lock up and down or left and right. The view can also be locked to the closest x and y axes using a key. This is a fork of the original mod intended to maintain support of the latest release of Minecraft Java Edition.
See https://modrinth.com/mod/view-lock for original description of Mod. Here's their buymeacoffee link: https://buymeacoffee.com/famrofexl.
Requrements:
Usage:
Align your view to whichever x and y axis you would like and press Y. This will lock your view to those axes. To unlock/lock your up and down movement, press U. To unlock/lock your left and right movement, press I. Alternatively, just press U or I to unlock/lock your left and right or up and down movement.
Examples:
- When using an afk farm, sometimes keeping the view steady and consistent can be difficult, especially when having to place blocks. This mod fixes that problem by allowing the user to configure their view to specific positions.
- Repetitively placing down blocks can be quite tedious. Sometimes when placing long lines of blocks, the player will start to drift from side to side, requiring you to realign yourself. This mod allows you to align yourself to a specific axis so you don't have to deal with realignment.
Commands:
/vl <pitch: RelativeAngle> [yaw: RelativeAngle]- Precisely (and relatively) position your view to a specific pitch and yaw./vl block <location: vec3> [track]- Lock (and optionally track) your view to a specific block (with relative positioning)./vl block view [track]- Lock (and optionally track) your view to the block in your crosshair./vl unlock- Unlock your view without losing your state./vl relock- Relock your view without losing your state.
Disclaimer: I don't typically use these when I use this mod, so if they don't work, feel free to submit an issue on the GitHub page, or just PR it yourself. I am not so prideful about this fork that I won't accept PRs.
Controls (Configurable):
- Y (default): Toggle locks and unlocks the view to the closest x and y axes
- U (default): Toggles locking on up and down view movement (x axis)
- I (default): Toggles locking on left and right view movement (y axis)
Project description from Modrinth.
Pick your setup
ViewLock by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
26.3
1 loader build26.2
1 loader build26.1.2
1 loader build26.1.1
1 loader build26.1
1 loader build1.21.11
1 loader build1.21.10
1 loader buildCheck the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
ViewLock versions and loaders
1.2.4.2
viewlock-fabric-26.1-1.2.4.2.jar
31 Aug 2026
Looking for an older file? The official Modrinth project page is in Resources.