pitone

"I want a client‑side mod that introduces fully realistic physics to Minecraft: smoother and natural character movement, objects with proper weight and momentum, believable collisions and falls, and more immersive world interactions without requiring server‑side changes. 1.21.11"

Kodari AI
KodariOct 20 at 7:52 am 2
RealisticPhysicsMod
Client-side Minecraft mod that overhauls movement and object physics for immersive realism. Implements smoother character acceleration, momentum-based motion, realistic collision responses, and gravity-aware falls. Adds weight and inertia to carried objects, enhancing world interaction authenticity. Fully client-side, compatible with vanilla servers, targeting Minecraft 1.21.11 via Fabric API.

Plan:

  1. Implement a client-only motion layer: momentum-based camera sway, body lean, and landing impact feedback.

  2. Create the Fabric 1.21.11 project files and client mixin configuration, keeping gameplay/server authority unchanged.

Created the Natural Motion Fabric 1.21.11 client mod. It adds camera lean and fall/impact feedback, plus velocity-based tumbling for dropped items. These effects are visual only: actual player and item physics, gravity, and collisions remain vanilla/server-authoritative, since a client-only mod cannot change those for the world.

pitone

when i start the screen is black

Kodari AI
KodariOct 20 at 8:02 am 2

Removed the camera-motion mixin, which altered the camera quaternion after Minecraft had calculated its view directions and could leave the rendered view corrupted. Dropped-item tumbling remains enabled.

If the screen is still black, send the game’s latest.log or crash report so I can identify the remaining startup error.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
8 181
src/client/java/com/kodari/naturalmotion/mixin/ItemEntityRendererMixin.java
package com.kodari.naturalmotion.mixin;

import net.minecraft.client.render.command.OrderedRenderCommandQueue;
import net.minecraft.client.render.entity.ItemEntityRenderer;
import net.minecraft.client.render.entity.state.ItemEntityRenderState;
import net.minecraft.client.render.state.CameraRenderState;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.entity.ItemEntity;
import net.minecraft.util.math.RotationAxis;
import net.minecraft.util.math.Vec3d;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;

@Mixin(ItemEntityRenderer.class)
public abstract class ItemEntityRendererMixin {
    @Inject(method = "updateRenderState", at = @At("TAIL"))
    private void naturalmotion$captureVelocity(ItemEntity entity, ItemEntityRenderState state, float tickProgress, CallbackInfo ci) {
        Vec3d velocity = entity.getVelocity();
        ((ItemPhysicsRenderState) (Object) state).naturalmotion$setVelocity(velocity.x, velocity.y, velocity.z);
    }

    @Inject(method = "render", at = @At("HEAD"))
    private void naturalmotion$beginTumble(ItemEntityRenderState state, MatrixStack matrices, OrderedRenderCommandQueue queue, CameraRenderState cameraState, CallbackInfo ci) {
        ItemPhysicsRenderState physics = (ItemPhysicsRenderState) (Object) state;
        float pitch = (float) Math.max(-0.32, Math.min(0.32, physics.naturalmotion$getVelocityZ() * 0.12));
        float roll = (float) Math.max(-0.32, Math.min(0.32, -physics.naturalmotion$getVelocityX() * 0.12));
        matrices.push();
        matrices.multiply(RotationAxis.POSITIVE_X.rotation(pitch));
        matrices.multiply(RotationAxis.POSITIVE_Z.rotation(roll));
    }

    @Inject(method = "render", at = @At("TAIL"))
    private void naturalmotion$endTumble(ItemEntityRenderState state, MatrixStack matrices, OrderedRenderCommandQueue queue, CameraRenderState cameraState, CallbackInfo ci) {
        matrices.pop();
    }
}