Kavyansh14

Create a Minecraft Fabric client-side optimization and PvP utility mod focused on maximum FPS and a clean competitive PvP experience.

Requirements:

  1. FPS Optimization
  • Optimize rendering and client performance as much as possible, similar in purpose to Sodium.
  • Reduce unnecessary rendering calculations.
  • Optimize particles, entities, animations and visual effects.
  • Avoid unnecessary CPU/GPU usage.
  • Keep the mod lightweight and client-side.
  • Do not change gameplay mechanics or give unfair gameplay advantages.
  1. Particles
  • Add an option to completely disable particles.
  • Add separate settings for potion particles, block particles, combat particles and environmental particles.
  • Allow the player to choose between OFF / LOW / DEFAULT.
  1. Potion Effects
  • Keep all normal Minecraft potion effects available and functional.
  • Add a clean HUD showing active potion effects.
  • Show potion icon, name and remaining duration.
  • Make the HUD compact and customizable.
  1. Smaller PvP Items
  • Add configurable smaller first-person item models for:

- Sword - Axe - Totem - Other held items

  • Allow adjustable item scale through a config menu.
  • Keep the models visually clean and centered.
  1. Shield
  • Add an option to hide the shield from the first-person view while it is equipped/held.
  • The shield must continue functioning normally.
  1. Fire Reduction
  • Reduce the amount of fire covering the first-person screen.
  • Add options:

- Normal Fire - Low Fire - Minimal Fire - Hidden Fire

  • Do not disable fire mechanics; only change its visual overlay.
  1. PvP Performance
  • Prioritize stable FPS and low frame-time spikes.
  • Reduce unnecessary visual effects during combat.
  • Provide configurable settings so players can balance visual quality and performance.
  1. Configuration

Create an in-game configuration screen with toggles/sliders for:

  • FPS optimization
  • Particle settings
  • Potion HUD
  • Sword scale
  • Axe scale
  • Totem scale
  • Shield visibility
  • Fire overlay intensity
  • Other visual optimizations
  1. Compatibility
  • Fabric client-side mod.
  • Make it compatible with the target Minecraft version.
  • Avoid conflicts with common performance mods where possible.
  • Do not include cheats, combat automation, reach changes, auto-clicking, or gameplay manipulation.
  1. Code Quality
  • Use clean, modular Java code.
  • Separate rendering, configuration, HUD and optimization systems.
  • Include proper Fabric metadata and dependencies.
  • Provide complete buildable source code and explain how to build the .jar.

The final result should feel like a lightweight PvP/FPS optimization mod with the visual simplicity of a competitive Minecraft client, while keeping normal Minecraft gameplay intact.

Kodari AI
KodariOct 14 at 8:56 am 4
CompetitiveFPS
A Fabric client-side optimization and PvP utility mod for Minecraft 1.21.1, designed to maximize FPS and provide a clean competitive experience. It features advanced particle control (off/low/default for potion, block, combat, environmental), a customizable potion effect HUD with icons and timers, configurable smaller first-person item models for sword/axe/totem, shield visibility toggle, fire overlay intensity options (normal/low/minimal/hidden), and comprehensive performance optimizations similar to Sodium. Includes an in-game configuration screen with sliders and toggles for all settings. Maintains vanilla gameplay mechanics without cheats or unfair advantages, prioritizing stable frame times and reduced visual clutter during combat.
  1. Set up the Fabric 1.21.11 client mod project and metadata.

  2. Add persisted PvP/FPS settings and a YACL configuration screen.

  3. Implement the potion HUD and client rendering optimizations with targeted mixins.

  4. Add the mixin configuration and bundled-library manifest.

Created Clear PvP, a client-only Fabric 1.21.11 mod with a YACL settings screen opened by O. It includes a potion-effects HUD, separate particle controls, first-person item scaling, an optional hidden shield model, and normal/low/minimal/hidden fire overlays. The FPS option reduces DEFAULT particle volume; LOW retains about one quarter. These changes are visual only and do not alter potion effects, shields, or fire mechanics.

This is a lightweight visual companion, not a replacement for Sodium; it reduces particle workload rather than replacing Minecraft’s entity or animation rendering systems.

To get the JAR in Kodari: click Compile in the desktop top bar (or ⋮ → Compile Project on phone), click Compile in the window, then Download after it succeeds.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
manifest.kod
settings.gradle
Code
14 544
src/client/java/com/kodari/clearpvp/ClearPvpClient.java
package com.kodari.clearpvp;

import com.kodari.clearpvp.config.PvpConfig;
import com.kodari.clearpvp.hud.PotionHud;
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.hud.HudElementRegistry;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.option.KeyBinding;
import net.minecraft.util.Identifier;
import org.lwjgl.glfw.GLFW;

public final class ClearPvpClient implements ClientModInitializer {
    public static final String MOD_ID = "clearpvp";
    private static final KeyBinding.Category CATEGORY = KeyBinding.Category.create(Identifier.of(MOD_ID, "main"));
    private static final KeyBinding OPEN_CONFIG = KeyBindingHelper.registerKeyBinding(
            new KeyBinding("key.clearpvp.open_config", GLFW.GLFW_KEY_O, CATEGORY)
    );

    @Override
    public void onInitializeClient() {
        PvpConfig.load();
        HudElementRegistry.addLast(Identifier.of(MOD_ID, "potion_hud"), PotionHud::render);
        ClientTickEvents.END_CLIENT_TICK.register(client -> {
            while (OPEN_CONFIG.wasPressed()) {
                client.setScreen(PvpConfig.createScreen(client.currentScreen));
            }
        });
    }
}