Aaryav Patidar

Create a Minecraft Fabric mod (compatible with modern Fabric and Yarn mappings) that replicates the old Minecraft 1.8 crouching (sneaking) mechanics.

Specifically, the mod needs to:

  1. Remove or disable the modern smooth crouching/sneaking camera transition animation.
  2. Revert the eye-height adjustment behavior to match the rigid, instant snap of version 1.8, preventing the camera from smoothly lowering down.
  3. Keep it client-side compatible so it can run smoothly on modern servers without triggering anti-cheat or changing actual server-side bounding boxes/movement physics unless necessary (aim for a purely visual/camera feel replication like 1.8 sneaking).

Please provide:

  • The fabric.mod.json configuration file.
  • The main initializer class.
  • A Mixin class (targeting Entity, ClientPlayerEntity, or Camera classes) that modifies the eye height or sneaking transition logic to match 1.8 behavior.
  • Clear instructions on how to set up the Gradle project and build the mod.
Kodari AI
KodariMon at 11:31 am 1
LegacySneak
LegacySneak is a client-side Fabric mod that replicates Minecraft 1.8 sneaking mechanics on modern versions. It removes the smooth crouching camera transition animation, replacing it with the rigid, instant snap of legacy versions. The mod adjusts eye-height calculations to snap immediately when sneaking starts or stops, eliminating the gradual lowering effect. Purely visual, it keeps server-side bounding boxes and movement physics untouched, ensuring compatibility with modern servers and anti-cheat systems. Includes a fabric.mod.json, main initializer class, and a Mixin targeting Entity or Camera classes to override the sneaking transition logic.
  1. Add a Java 25 Fabric Loom project shell and mod metadata for Minecraft 26.3.

  2. Add the common initializer and a client-only Camera mixin that snaps eye height on crouch transitions without changing entity dimensions.

  3. Include the mixin configuration and build instructions.

The Fabric Loom project is set up for Minecraft 26.3. Its Camera mixin snaps the local player’s eye height on crouch and uncrouch, including render interpolation, without changing bounding boxes or movement. This version uses Mojang’s official names rather than Yarn mappings.

To build and download the mod in Kodari:

  1. On desktop, click Compile in the top bar. On phone, tap ⋮ → Compile Project.

  2. Click Compile in the window.

  3. When it succeeds, click Download on the build, or Download old-sneak.jar in the chat.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
7 146
src/main/java/com/example/oldsneak/OldSneakMod.java
package com.example.oldsneak;

import net.fabricmc.api.ModInitializer;

public final class OldSneakMod implements ModInitializer {
	@Override
	public void onInitialize() {
	}
}