Evil Pro

Create a Minecraft Java Edition 1.21.11 mod named FPSBoost.

Requirements:

  • Fake FPS display between 3000–4000.
  • Randomly update the number every second.
  • Green FPS text.
  • Minimal, realistic Minecraft PvP aesthetic.
  • No effect on actual game performance.

Precise HUD Position:

  • Position: Top-left corner.
  • X offset: 5 pixels from the left edge.
  • Y offset: 5 pixels from the top edge.
  • Keep the FPS counter fixed in this position.
  • Do not overlap the crosshair, hotbar, or other HUD elements.
  • Use a small, clean font.

Compatibility:

  • Minecraft Java 1.21.11.
  • Package as FPSBoost.zip.
  • If dynamic FPS display is impossible with a resource pack, explain the limitation and provide a compatible Fabric mod alternative.
Kodari AI
KodariYesterday at 5:26 am 2
FPSBoost
Fabric mod for Minecraft 1.21.11 that displays a fake FPS counter in the top-left HUD corner. The counter shows a random value between 3000 and 4000, updating every second with green text. Uses a minimal, clean font with 5-pixel offsets from screen edges, ensuring no overlap with existing HUD elements. Purely cosmetic with zero impact on actual game performance.
  • Add a client-only HUD counter at (5, 5), with a new random value each second.

  • Keep it separate from the actual frame rate and hide it with the HUD or debug screen.

Created FPSBoost as a client-side Fabric 1.21.11 mod. It displays a random green FPS value at (5, 5) without changing actual performance. The counter hides with the HUD and debug screen; other mods’ HUD elements may still overlap it.

A resource pack cannot generate a dynamic random FPS counter, so this uses a Fabric mod instead. The requested FPSBoost.zip has not been packaged; Kodari’s Compile button builds the mod JAR.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
5 109
src/client/java/com/fpsboost/FPSBoostClient.java
package com.fpsboost;

import java.util.concurrent.ThreadLocalRandom;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.rendering.v1.hud.HudElementRegistry;
import net.minecraft.client.MinecraftClient;
import net.minecraft.util.Identifier;

public class FPSBoostClient implements ClientModInitializer {
    private int displayedFps = ThreadLocalRandom.current().nextInt(3000, 4001);
    private long nextUpdate = System.nanoTime() + 1_000_000_000L;

    @Override
    public void onInitializeClient() {
        HudElementRegistry.addLast(Identifier.of("fpsboost", "fps_counter"), (context, tickCounter) -> {
            MinecraftClient client = MinecraftClient.getInstance();
            if (client.options.hudHidden || client.getDebugHud().shouldShowDebugHud()) {
                return;
            }

            long now = System.nanoTime();
            if (now - nextUpdate >= 0) {
                displayedFps = ThreadLocalRandom.current().nextInt(3000, 4001);
                nextUpdate = now + 1_000_000_000L;
            }
            context.drawTextWithShadow(client.textRenderer, "FPS: " + displayedFps, 5, 5, 0xFF55FF55);
        });
    }
}