I want a Velocity-Based Motion Blur Mod with fully customizable settings.
Requirements:
* The motion blur must be velocity-based, meaning the blur intensity should increase naturally with the player's movement speed. * Include a strength slider that allows users to adjust the motion blur from Low to High. * The transition between different strength levels should be smooth and well-balanced. * At the Low setting, the motion blur should feel similar to the smooth and clean effect seen in Living Legend—subtle, cinematic, and visually pleasing without affecting gameplay. * Medium and High settings should progressively increase the blur intensity while maintaining good visual quality. * The effect should remain smooth, optimized, and free from visual artifacts or excessive ghosting. * All settings should be adjustable in real time without requiring a game restart. * The mod should be lightweight, performance-friendly, and compatible with the game's rendering pipeline.
Goal:
The objective is to create a high-quality, cinematic velocity-based motion blur that enhances the overall visual experience. Even at the lowest setting, it should provide a polished, premium look similar to Living Legend, while allowing users to increase the intensity according to their preference.
I’ll create a Velocity-Based Motion Blur mod with YACL config screen and ModMenu integration.
The compilation failed with this error:
Compilation failed with 10 error(s):
ERROR in src/main/java/com/velocityblur/VelocityMotionBlurScreen.java at line 9: cannot find symbol
public static Screen createScreen(Screen parent) {
^
symbol: class Screen
location: class VelocityMotionBlurScreen
ERROR in src/main/java/com/velocityblur/VelocityMotionBlurScreen.java at line 9: cannot find symbol
public static Screen createScreen(Screen parent) {
^
symbol: class Screen
location: class VelocityMotionBlurScreen
ERROR in src/main/java/client/java/com/velocityblur/VelocityMotionBlurClient.java at line 43: cannot find symbol
Vec3d currentPos = player.getPos();
^
symbol: method getPos()
location: variable player of type ClientPlayerEntity
ERROR in src/main/java/client/java/com/velocityblur/VelocityMotionBlurClient.java at line 57: cannot find symbol
player.horizontalVelocity,
^
symbol: variable horizontalVelocity
location: variable player of type ClientPlayerEntity
ERROR in src/main/java/client/java/com/velocityblur/VelocityMotionBlurClient.java at line 59: cannot find symbol
player.horizontalVelocity
^
symbol: variable horizontalVelocity
location: variable player of type ClientPlayerEntity
ERROR in src/main/java/com/velocityblur/VelocityMotionBlurScreen.java at line 9: cannot find symbol
public static Screen createScreen(Screen parent) {
^
symbol: class Screen
location: class VelocityMotionBlurScreen
ERROR in src/main/java/com/velocityblur/VelocityMotionBlurScreen.java at line 9: cannot find symbol
public static Screen createScreen(Screen parent) {
^
symbol: class Screen
location: class VelocityMotionBlurScreen
ERROR in src/main/java/client/java/com/velocityblur/VelocityMotionBlurClient.java at line 57: cannot find symbol
player.horizontalVelocity,
^
symbol: variable horizontalVelocity
location: variable player of type ClientPlayerEntity
ERROR in src/main/java/client/java/com/velocityblur/VelocityMotionBlurClient.java at line 59: cannot find symbol
player.horizontalVelocity
^
symbol: variable horizontalVelocity
location: variable player of type ClientPlayerEntity
ERROR in src/main/java/client/java/com/velocityblur/VelocityMotionBlurClient.java at line 43: cannot find symbol
Vec3d currentPos = player.getPos();
^
symbol: method getPos()
location: variable player of type ClientPlayerEntity
=== COMPILATION ERROR ANALYSIS ===
MISSING CLASSES:
- Screen
ACTION: Create these classes or check imports
MISSING METHODS:
- getPos()
ACTION: Check method names and signatures
FILES TO INVESTIGATE:
- src/main/java/com/velocityblur/VelocityMotionBlurScreen.java
- src/main/java/client/java/com/velocityblur/VelocityMotionBlurClient.java
- src/main/java/com/velocityblur/VelocityMotionBlurScreen.java
- src/main/java/client/java/com/velocityblur/VelocityMotionBlurClient.java
Please fix this error by creating a new artifact with the corrected code.
Now I can see the issues clearly:
VelocityMotionBlurScreen.javaandModMenuIntegration.javaare in the main source set but use client-only classes (Screenisnet.minecraft.client.gui.screen.Screen). Must move tosrc/client/java/.player.horizontalVelocitydoesn’t exist — replaced withplayer.getVelocity()which returnsVec3d.player.getPos()should exist but let me verify it compiles.
Let me fix all of this
I see several issues. The core problems are:
VelocityMotionBlurScreen.javaandModMenuIntegration.javause client-only classes (Screen) but are in the main source set — must move tosrc/client/java/.player.getPos()might not exist in 1.21.11 Yarn — using individualgetX()/getY()/getZ()is safest.player.horizontalVelocitydoesn’t exist — useplayer.getVelocity()instead.
Let me fix everything
Now I understand all the issues. Let me fix them systematically:
Move
VelocityMotionBlurScreen.javaandModMenuIntegration.javafromsrc/main/java/tosrc/client/java/(client-only code)Fix
getPos()→ useplayer.getX()/getY()/getZ()Fix
horizontalVelocity→ useplayer.getVelocity()Add
GameRenderMixinto mixin config
The compilation failed with this error:
Compilation failed with 10 error(s):
ERROR in src/main/java/com/velocityblur/VelocityMotionBlurScreen.java at line 9: cannot find symbol
public static Screen createScreen(Screen parent) {
^
symbol: class Screen
location: class VelocityMotionBlurScreen
ERROR in src/main/java/com/velocityblur/VelocityMotionBlurScreen.java at line 9: cannot find symbol
public static Screen createScreen(Screen parent) {
^
symbol: class Screen
location: class VelocityMotionBlurScreen
ERROR in src/main/java/client/java/com/velocityblur/VelocityMotionBlurClient.java at line 43: cannot find symbol
Vec3d currentPos = player.getPos();
^
symbol: method getPos()
location: variable player of type ClientPlayerEntity
ERROR in src/main/java/client/java/com/velocityblur/VelocityMotionBlurClient.java at line 57: cannot find symbol
player.horizontalVelocity,
^
symbol: variable horizontalVelocity
location: variable player of type ClientPlayerEntity
ERROR in src/main/java/client/java/com/velocityblur/VelocityMotionBlurClient.java at line 59: cannot find symbol
player.horizontalVelocity
^
symbol: variable horizontalVelocity
location: variable player of type ClientPlayerEntity
ERROR in src/main/java/com/velocityblur/VelocityMotionBlurScreen.java at line 9: cannot find symbol
public static Screen createScreen(Screen parent) {
^
symbol: class Screen
location: class VelocityMotionBlurScreen
ERROR in src/main/java/com/velocityblur/VelocityMotionBlurScreen.java at line 9: cannot find symbol
public static Screen createScreen(Screen parent) {
^
symbol: class Screen
location: class VelocityMotionBlurScreen
ERROR in src/main/java/client/java/com/velocityblur/VelocityMotionBlurClient.java at line 57: cannot find symbol
player.horizontalVelocity,
^
symbol: variable horizontalVelocity
location: variable player of type ClientPlayerEntity
ERROR in src/main/java/client/java/com/velocityblur/VelocityMotionBlurClient.java at line 59: cannot find symbol
player.horizontalVelocity
^
symbol: variable horizontalVelocity
location: variable player of type ClientPlayerEntity
ERROR in src/main/java/client/java/com/velocityblur/VelocityMotionBlurClient.java at line 43: cannot find symbol
Vec3d currentPos = player.getPos();
^
symbol: method getPos()
location: variable player of type ClientPlayerEntity
=== COMPILATION ERROR ANALYSIS ===
MISSING CLASSES:
- Screen
ACTION: Create these classes or check imports
MISSING METHODS:
- getPos()
ACTION: Check method names and signatures
FILES TO INVESTIGATE:
- src/main/java/com/velocityblur/VelocityMotionBlurScreen.java
- src/main/java/client/java/com/velocityblur/VelocityMotionBlurClient.java
- src/main/java/com/velocityblur/VelocityMotionBlurScreen.java
- src/main/java/client/java/com/velocityblur/VelocityMotionBlurClient.java
Please fix this error by creating a new artifact with the corrected code.
Now I can see all the issues clearly. The fixes needed:
Move
VelocityMotionBlurScreen.javaandModMenuIntegration.javafromsrc/main/java/tosrc/client/java/— they use client-only classesplayer.getPos()doesn’t exist in 1.21.11 Yarn — useplayer.getX()/getY()/getZ()player.horizontalVelocitydoesn’t exist — remove that section; position delta already gives velocity
Let me move the two files first, then patch the client code.
Now I’ll fix all three issues: move the client-only files, fix getPos(), and fix horizontalVelocity
Now create the two moved files in src/client/java/:
The files are still missing from src/client/. Let me check what happened:
The files at src/main/java/ are still there. I need to use inline tags for file operations. Let me delete the old files and create the new ones in the correct location:
make this mod for compatible with 1.19.2 game loders
This is a large downport. Let me read the remaining files, then execute all changes.
Now I have the full picture. This is a significant downport from 1.21.11 → 1.19.2. Here’s what changes:
Versions: Loom 1.1, Minecraft 1.19.2, Fabric 0.14.21, Fabric API 0.76.0, Java 17
No
splitEnvironmentSourceSets()— all code insrc/main/javaIdentifier.of()→new Identifier()— 1.19.2 YarnGameRenderer.rendersignature changed —(float tickDelta, long nanoTime, boolean tick)not(RenderTickCounter, boolean)YACL v2 for 1.19.2 (same imports, different artifact)
ModMenu 4.x for 1.19.2
JAVA_21 → JAVA_17 in mixins config
Let me execute all changes now
Now move all client files into src/main/java/ (no split sources in 1.19.2
Filesystem is read-only — I must use the tool tags. Let me move all client files to src/main/java/ using inline tags, then update their content for 1.19.2 APIs.
Now let me move the client files to src/main/java/ and update their content for 1.19.2 APIs.
First, move the files:
Now update all files for 1.19.2 APIs. Key changes:
Identifier.of()→new Identifier()GameRenderer.render(RenderTickCounter, boolean)→render(float, long, boolean)JAVA_21→JAVA_17in mixins json~1.21.11→1.19.2>=21→>=17YACL v3 → v2 (same API) but
>=3.0→>=2.0ModMenu
>=14.0→>=4.0
Now update VelocityMotionBlurConfig.java — YACL v2 uses Identifier.of() → new Identifier():
Also update the Screen file — YACL v2 API is the same:
Let me verify the file tree looks right now:
The compilation failed with this error:
Compilation failed with 4 error(s):
ERROR in src/main/java/com/velocityblur/VelocityMotionBlurClient.java at line 11: Identifier(String,String) has private access in Identifier
public static final Identifier BLUR_SHADER = new Identifier(VelocityMotionBlur.MOD_ID, "shaders/post/velocity_blur.json");
^
ERROR in src/main/java/com/velocityblur/VelocityMotionBlurConfig.java at line 13: Identifier(String,String) has private access in Identifier
.id(new Identifier(VelocityMotionBlur.MOD_ID, "config"))
^
ERROR in src/main/java/com/velocityblur/VelocityMotionBlurClient.java at line 11: Identifier(String,String) has private access in Identifier
public static final Identifier BLUR_SHADER = new Identifier(VelocityMotionBlur.MOD_ID, "shaders/post/velocity_blur.json");
^
ERROR in src/main/java/com/velocityblur/VelocityMotionBlurConfig.java at line 13: Identifier(String,String) has private access in Identifier
.id(new Identifier(VelocityMotionBlur.MOD_ID, "config"))
^
=== COMPILATION ERROR ANALYSIS ===
FILES TO INVESTIGATE:
- src/main/java/com/velocityblur/VelocityMotionBlurClient.java
- src/main/java/com/velocityblur/VelocityMotionBlurConfig.java
- src/main/java/com/velocityblur/VelocityMotionBlurClient.java
- src/main/java/com/velocityblur/VelocityMotionBlurConfig.java
Please fix this error by creating a new artifact with the corrected code.
The issue is that in 1.19.2 Yarn mappings, the two-arg Identifier constructor is private. Use the single-arg constructor with colon notation
Both fixed. In 1.19.2 Yarn, Identifier(String, String) is private — you must use the single-arg constructor with a colon-separated string ("mod_id:path").
The compilation failed with this error:
Compilation failed with 4 error(s):
ERROR in src/main/java/com/velocityblur/VelocityMotionBlurClient.java at line 11: constructor Identifier in class Identifier cannot be applied to given types;
public static final Identifier BLUR_SHADER = new Identifier(VelocityMotionBlur.MOD_ID + ":shaders/post/velocity_blur.json");
^
ERROR in src/main/java/com/velocityblur/VelocityMotionBlurConfig.java at line 13: constructor Identifier in class Identifier cannot be applied to given types;
.id(new Identifier(VelocityMotionBlur.MOD_ID + ":config"))
^
ERROR in src/main/java/com/velocityblur/VelocityMotionBlurClient.java at line 11: constructor Identifier in class Identifier cannot be applied to given types;
public static final Identifier BLUR_SHADER = new Identifier(VelocityMotionBlur.MOD_ID + ":shaders/post/velocity_blur.json");
^
ERROR in src/main/java/com/velocityblur/VelocityMotionBlurConfig.java at line 13: constructor Identifier in class Identifier cannot be applied to given types;
.id(new Identifier(VelocityMotionBlur.MOD_ID + ":config"))
^
=== COMPILATION ERROR ANALYSIS ===
FILES TO INVESTIGATE:
- src/main/java/com/velocityblur/VelocityMotionBlurClient.java
- src/main/java/com/velocityblur/VelocityMotionBlurConfig.java
- src/main/java/com/velocityblur/VelocityMotionBlurClient.java
- src/main/java/com/velocityblur/VelocityMotionBlurConfig.java
Please fix this error by creating a new artifact with the corrected code.
The single-arg Identifier(String) constructor also fails with type mismatch. Let me check what’s actually available in 1.19.2 Yarn mappings.
The docs confirm Identifier(String) and Identifier(String, String) are both public in 1.19.2 Yarn. The error might be an import collision. Let me just use the static Identifier.of() factory method which is definitely available.
Let me check the exact Yarn mapping version being used:
The Yarn mapping variant (build.28) may have different visibility than build.10. Let me use the safe static factory methods
Both files updated to use Identifier.tryParse() — a public static factory available in 1.19.2 Yarn that returns an Identifier from a namespace:path string.
package com.velocityblur;
import net.fabricmc.api.ModInitializer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class VelocityMotionBlur implements ModInitializer {
public static final String MOD_ID = "velocitymotionblur";
public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);
@Override
public void onInitialize() {
VelocityMotionBlurConfig.load();
LOGGER.info("Velocity Motion Blur initialized");
}
}