Mahd Rafan

make a 1.21.10 fabric mod that makes the screen gray like full saturation gone and plays the patrick.ogg file sound and shows images randomly and slows down the game like a sigma edit ill upload patrick.ogg next message

Kodari AI
KodariFri at 3:29 pm 1
SigmaEditMod
Applies a full-screen grayscale saturation filter, randomly displays images over the HUD, plays patrick.ogg audio, and slows game tick speed to create a comedic "sigma edit" effect. Configurable via keybind to toggle the effect on/off. Uses Fabric API for rendering hooks, sound playback, and tick manipulation.

This project is Fabric 1.21.4, and Kodari doesn’t currently have Fabric 1.21.10. The closest Fabric versions are 1.21.4 and 1.21.11; which would you like?

Mahd Rafan

1.21.4

Kodari AI
KodariFri at 3:41 pm 9

I’ll build this for Fabric 1.21.4 with a toggle for the effect. The music will need the OGG file you mentioned.

Created the Fabric 1.21.4 mod. Press F8 to toggle the edit.

Please upload patrick.ogg next. The three images also still need to be added to the mod’s resources; they weren’t imported from the attachments. Slow motion affects the client, not a multiplayer server’s simulation.

Mahd Rafan

i added into the files

Kodari AI
KodariFri at 3:45 pm 1

The audio is in the project root, so I’ll move it where the mod can load it. The three images aren’t in the project files yet.

Moved patrick.ogg into the mod’s sound resources.

The three images still need to be added under src/main/resources/assets/sigmaedit/textures/gui/ as 3.png, 47.png, and 22.png.

Mahd Rafan

check sigmaedit folder in assets

Kodari AI
KodariFri at 3:45 pm 1

The sigmaedit assets folder contains patrick.ogg in both the folder root and sounds/. The three images aren’t there yet.

Mahd Rafan

the images are in assets

Kodari AI
KodariFri at 3:49 pm 1

You’re right—the images are in assets, but outside the namespace and under different filenames. I’ll put them where the mod expects them.

Moved the three images into the mod’s GUI texture folder. I mapped 5.png to 47.png and 6.png to 22.png; if their proportions look wrong in-game, those two may need swapping.

Mahd Rafan

ok now give me the .jar

Kodari AI
KodariFri at 3:50 pm 1

To get your JAR:

  1. On desktop, click Compile in the top bar. On phone, tap ⋮ → Compile Project.

  2. Click Compile in the window.

  3. When it succeeds, click Download on the build or the Download .jar button in chat.

If the build fails, click Auto-fix in chat or Fix in the build window.

Mahd Rafan

bro make it play for everything u do the song the images should come like sigma tuff edit like even when u break block kill a mob place a block the edit should come and tps should lower

Kodari AI
KodariFri at 4:01 pm 6

I’ll make the edit trigger automatically for actions such as breaking or placing blocks and killing mobs. In singleplayer, it can also lower the actual world tick rate temporarily; a client mod can’t change a multiplayer server’s TPS.

The edit now triggers when you break a block, place a block, or kill a recently attacked mob. Images flash randomly while the song plays; repeated actions extend the edit.

In singleplayer, the edit temporarily lowers world TPS to 10 and restores it afterward. Multiplayer server TPS can’t be changed by the client. Press F8 to disable or re-enable automatic edits.

Compile the project to get the updated JAR.

Mahd Rafan

the tps is too high make it even slower and add camera effects like an actual edit and make the image smaller and keep it down and only show 1

Kodari AI
KodariFri at 4:09 pm 2

I’ll lower singleplayer TPS further, add a subtle camera pulse, and keep one smaller image near the bottom of the screen.

Updated the edit:

  • Singleplayer slows to 3 TPS during the effect, then restores the previous rate.

  • Added a pulsing zoom and gentle camera tilt.

  • One randomly selected image stays small at the bottom for each edit.

Multiplayer server TPS remains unchanged.

Mahd Rafan

bro make it like 0.1 tps or something the player shouldnt be able to move

Kodari AI
KodariFri at 4:52 pm 5

I’ll set singleplayer to 0.1 TPS during the edit and lock movement input until it ends. Multiplayer server TPS can’t be changed by a client mod.

The edit now slows singleplayer to 0.1 TPS and blocks movement input until it ends. It restores the previous tick rate afterward.

In multiplayer, movement input is blocked locally, but the server’s TPS stays unchanged.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
20 355
src/main/java/com/kodari/sigmaedit/SigmaEditClient.java
package com.kodari.sigmaedit;

import com.kodari.sigmaedit.mixin.GameRendererAccessor;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents;
import net.fabricmc.fabric.api.client.keybinding.v1.KeyBindingHelper;
import net.fabricmc.fabric.api.client.rendering.v1.HudRenderCallback;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.option.KeyBinding;
import net.minecraft.client.render.RenderLayer;
import net.minecraft.client.sound.PositionedSoundInstance;
import net.minecraft.client.sound.SoundInstance;
import net.minecraft.client.world.ClientWorld;
import net.minecraft.entity.mob.MobEntity;
import net.minecraft.server.integrated.IntegratedServer;
import net.minecraft.sound.SoundEvent;
import net.minecraft.util.Identifier;
import org.lwjgl.glfw.GLFW;

public class SigmaEditClient implements ClientModInitializer {
    private static SigmaEditClient instance;
    private static final Identifier EFFECT = Identifier.of("sigmaedit", "grayscale");
    private static final Identifier SOUND = Identifier.of("sigmaedit", "patrick");
    private static final Identifier[] IMAGES = {
        Identifier.of("sigmaedit", "textures/gui/3.png"),
        Identifier.of("sigmaedit", "textures/gui/47.png"),
        Identifier.of("sigmaedit", "textures/gui/22.png")
    };
    private final java.util.Random random = new java.util.Random();
    private boolean active;
    private boolean enabled = true;
    private ClientWorld slowedWorld;
    private IntegratedServer slowedServer;
    private float previousRate;
    private int image;
    private SoundInstance sound;
    private long endsAt;
    private MobEntity attackedMob;
    private long attackExpires;

    @Override
    public void onInitializeClient() {
        instance = this;
        KeyBinding toggle = KeyBindingHelper.registerKeyBinding(new KeyBinding("key.sigmaedit.toggle", GLFW.GLFW_KEY_F8, "key.category.sigmaedit"));
        ClientTickEvents.END_CLIENT_TICK.register(client -> {
            while (toggle.wasPressed()) {
                enabled = !enabled;
                if (!enabled && active) stop(client);
            }
            if (attackedMob != null) {
                if (client.world != attackedMob.getWorld() || System.nanoTime() > attackExpires) attackedMob = null;
                else if (attackedMob.isDead()) {
                    attackedMob = null;
                    trigger();
                }
            }
            if (active) {
                if (client.world != slowedWorld || System.nanoTime() >= endsAt) {
                    stop(client);
                }
            }
        });
        HudRenderCallback.EVENT.register((context, tickCounter) -> {
            MinecraftClient client = MinecraftClient.getInstance();
            if (!active || client.getResourceManager().getResource(IMAGES[image]).isEmpty()) return;
            int width = context.getScaledWindowWidth();
            int height = context.getScaledWindowHeight();
            int side = Math.min(width, height) / 4;
            int[] imageWidths = {386, 447, 514};
            int[] imageHeights = {518, 447, 596};
            int sourceWidth = imageWidths[image];
            int sourceHeight = imageHeights[image];
            int drawWidth = side * sourceWidth / Math.max(sourceWidth, sourceHeight);
            int drawHeight = side * sourceHeight / Math.max(sourceWidth, sourceHeight);
            context.drawTexture(RenderLayer::getGuiTextured, IMAGES[image], (width - drawWidth) / 2, height - drawHeight - 8, 0, 0, drawWidth, drawHeight, sourceWidth, sourceHeight, sourceWidth, sourceHeight, -1);
        });
    }

    public static void trigger() {
        if (instance == null || !instance.enabled) return;
        MinecraftClient client = MinecraftClient.getInstance();
        if (client.world == null) return;
        if (!instance.active) instance.start(client);
        instance.endsAt = System.nanoTime() + 8_000_000_000L;
    }

    public static boolean isActive() {
        return instance != null && instance.active;
    }

    public static void trackAttack(MobEntity mob) {
        if (instance == null || !instance.enabled) return;
        instance.attackedMob = mob;
        instance.attackExpires = System.nanoTime() + 3_000_000_000L;
    }

    private void start(MinecraftClient client) {
        active = true;
        image = random.nextInt(IMAGES.length);
        slowedWorld = client.world;
        slowedServer = client.getServer();
        if (slowedServer != null) {
            IntegratedServer server = slowedServer;
            server.execute(() -> {
                previousRate = server.getTickManager().getTickRate();
                server.getTickManager().setTickRate(Math.min(previousRate, 0.1f));
            });
        }
        ((GameRendererAccessor) client.gameRenderer).sigmaedit$setPostProcessor(EFFECT);
        sound = PositionedSoundInstance.master(SoundEvent.of(SOUND), 1.0f);
        client.getSoundManager().play(sound);
    }

    private void stop(MinecraftClient client) {
        active = false;
        if (slowedServer != null && client.getServer() == slowedServer) {
            IntegratedServer server = slowedServer;
            server.execute(() -> {
                if (server.getTickManager().getTickRate() == Math.min(previousRate, 0.1f)) {
                    server.getTickManager().setTickRate(previousRate);
                }
            });
        }
        slowedServer = null;
        slowedWorld = null;
        if (EFFECT.equals(client.gameRenderer.getPostProcessorId())) client.gameRenderer.clearPostProcessor();
        if (sound != null) client.getSoundManager().stop(sound);
        sound = null;
    }
}