scott anderson

make me a 1.21.11 fabric minecraft mod that highlights all storage blocks and players from over 1000 blocks away with tracers and make it very costumisable so you can change the colours of eatch storage item and players

Kodari AI
KodariOct 19 at 2:27 am 4
StorageTracerOverlay
Creates a highly customizable Fabric mod for Minecraft 1.21.11 that renders visible tracer lines and highlights for all storage blocks and players within a configurable radius exceeding 1000 blocks. Users can independently customize colors, opacity, line thickness, and toggle visibility for each storage type (chests, barrels, shulker boxes, etc.) and for players through an intuitive configuration interface. Features include per-entity color selection, distance-based fading, performance optimizations for large view distances, and real-time updates as entities move or are added/removed. The mod provides extensive settings for tracer style, highlight effects, and rendering preferences, ensuring players can tailor the visual experience to their exact needs.
  1. Build a client-side ESP for nearby loaded storage blocks and players, with distance-filtered tracers.

  2. Add per-storage-type and player color settings through a YACL config screen.

  3. Register the client hooks and bundle YACL/ModMenu dependencies.

Created Storage Radar, a client-only Fabric 1.21.11 mod. In Mods → Storage Radar → Configure, you can set separate colors for vanilla storage types and players, toggle outlines/tracers, and adjust the range up to 10,000 blocks. Settings save to config/storage_radar.properties.

Distance limitation: the mod can highlight only storage blocks in loaded chunks and players currently tracked by the client. It cannot reveal unloaded blocks or players the server is not sending, so visibility beyond 1,000 blocks depends on those targets already being available to the client.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
manifest.kod
settings.gradle
Code
10 457
src/client/java/com/kodari/storageradar/StorageRadarClient.java
package com.kodari.storageradar;

import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientChunkEvents;
import net.fabricmc.fabric.api.client.rendering.v1.world.WorldRenderEvents;

public class StorageRadarClient implements ClientModInitializer {
    @Override
    public void onInitializeClient() {
        StorageRadarConfig.load();
        ClientChunkEvents.CHUNK_LOAD.register((world, chunk) -> StorageRadarRenderer.onChunkLoad(chunk));
        ClientChunkEvents.CHUNK_UNLOAD.register((world, chunk) -> StorageRadarRenderer.onChunkUnload(chunk));
        WorldRenderEvents.AFTER_ENTITIES.register(StorageRadarRenderer::render);
    }
}