ModsFinder

Lock On

by Maxmani

Lock On is a Fabric mod that lets players lock their view onto a nearby monster and keep it there during a fight.

FabricClient-side onlyMIT LicenseOpen source1.20 – 1.20.4

What it does

Lock On is a client-side only mod, so only the player's client needs it and servers can run without it. It is ported to Fabric and published for 1.20 – 1.20.4, with the latest file targeting 1.20.4. Cloth Config API and Fabric API are required, and Mod Menu is optional for opening its settings screen. The source code is open source under the MIT License.

Key features

  1. Lock onto nearby enemies

    Pressing the lock key fixes the camera on a nearby hostile mob, so attacks stay aimed at it.

  2. Switch between targets

    When several monsters are close, a second key cycles the lock to another target.

  3. Automatic release

    Moving too far from the target or killing it ends lock-on mode without any extra input.

Compatibility

Latest build for each game version and loader.

1.20.41.0.1+1.20.2
1.20.31.0.1+1.20.2
1.20.21.0.1+1.20.2
1.20.11.0.1+1.20.2
1.201.0.1+1.20.2
ReleaseBetaAlphaNot available

Only full game releases are shown. This mod publishes no snapshot builds.

Requirements

Dependencies declared by the latest file for each loader.

Required 2

Fabric APILightweight and modular API providing common hooks and intercompatibility measures utilized by mods using the Fabric toolchain.
Required
Cloth Config APIConfiguration Library for Minecraft Mods
Required

Optional 1

Mod MenuAdds a mod menu to view the list of mods you have installed.
Optional

How it compares

Full comparison

NoteLock runs on the server alone and is published for 1.20.2 under the MIT License, so players need no install. Camera Lock is also client-side only and open source under the MIT License, but its files target 26.1 – 26.1.2 instead.

ModLoadersGame versionsEnvironmentUpdated
Lock OnFabric1.20 – 1.20.4Client-side only2023-10-23
NoteLockFabric1.20.2Server-side only2023-09-23
Camera LockFabric26.1 – 26.1.2Client-side only2026-06-15

Questions

Does Lock On need Cloth Config API?

Yes. Cloth Config API and Fabric API are required dependencies on Fabric.

Does the server need Lock On installed?

No. It is installed on the player's side alone, so servers need nothing.

In the catalog

Lock On is one of 29,952 Game mechanics mods on ModsFinder, and one of 19,630 Game mechanics mods for Fabric. 13,907 mods support Minecraft 1.20.4.

More from Maxmani

All projects

Similar mods

What the author says

Mostly based on and ported to Fabric from Lock On. Parts of the mod were rewritten to accommodate special features and configuration options. This mod adds two new keys to Minecraft. One to lock on to nearby monsters (and Interaction entities, in case of server plugin custom mobs) and another to switch between…
Maxmani, on the Modrinth page

Official listing

Owner
Maxmani
Published
2023-10-22
Updated on Modrinth
2023-10-23
Facts verified
2026-10-15

Tags