Асланбек Ахманов

write a pvp visual client mod like pulse visual and plintus visual with target esp functions and so on

Kodari AI
KodariOct 18 at 11:05 am 1
PulseVision
PulseVision is a Fabric 1.21.1 client-side PvP enhancement mod featuring target ESP, hitbox visualization, and player tracking. It renders customizable colored outlines around entities, displays health bars and distance indicators above targets, and provides a configurable HUD for combat awareness. The mod includes toggleable modules for wall-through ESP, skeleton rendering, and target highlighting, all accessible via keybindings and a config GUI.
  1. Add the Fabric mod entrypoints and metadata for a client-only PvP visual mod.

  2. Implement a keybind that toggles glowing outlines on other players, including through-wall ESP.

  3. Add the keybind localization.

Created a client-only Fabric 1.21.11 mod. Press K to toggle player ESP: other loaded players get glowing outlines through walls, and their previous glow state is restored when ESP is disabled. Added the Fabric project configuration and keybind localization.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
6 154
src/client/java/com/kodari/pvpvisual/PvPVisualClient.java
package com.kodari.pvpvisual;

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.minecraft.client.network.AbstractClientPlayerEntity;
import net.minecraft.client.option.KeyBinding;
import net.minecraft.client.util.InputUtil;
import org.lwjgl.glfw.GLFW;

import java.util.IdentityHashMap;
import java.util.List;
import java.util.Map;

public class PvPVisualClient implements ClientModInitializer {
    private static final KeyBinding TOGGLE_ESP = KeyBindingHelper.registerKeyBinding(
            new KeyBinding("key.pvpvisual.toggle_esp", GLFW.GLFW_KEY_K, KeyBinding.Category.MISC)
    );
    private static final Map<AbstractClientPlayerEntity, Boolean> ORIGINAL_GLOWING = new IdentityHashMap<>();
    private static boolean espEnabled;

    @Override
    public void onInitializeClient() {
        ClientTickEvents.END_CLIENT_TICK.register(client -> {
            while (TOGGLE_ESP.wasPressed()) {
                espEnabled = !espEnabled;
                if (!espEnabled) {
                    restoreOriginalGlow();
                }
            }

            if (client.world == null || client.player == null || !espEnabled) {
                restoreOriginalGlow();
                return;
            }

            List<AbstractClientPlayerEntity> players = client.world.getPlayers();
            for (AbstractClientPlayerEntity target : players) {
                if (target == client.player) {
                    continue;
                }

                ORIGINAL_GLOWING.putIfAbsent(target, target.isGlowing());
                target.setGlowing(true);
            }

            ORIGINAL_GLOWING.entrySet().removeIf(entry -> {
                if (!players.contains(entry.getKey())) {
                    entry.getKey().setGlowing(entry.getValue());
                    return true;
                }
                return false;
            });
        });
    }

    private static void restoreOriginalGlow() {
        ORIGINAL_GLOWING.forEach(AbstractClientPlayerEntity::setGlowing);
        ORIGINAL_GLOWING.clear();
    }
}