ViewLock

ViewLock

This mod is a fork of View Lock by FamroFexl that is updated to 1.21.10. If the original project is updated, this will no longer be maintained.

by
296 Downloads
fabricutility
Rent Server with this Mod

About this Mod

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)

Available Versions

ViewLock-Fabric 1.2.3release
MC 1.21.10fabric
December 1, 2025

How to Install ViewLock on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set fabric Loader

In the panel under "Egg", select the fabric loader and matching Minecraft version (1.21.10).

3

Install Mod

Open the mod browser in the dashboard and search for "ViewLock". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

fabric

Minecraft Versions

1.21.10

Server-side

Unsupported

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

ViewLock server crashes on startup – what to do?

Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21.10). You can switch loaders with one click in the panel.

Is ViewLock compatible with fabric?

ViewLock officially supports fabric for Minecraft 1.21.10. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with ViewLock – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if ViewLock consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install ViewLock with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
MIT License
Server-side
Unsupported

Supported Versions

1.21.10