Create a Minecraft Java Edition Motion Blur mod that adds a smooth, subtle motion blur effect when the player rapidly rotates or moves the camera.
Requirements:
- The motion blur should activate dynamically when the camera is turned quickly.
- The faster the camera rotates, the stronger the blur becomes.
- When the camera stops moving, the blur should smoothly fade back to a clear image.
- Use a smooth temporal/frame-blending technique rather than a simple screen blur.
- Keep the effect lightweight and optimized for good FPS performance.
- Add configurable settings for Blur Strength, Fade Speed, Rotation Sensitivity, and Maximum Blur.
- The effect should work in both first-person and third-person views.
- It must be compatible with Minecraft Java Edition and designed to support multiple modern Minecraft versions where possible.
- Do not blur the entire screen permanently; the blur should appear only during camera movement.
- Provide clean, well-structured Java source code with comments and clear setup/build instructions. Version,26.2
Create a Fabric client mod project targeting the requested Minecraft 26.2 version.
Implement camera-velocity tracking with smoothed activation and configurable strength, fade speed, sensitivity, and cap.
Add a lightweight temporal framebuffer blend that works in first- and third-person views.
Add JSON configuration persistence plus assets, metadata, Gradle setup, and build instructions.
Created the Motion Blur Fabric mod project.
Added client-only temporal frame blending for first- and third-person views.
Added camera rotation and movement tracking with smooth fade-out.
Added configurable
blurStrength,fadeSpeed,rotationSensitivity,movementSensitivity,maximumBlur, andenabledsettings.Added JSON configuration at
config/motionblur.json.Added Fabric metadata, mixin configuration, Gradle setup, source-set split, README, and ignore rules.
Targeted the latest verified Yarn/Fabric toolchain: Minecraft 1.21.11.
Minecraft 26.2 is not compatible with the requested Yarn 1.21.11 toolchain; Yarn mappings end at 1.21.11. The README documents this limitation and the migration point for a future 26.2 Fabric toolchain.
The compilation failed with this error:
Compilation failed with 34 error(s):
ERROR in src/main/java/client/java/com/kodari/motionblur/client/MotionBlurRenderer.java at line 55: cannot find symbol
history = new SimpleFramebuffer("motion_blur_history", width, height, false, MinecraftClient.IS_SYSTEM_MAC);
^
symbol: variable IS_SYSTEM_MAC
location: class MinecraftClient
ERROR in src/main/java/client/java/com/kodari/motionblur/client/MotionBlurRenderer.java at line 56: cannot find symbol
capture = new SimpleFramebuffer("motion_blur_capture", width, height, false, MinecraftClient.IS_SYSTEM_MAC);
^
symbol: variable IS_SYSTEM_MAC
location: class MinecraftClient
ERROR in src/main/java/client/java/com/kodari/motionblur/client/MotionBlurRenderer.java at line 63: cannot find symbol
source.beginRead();
^
symbol: method beginRead()
location: variable source of type Framebuffer
ERROR in src/main/java/client/java/com/kodari/motionblur/client/MotionBlurRenderer.java at line 64: cannot find symbol
destination.beginWrite(false);
^
symbol: method beginWrite(boolean)
location: variable destination of type SimpleFramebuffer
ERROR in src/main/java/client/java/com/kodari/motionblur/client/MotionBlurRenderer.java at line 65: cannot find symbol
source.draw(width, height);
^
symbol: method draw(int,int)
location: variable source of type Framebuffer
ERROR in src/main/java/client/java/com/kodari/motionblur/client/MotionBlurRenderer.java at line 66: cannot find symbol
destination.endWrite();
^
symbol: method endWrite()
location: variable destination of type SimpleFramebuffer
ERROR in src/main/java/client/java/com/kodari/motionblur/client/MotionBlurRenderer.java at line 67: cannot find symbol
source.beginWrite(false);
^
symbol: method beginWrite(boolean)
location: variable source of type Framebuffer
ERROR in src/main/java/client/java/com/kodari/motionblur/client/MotionBlurRenderer.java at line 71: cannot find symbol
source.beginRead();
^
symbol: method beginRead()
location: variable source of type SimpleFramebuffer
ERROR in src/main/java/client/java/com/kodari/motionblur/client/MotionBlurRenderer.java at line 72: cannot find symbol
destination.beginWrite(false);
^
symbol: method beginWrite(boolean)
location: variable destination of type Framebuffer
ERROR in src/main/java/client/java/com/kodari/motionblur/client/MotionBlurRenderer.java at line 73: cannot find symbol
RenderSystem.enableBlend();
^
symbol: method enableBlend()
location: class RenderSystem
ERROR in src/main/java/client/java/com/kodari/motionblur/client/MotionBlurRenderer.java at line 74: cannot find symbol
RenderSystem.defaultBlendFunc();
^
symbol: method defaultBlendFunc()
location: class RenderSystem
ERROR in src/main/java/client/java/com/kodari/motionblur/client/MotionBlurRenderer.java at line 75: cannot find symbol
RenderSystem.setShaderColor(1.0F, 1.0F, 1.0F, alpha);
^
symbol: method setShaderColor(float,float,float,float)
location: class RenderSystem
ERROR in src/main/java/client/java/com/kodari/motionblur/client/MotionBlurRenderer.java at line 76: cannot find symbol
source.draw(width, height);
^
symbol: method draw(int,int)
location: variable source of type SimpleFramebuffer
ERROR in src/main/java/client/java/com/kodari/motionblur/client/MotionBlurRenderer.java at line 77: cannot find symbol
RenderSystem.setShaderColor(1.0F, 1.0F, 1.0F, 1.0F);
^
symbol: method setShaderColor(float,float,float,float)
location: class RenderSystem
ERROR in src/main/java/client/java/com/kodari/motionblur/client/MotionBlurRenderer.java at line 78: cannot find symbol
RenderSystem.disableBlend();
^
symbol: method disableBlend()
location: class RenderSystem
ERROR in src/main/java/client/java/com/kodari/motionblur/client/MotionBlurRenderer.java at line 79: cannot find symbol
destination.beginWrite(false);
^
symbol: method beginWrite(boolean)
location: variable destination of type Framebuffer
ERROR in src/main/java/client/java/com/kodari/motionblur/mixin/GameRendererMixin.java at line 15: cannot find symbol
MotionBlurRenderer.render(tickCounter.getTickDelta(false));
^
symbol: method getTickDelta(boolean)
location: variable tickCounter of type RenderTickCounter
ERROR in src/main/java/client/java/com/kodari/motionblur/client/MotionBlurRenderer.java at line 55: cannot find symbol
history = new SimpleFramebuffer("motion_blur_history", width, height, false, MinecraftClient.IS_SYSTEM_MAC);
^
symbol: variable IS_SYSTEM_MAC
location: class MinecraftClient
ERROR in src/main/java/client/java/com/kodari/motionblur/client/MotionBlurRenderer.java at line 56: cannot find symbol
capture = new SimpleFramebuffer("motion_blur_capture", width, height, false, MinecraftClient.IS_SYSTEM_MAC);
^
symbol: variable IS_SYSTEM_MAC
location: class MinecraftClient
ERROR in src/main/java/client/java/com/kodari/motionblur/client/MotionBlurRenderer.java at line 63: cannot find symbol
source.beginRead();
^
symbol: method beginRead()
location: variable source of type Framebuffer
ERROR in src/main/java/client/java/com/kodari/motionblur/client/MotionBlurRenderer.java at line 64: cannot find symbol
destination.beginWrite(false);
^
symbol: method beginWrite(boolean)
location: variable destination of type SimpleFramebuffer
ERROR in src/main/java/client/java/com/kodari/motionblur/client/MotionBlurRenderer.java at line 65: cannot find symbol
source.draw(width, height);
^
symbol: method draw(int,int)
location: variable source of type Framebuffer
ERROR in src/main/java/client/java/com/kodari/motionblur/client/MotionBlurRenderer.java at line 66: cannot find symbol
destination.endWrite();
^
symbol: method endWrite()
location: variable destination of type SimpleFramebuffer
ERROR in src/main/java/client/java/com/kodari/motionblur/client/MotionBlurRenderer.java at line 67: cannot find symbol
source.beginWrite(false);
^
symbol: method beginWrite(boolean)
location: variable source of type Framebuffer
ERROR in src/main/java/client/java/com/kodari/motionblur/client/MotionBlurRenderer.java at line 71: cannot find symbol
source.beginRead();
^
symbol: method beginRead()
location: variable source of type SimpleFramebuffer
ERROR in src/main/java/client/java/com/kodari/motionblur/client/MotionBlurRenderer.java at line 72: cannot find symbol
destination.beginWrite(false);
^
symbol: method beginWrite(boolean)
location: variable destination of type Framebuffer
ERROR in src/main/java/client/java/com/kodari/motionblur/client/MotionBlurRenderer.java at line 73: cannot find symbol
RenderSystem.enableBlend();
^
symbol: method enableBlend()
location: class RenderSystem
ERROR in src/main/java/client/java/com/kodari/motionblur/client/MotionBlurRenderer.java at line 74: cannot find symbol
RenderSystem.defaultBlendFunc();
^
symbol: method defaultBlendFunc()
location: class RenderSystem
ERROR in src/main/java/client/java/com/kodari/motionblur/client/MotionBlurRenderer.java at line 75: cannot find symbol
RenderSystem.setShaderColor(1.0F, 1.0F, 1.0F, alpha);
^
symbol: method setShaderColor(float,float,float,float)
location: class RenderSystem
ERROR in src/main/java/client/java/com/kodari/motionblur/client/MotionBlurRenderer.java at line 76: cannot find symbol
source.draw(width, height);
^
symbol: method draw(int,int)
location: variable source of type SimpleFramebuffer
ERROR in src/main/java/client/java/com/kodari/motionblur/client/MotionBlurRenderer.java at line 77: cannot find symbol
RenderSystem.setShaderColor(1.0F, 1.0F, 1.0F, 1.0F);
^
symbol: method setShaderColor(float,float,float,float)
location: class RenderSystem
ERROR in src/main/java/client/java/com/kodari/motionblur/client/MotionBlurRenderer.java at line 78: cannot find symbol
RenderSystem.disableBlend();
^
symbol: method disableBlend()
location: class RenderSystem
ERROR in src/main/java/client/java/com/kodari/motionblur/client/MotionBlurRenderer.java at line 79: cannot find symbol
destination.beginWrite(false);
^
symbol: method beginWrite(boolean)
location: variable destination of type Framebuffer
ERROR in src/main/java/client/java/com/kodari/motionblur/mixin/GameRendererMixin.java at line 15: cannot find symbol
MotionBlurRenderer.render(tickCounter.getTickDelta(false));
^
symbol: method getTickDelta(boolean)
location: variable tickCounter of type RenderTickCounter
=== COMPILATION ERROR ANALYSIS ===
MISSING METHODS:
- beginRead()
- beginWrite(boolean)
- draw(int,int)
- endWrite()
- enableBlend()
- defaultBlendFunc()
- setShaderColor(float,float,float,float)
- disableBlend()
- getTickDelta(boolean)
ACTION: Check method names and signatures
FILES TO INVESTIGATE:
- src/main/java/client/java/com/kodari/motionblur/client/MotionBlurRenderer.java
- src/main/java/client/java/com/kodari/motionblur/mixin/GameRendererMixin.java
- src/main/java/client/java/com/kodari/motionblur/client/MotionBlurRenderer.java
- src/main/java/client/java/com/kodari/motionblur/mixin/GameRendererMixin.java
Please fix this error by creating a new artifact with the corrected code.
Replace removed 1.21.11 framebuffer and render-state APIs with the current Yarn equivalents.
Update the render tick interpolation call and preserve the temporal blending behavior.
Patch the affected client files and add the corrected artifact metadata if the project structure requires it.
The error report is from an older framebuffer path than the current 1.21.11 API: SimpleFramebuffer now has a four-argument constructor, framebuffer blits use drawBlit(GpuTextureView), and the removed RenderSystem color/blend helpers cannot be retained. I’m replacing the renderer with the current GPU blit path rather than applying only the stale method-name substitutions.
Created corrected artifact Motion Blur 1.0.1.
Replaced removed
MinecraftClient.IS_SYSTEM_MAC.Updated
SimpleFramebufferto the 1.21.11 four-argument constructor.Replaced removed framebuffer methods with
drawBlit(GpuTextureView).Reimplemented temporal blending with the modern GPU
RenderPassAPI.Added current sampler and dynamic uniform handling.
Replaced
getTickDelta(false)withgetTickProgress(false).Updated
mod_versionto1.0.1.
Affected files:
src/client/java/com/kodari/motionblur/client/MotionBlurRenderer.javasrc/client/java/com/kodari/motionblur/mixin/GameRendererMixin.javagradle.properties
package com.kodari.motionblur;
import com.kodari.motionblur.client.CameraMotionTracker;
import com.kodari.motionblur.client.MotionBlurConfigManager;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents;
import net.minecraft.client.MinecraftClient;
public final class MotionBlurClient implements ClientModInitializer {
@Override
public void onInitializeClient() {
MotionBlurConfigManager.load();
ClientTickEvents.END_CLIENT_TICK.register(CameraMotionTracker.INSTANCE::tick);
}
}