Open Nik0-0 opened 6 months ago
Changing the line in YourResourcepack/assets/minecraft/shaders/core/particle.vsh
from:
vertexDistance = fog_distance(ModelViewMat, Position, FogShape);
To:
vertexDistance = fog_distance(Position, FogShape);
Will fix the crash. Then you can watch your screen shake all day.
The downside is that now the shake is on by default (which I'm assuming it's not supposed to be?) I don't understand the shader code well enough to figure out how to fix that.
But to stop the shake (ie. in MC 1.20.5+) you can run:
/particle minecraft:entity_effect{color: [0.9960784313725490196078431372549, 0.9921568627450980392156862745098, 0.003921568627451, 1.0]} ~ ~ ~ ~ ~ ~ 1 1 force
And to start it again you can run:
/particle minecraft:entity_effect{color: [0.9960784313725490196078431372549, 0.9921568627450980392156862745098, 1.0, 1.0]} ~ ~ ~ ~ ~ ~ 1 1 force
And to change the speed:
/particle minecraft:entity_effect{color: [0.9960784313725490196078431372549, 0.98823529411764705882352941176471, 0.01, 1.0]} ~ ~ ~ ~ ~ ~ 1 1 force @s
Or if you're doing things from Java plugin, here's an example how you could disable the shakes when a player logs in, until the author has time to fix this issue properly:
The downside is that now the shake is on by default (which I'm assuming it's not supposed to be?) I don't understand the shader code well enough to figure out how to fix that.
But to stop the shake (ie. in MC 1.20.5+) you can run:
/particle minecraft:entity_effect{color: [0.9960784313725490196078431372549, 0.9921568627450980392156862745098, 0.003921568627451, 1.0]} ~ ~ ~ ~ ~ ~ 1 1 force
And to start it again you can run:
/particle minecraft:entity_effect{color: [0.9960784313725490196078431372549, 0.9921568627450980392156862745098, 1.0, 1.0]} ~ ~ ~ ~ ~ ~ 1 1 force
And to change the speed:
/particle minecraft:entity_effect{color: [0.9960784313725490196078431372549, 0.98823529411764705882352941176471, 0.01, 1.0]} ~ ~ ~ ~ ~ ~ 1 1 force @s
Or if you're doing things from Java plugin, here's an example how you could disable the shakes when a player logs in, until the author has time to fix this issue properly:
Ye ye. I mean im using my own stuff to control that and kinda figured it out. 👀
Changing the line in
YourResourcepack/assets/minecraft/shaders/core/particle.vsh
from:vertexDistance = fog_distance(ModelViewMat, Position, FogShape);
To:
vertexDistance = fog_distance(Position, FogShape);
Will fix the crash. Then you can watch your screen shake all day.
Alsoo doing that will keep it uh compatible with 1.20.4 or nope? Anyways thanks for response and help ✨
Alsoo doing that will keep it uh compatible with 1.20.4 or nope? Anyways thanks for response and help ✨
It "works" in 1.20.6. It might not work in 1.20.4. But I don't know. I believe there were some changes to how shaders work in 1.20.5 (you can check the details here: https://feedback.minecraft.net/hc/en-us/articles/26136167989005-Minecraft-Java-Edition-1-20-5-Armored-Paws).
But the quick fix I did is not an ideal solution. If it works for you and you're going to use it, I should further note that moving between worlds will activate the shake, and you need to turn it off after a player transitions to Nether, End, etc.
There's also a slight almost imperceptible shake that you can see even when it's turned off if you pay attention. It might work better if you also set the other setting to a low value.
Even more broken on 1.21. Mojang removed the "blend" block.
Not sure what to do about that.
Hey! So even the latest version doesnt load up properly.