S

I want a mod that makes it so when i am moving fast back and forth i want it so the arrow always shoots forward and where my crosshair is by moving my caracter on the servers side but not moving my fov so my crosshair is where the arrow will land and i want a configurable with a gui which i can open with the mod called mod menu for fabric 1.21.11

Kodari AI
KodariOct 15 at 5:16 pm 2
ArrowAimStabilizer
Adds a Fabric mod for 1.21.11 that stabilizes arrow trajectory during rapid movement. When the player moves fast back and forth, arrows always fire forward toward the crosshair by adjusting the character's server-side position without altering the FOV. Includes a configurable GUI mod menu accessible in-game, allowing players to toggle the feature and adjust sensitivity, range, and stabilization strength settings.
  1. Build a Fabric 1.21.11 mod that cancels inherited player motion from arrow launches, keeping flight aligned with aim.

  2. Add an in-game YACL setting and expose it through Mod Menu.

  3. Add Fabric metadata, mixin config, and the required resources.

Created Arrow Alignment for Fabric 1.21.11. It compensates for the shooter’s inherited movement when firing arrows, so moving back and forth won’t push arrows off their aimed direction. The mod doesn’t change your camera, character rotation, or FOV.

Open Mods → Arrow Alignment → Configure to enable or disable compensation and adjust its strength. Settings are sent to a supporting server when you join and when you save changes.

For server-authoritative behavior in multiplayer, install the mod on both the client and the server.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
manifest.kod
settings.gradle
Code
13 369
src/client/java/com/kodari/arrowalignment/ArrowAlignmentClient.java
package com.kodari.arrowalignment;

import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.networking.v1.ClientPlayConnectionEvents;
import net.fabricmc.fabric.api.client.networking.v1.ClientPlayNetworking;

public class ArrowAlignmentClient implements ClientModInitializer {
    @Override
    public void onInitializeClient() {
        ClientPlayConnectionEvents.JOIN.register((handler, sender, client) -> syncSettings());
    }

    public static void syncSettings() {
        if (ClientPlayNetworking.canSend(ArrowAlignmentPayload.ID)) {
            ClientPlayNetworking.send(new ArrowAlignmentPayload(
                    ArrowAlignmentConfig.enabled,
                    ArrowAlignmentConfig.compensation
            ));
        }
    }
}