Jestin Leigh Paranal

player esp minecraft with lines

Kodari AI
KodariNov 9 at 9:47 am 2
PlayerEspLines
PlayerEspLines is a Minecraft Fabric mod that enhances player visibility by rendering colored outline lines around nearby players. It provides configurable line colors, distance-based rendering, and toggleable visibility settings. The mod uses a client-side rendering system that draws crisp, glowing outlines around player entities, making them easier to spot in crowded or dark environments. Features include adjustable line thickness, custom color selection per player, and performance-optimized rendering that only activates when players are within a configurable range. Ideal for PvP servers, minigames, or large multiplayer events where tracking opponents is crucial.
  • Draw boxes and tracer lines through walls around other players.

  • Keep the mod client-side and use interpolated player positions.

Created a client-side Player ESP mod with cyan boxes and tracer lines visible through walls. It highlights other players automatically.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
5 115
src/client/java/com/kodari/playeresp/PlayerEspClient.java
package com.kodari.playeresp;

import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.rendering.v1.level.LevelRenderEvents;
import net.minecraft.client.Minecraft;
import net.minecraft.gizmos.GizmoStyle;
import net.minecraft.gizmos.Gizmos;
import net.minecraft.world.phys.AABB;
import net.minecraft.world.phys.Vec3;

public class PlayerEspClient implements ClientModInitializer {
    private static final int COLOR = 0xFF55FFFF;

    @Override
    public void onInitializeClient() {
        LevelRenderEvents.BEFORE_GIZMOS.register(context -> {
            Minecraft client = Minecraft.getInstance();
            if (client.level == null || client.player == null) {
                return;
            }

            Vec3 camera = context.levelState().cameraRenderState.pos;
            float partialTicks = context.levelState().worldPartialTicks;
            try (Gizmos.TemporaryCollection ignored = context.levelRenderer().collectPerFrameRenderThreadGizmos()) {
                for (var player : client.level.players()) {
                    if (player == client.player) {
                        continue;
                    }
                    AABB box = player.getInterpolatedBoundingBox(partialTicks);
                    Gizmos.cuboid(box, GizmoStyle.stroke(COLOR, 2.0F)).setAlwaysOnTop();
                    Gizmos.line(camera, box.getCenter(), COLOR, 2.0F).setAlwaysOnTop();
                }
            }
        });
    }
}