Target Lock is a simple client-side Fabric mod for Minecraft 1.21.8–1.21.11. Press J (you can change in settings) to instantly aim your camera at the nearest living entity within 10 blocks. If no entity is in range, a message will appear on your screen letting you know. To use the mod you need to have installed Fabric API.
Features:
Requirements: Fabric API