Promporn Chusiangcaew

Create a client-side Fabric mod for Minecraft Java Edition 26.2.

Mod name: Sprint FOV Lock

Requirements:

  • Compatible with Minecraft 26.2 and Fabric.
  • Keep the camera FOV permanently at the same wide angle as the vanilla sprinting FOV, even when the player is standing still.
  • Do not make the player actually sprint, move, or send any extra movement packets.
  • Preserve the normal vanilla FOV setting and sprint FOV multiplier, using the sprinting FOV as the reference.
  • Do not change movement speed, gameplay mechanics, or server behavior.
  • Make the mod work in multiplayer and on Android through Zalith Launcher, where compatible.
  • Build the mod and provide a compiled .jar file, the source code, and build logs.
  • Fix compilation errors and verify the generated mod targets Minecraft 26.2 Fabric before claiming it works.
Kodari AI
KodariOct 26 at 2:57 pm 2
SprintFovLock
A client-side Fabric mod for Minecraft 26.2 that permanently locks the camera FOV to the vanilla sprinting wide angle, even when standing still. It does not trigger actual sprinting, movement, or packets, preserving normal gameplay and server behavior. The mod references the vanilla FOV setting and sprint FOV multiplier, applying the sprinting FOV as the constant base. Works in singleplayer and multiplayer, and is compatible with Android via Zalith Launcher. Includes a mixin to override FOV calculation, a config for toggling, and a compiled jar with build logs.
  1. Identify the 26.2 camera FOV calculation and its sprint-FOV multiplier hook.

  2. Add a client-only Fabric mod and mixin that applies the vanilla sprint FOV without affecting movement or packets.

  3. Configure the 26.2 build and mod metadata; then provide the Kodari compile steps for the jar and logs.

Added Sprint FOV Lock as a client-only Fabric mod targeting Minecraft 26.2. It applies the vanilla sprint speed contribution only to the value used for FOV calculation while the player isn’t sprinting. The vanilla FOV setting and FOV-effects scaling remain in use, and the mod does not change sprint state, movement, or packets. A multiplayer server does not need the mod; Zalith support depends on the launcher supporting Minecraft 26.2, Fabric, and Java 25.

The source and build configuration are in the project. A successful build, compiled jar, and build logs have not been produced here, so I can’t claim compilation is verified yet.

To build and download it in Kodari:

  1. Click Compile in the desktop top bar, or on phone tap ⋮ → Compile Project.

  2. Click Compile in the window and check the build result there.

  3. When it succeeds, click Download on the build or Download sprint-fov-lock.jar in chat. If it fails, use Auto-fix or Fix.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
6 105
src/client/java/com/kodari/sprintfovlock/mixin/AbstractClientPlayerMixin.java
package com.kodari.sprintfovlock.mixin;

import com.llamalad7.mixinextras.injector.ModifyExpressionValue;
import net.minecraft.client.player.AbstractClientPlayer;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;

@Mixin(AbstractClientPlayer.class)
public abstract class AbstractClientPlayerMixin {
    @ModifyExpressionValue(
            method = "getFieldOfViewModifier(ZF)F",
            at = @At(
                    value = "INVOKE",
                    target = "Lnet/minecraft/world/entity/LivingEntity;getAttributeValue(Lnet/minecraft/core/Holder;)D"
            )
    )
    private double sprintfovlock$useSprintingMovementSpeed(double original) {
        return ((AbstractClientPlayer) (Object) this).isSprinting() ? original : original * 1.3D;
    }
}