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:
- Remove or disable the modern smooth crouching/sneaking camera transition animation.
- Revert the eye-height adjustment behavior to match the rigid, instant snap of version 1.8, preventing the camera from smoothly lowering down.
- 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.jsonconfiguration 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.
Add a Java 25 Fabric Loom project shell and mod metadata for Minecraft 26.3.
Add the common initializer and a client-only Camera mixin that snaps eye height on crouch transitions without changing entity dimensions.
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:
On desktop, click Compile in the top bar. On phone, tap ⋮ → Compile Project.
Click Compile in the window.
When it succeeds, click Download on the build, or Download old-sneak.jar in the chat.
package com.example.oldsneak;
import net.fabricmc.api.ModInitializer;
public final class OldSneakMod implements ModInitializer {
@Override
public void onInitialize() {
}
}