ViewLock
ViewLock is a Fabric utility that holds the camera's view in place along chosen axes, so the player can move without the view drifting.
What it does
Toggling a key freezes the view along a chosen axis: the X axis for up and down, the Y axis for left and right, or both at once. The lock applies only to the directions selected, so the rest of the camera stays free. Default keys are U for the X-axis lock and Y for the Y-axis lock, and both can be rebound in the controls menu.
The mod is a fork updated to 26.2, and it is open source under the MIT License. The original project is no longer maintained, and this fork is meant to keep up with the latest Minecraft Java Edition release. Fabric API is optional and is not needed for the core lock behaviour. Client-side only, so servers and other players need nothing installed, and the mod is published for 1.21.10 – 26.3 with 1.2.6 for 26.3 as the latest file.
Key features
Axis-specific view lock
A toggle holds the camera along only the vertical or only the horizontal direction, while movement on the other axis stays unchanged.
Combined lock
One key locks the view along both axes at once, keeping the camera fixed in place while the player moves.
Rebindable keys
Both lock toggles appear in the controls menu, so the default U and Y keys can be changed to any free key.
Fork kept current
The fork tracks the latest game release, while the original project stopped receiving updates.
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Requirements
Dependencies declared by the latest file for each loader.
Optional 1
Use cases
Who it’s for: Players who want a steady camera in Fabric worlds, including single-player and multiplayer clients, since the mod runs on the client alone.
How it compares
MacUtils is a Fabric client mod under the MIT License, published for 1.21.1 – 26.1.2, and it bundles several utilities rather than a single view lock. Slot Lock is also client-side and MIT licensed, for 1.21.11 – 26.1, but it locks inventory slots instead of the camera. Camera Lock On is client-side, open source under the GNU General Public License v3.0 only, and covers 1.21 – 1.21.11, which overlaps ViewLock only on the early builds.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| ViewLock | Fabric | 1.21.10 – 26.3 | Client-side only | 2026-09-28 |
| MacUtils | Fabric | 1.21.1 – 26.1.2 | Client-side only | 2026-05-18 |
| Slot Lock | Fabric | 1.21.11 – 26.1 | Client-side only | 2026-03-31 |
| Camera Lock On | Fabric | 1.21 – 1.21.11 | Client-side only | 2026-04-21 |
Questions
Does ViewLock need Fabric API?
Is ViewLock installed on the server?
Why is this a fork?
Which keys toggle the lock?
In the catalog
ViewLock is one of 36,990 Utility mods on ModsFinder, and one of 25,772 Utility mods for Fabric. 8,071 mods support Minecraft 26.3.
Similar mods
What the author says
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.
Official listing
- Modrinth page
- modrinth.com/mod/viewlock-fabric
- Owner
- BasicDevelopment
- Published
- 2025-12-01
- Updated on Modrinth
- 2026-09-28
- Facts verified
- 2026-10-15
