Ruby

create a fabric 26.2 client side mod that when pressing a keybind will search a certain radius around the player that is configurable ina performance low fps cost way to search for players and other entities, and whenever it finds any, it highlights them in a silhouette thats also configurable, allow for mod menu to be compatible with this mod for configuration along with a keybind that players can set in the controls section of the vanilla settings that opens up the config and also a keybind to start the scanning process

Kodari AI
KodariOct 22 at 6:15 pm 3
EntityRadarScanner
Client-side Fabric mod for Minecraft 26.2 that scans a configurable radius around the player for entities using an optimized, low-FPS-impact chunk-based search. Highlights detected players and entities with a configurable silhouette effect. Integrates with Mod Menu for configuration, adds a vanilla Controls keybind to open settings, and a separate keybind to trigger scanning.
  1. Set up the Fabric 26.2 client mod and register scan/config keybinds.

  2. Add a periodic, radius-bounded scan that highlights matching entities and cleans up its highlights safely.

  3. Add configurable scan options with YACL, expose them through Mod Menu, and add the required project metadata/dependencies.

  1. Added the client-only Fabric 26.2 mod with G to toggle scanning and H to open settings; both keybinds are remappable in Controls.

  2. Scans a configurable radius on a configurable interval, filters players and other entities separately, and applies vanilla glowing outlines. Highlights are cleared when scanning stops or the world unloads.

  3. Added a YACL settings screen, available from Mod Menu and the H keybind. Defaults are a 32-block radius and a scan every 5 ticks.

Ruby

scanning should be able to go up to 1k blocks+ should be able to customise the colors for the highlihgts

additionally the keybinds arent inside of the controls menu and there should be a section in the config to set keybinds too

h also enabled or disables the highlihgter doesnt open the config and idk the keybind to start the actual scan

Kodari AI
KodariOct 22 at 6:44 pm 4
  1. Expand scan radius to 1,000+ blocks and add configurable highlight colors.

  2. Fix keybind registration and make the scan toggle/config actions discoverable and unambiguous.

  3. Add keybind editing in config and clarify the actual scan controls.

  1. Radius and separate player/entity color controls are in place; scanning iterates tracked entities instead of querying a huge bounding box.

  2. I’ll correct the keybind registration and make the scan-toggle/config actions explicit.

  3. Then I’ll add configurable keybinds to the settings UI and verify the displayed control labels match their actions.

  • Scan radius now goes up to 2,048 blocks. Scans check client-tracked entities, avoiding a huge empty-area query; they don’t load chunks.

  • Added separate configurable colors for players and other entities.

  • The keybinds now have their own Entity Silhouette Scanner category in Controls. Defaults: G starts/stops scanning; H opens settings. The settings screen also has a Keybinds section; enter identifiers such as key.keyboard.g or key.mouse.left. You can still remap them in Controls.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
manifest.kod
settings.gradle
Code
11 454
src/client/java/dev/kodari/entitysilhouette/client/EntitySilhouetteClient.java
package dev.kodari.entitysilhouette.client;

import com.mojang.blaze3d.platform.InputConstants;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents;
import net.fabricmc.fabric.api.client.keymapping.v1.KeyMappingHelper;
import net.minecraft.client.KeyMapping;
import net.minecraft.client.Minecraft;
import net.minecraft.client.multiplayer.ClientLevel;
import net.minecraft.resources.Identifier;
import net.minecraft.world.entity.Entity;
import net.minecraft.world.entity.player.Player;

import java.util.Collections;
import java.util.IdentityHashMap;
import java.util.Iterator;
import java.util.Set;

public final class EntitySilhouetteClient implements ClientModInitializer {
    private static KeyMapping scanKey;
    private static KeyMapping configKey;
    private static final KeyMapping.Category KEY_CATEGORY = KeyMapping.Category.register(
            Identifier.fromNamespaceAndPath("entity_silhouette", "scanner")
    );
    private static boolean scanning;
    private static int scanTicks;
    private static final Set<Entity> highlighted = Collections.newSetFromMap(new IdentityHashMap<>());

    @Override
    public void onInitializeClient() {
        EntitySilhouetteConfig.load();
        scanKey = KeyMappingHelper.registerKeyMapping(new KeyMapping(
                "key.entity_silhouette.toggle_scan",
                InputConstants.Type.KEYSYM,
                InputConstants.KEY_G,
                KEY_CATEGORY
        ));
        configKey = KeyMappingHelper.registerKeyMapping(new KeyMapping(
                "key.entity_silhouette.open_config",
                InputConstants.Type.KEYSYM,
                InputConstants.KEY_H,
                KEY_CATEGORY
        ));
        ClientTickEvents.END_CLIENT_TICK.register(EntitySilhouetteClient::tick);
    }

    private static void tick(Minecraft client) {
        boolean scanPressed = scanKey.consumeClick();
        boolean configPressed = configKey.consumeClick();

        if (client.level == null || client.player == null) {
            scanning = false;
            clearHighlights();
            return;
        }

        if (client.gui.screen() == null) {
            if (configPressed) {
                client.gui.setScreen(EntitySilhouetteConfig.createScreen(null));
            }
            if (scanPressed) {
                scanning = !scanning;
                scanTicks = 0;
                if (!scanning) {
                    clearHighlights();
                }
            }
        }

        if (!scanning) {
            return;
        }

        if (scanTicks++ % EntitySilhouetteConfig.scanInterval == 0) {
            scan(client.level, client.player);
        }
    }

    private static void scan(ClientLevel level, Player player) {
        double radius = EntitySilhouetteConfig.scanRadius;
        double radiusSquared = radius * radius;
        Set<Entity> found = Collections.newSetFromMap(new IdentityHashMap<>());
        for (Entity entity : level.entitiesForRendering()) {
            if (entity == player
                    || !entity.isAlive()
                    || entity.isRemoved()
                    || entity.distanceToSqr(player) > radiusSquared
                    || (entity instanceof Player
                    ? !EntitySilhouetteConfig.highlightPlayers
                    : !EntitySilhouetteConfig.highlightOtherEntities)) {
                continue;
            }

            found.add(entity);
            if (!entity.hasGlowingTag()) {
                entity.setGlowingTag(true);
                highlighted.add(entity);
            }
        }

        Iterator<Entity> iterator = highlighted.iterator();
        while (iterator.hasNext()) {
            Entity entity = iterator.next();
            if (!found.contains(entity)) {
                if (!entity.isRemoved()) {
                    entity.setGlowingTag(false);
                }
                iterator.remove();
            }
        }
    }

    public static int getOutlineColor(Entity entity, int vanillaColor) {
        if (!highlighted.contains(entity)) {
            return vanillaColor;
        }
        return entity instanceof Player
                ? EntitySilhouetteConfig.playerHighlightColor
                : EntitySilhouetteConfig.otherEntityHighlightColor;
    }

    public static String currentScanKeyBinding() {
        return scanKey.saveString();
    }

    public static String currentConfigKeyBinding() {
        return configKey.saveString();
    }

    public static void applyKeyBindings(String scanBinding, String configBinding) {
        scanKey.setKey(parseKey(scanBinding, scanKey));
        configKey.setKey(parseKey(configBinding, configKey));
        Minecraft.getInstance().options.save();
    }

    private static InputConstants.Key parseKey(String name, KeyMapping mapping) {
        try {
            return InputConstants.getKey(name.trim());
        } catch (IllegalArgumentException exception) {
            return InputConstants.getKey(mapping.saveString());
        }
    }

    private static void clearHighlights() {
        for (Entity entity : highlighted) {
            if (!entity.isRemoved()) {
                entity.setGlowingTag(false);
            }
        }
        highlighted.clear();
    }
}