zxcy_pot

Make i minecraft clients side mod java 1.21.11 (In this mod when pressing F6+U"this enables to location of the nearest diamond and saying it cordinate in the chat and highlights the diamond we a bright red shade so it can be seen from 100 block radius"F6+I"for iron" F6+O" for lapis" F6+P "For redstone" F5+U "For nearest mob spawn Their aura will bee bright glowing cyan colour and can bee seen easily from above the ground" F5+I "ar

Kodari AI
KodariNov 4 at 4:19 pm 1
OreRadar
Client-side Minecraft Fabric mod for 1.21.11. Press F6+U to locate the nearest diamond, F6+I for iron, F6+O for lapis, F6+P for redstone, displaying coordinates in chat and highlighting the ore with a bright red shade visible from 100 blocks. Press F5+U to find the nearest mob spawn, showing a bright cyan glowing aura visible from above ground. F5+I activates additional mob detection features.

What should F5+I do? Your message cuts off there. Also, does “mob spawn” mean the nearest mob spawner block?

The mod can only locate blocks in chunks your client has received; it can’t reliably find ores or spawners in unloaded chunks.

zxcy_pot

Make i minecraft clients side mod java 1.21.11 (In this mod when pressing F6+U"this enables to location of the nearest diamond and saying it cordinate in the chat and highlights the diamond we a bright red shade so it can be seen from 100 block radius"F6+I"for iron" F6+O" for lapis" F6+P "For redstone" F5+U "For nearest mob spawn Their aura will bee bright glowing cyan colour and can bee seen easily from above the ground" F5+I "Location with their cordinates in the chat of nearest village and trial chamber, Nether Fortress, Bastion,Pillager outpost, woodland mansion" F5+O "Reveals biome cordinate in the chat of Mushroom island, plains ,taiga, jungle, savana,Badland,Tundra" Btw this mod should be clients sided and only shows the chat cordinates to the player who used it meaning if I use F5+O the cordinates in the chat will be only seen by me And this should works without cheats enabled and being a member if anything else is missing you can add some features

Kodari AI
KodariNov 4 at 4:26 pm 3

A client-side mod can privately highlight ores and spawner blocks and report their coordinates, but only when their chunks have been sent to your client. It cannot reliably locate distant structures or biomes that the server hasn’t sent, especially without cheats or server-side support.

Would you like me to build it using loaded-chunk scanning, with structure and biome results limited to what the client can observe? I’ll treat “mob spawn” as a mob spawner block.

zxcy_pot

Can you do without loaded chunks scanning so if I have a render distance of 5 chunks I would bee able to scan only 5 chunks for structure and biome so I want it to scan atleast 128 chunks if it is possible or 64

Kodari AI
KodariNov 4 at 4:28 pm 1

Not reliably on a multiplayer server. A client-side mod can only scan chunks the server has sent it; setting a scan radius of 64 or 128 chunks won’t reveal chunks beyond that. The server also limits how many chunks you receive, regardless of your render-distance setting.

Scanning farther would require server-side support, such as a mod or plugin. In singleplayer, a different approach could use the world’s seed or local world data, but that wouldn’t work generally on servers where the seed is hidden.

zxcy_pot

I guess do 32 chunks

Kodari AI
KodariNov 4 at 4:29 pm 1

A 32-chunk radius still can’t reveal chunks the server hasn’t sent—even if your render distance is 5 chunks.

I can build the client-side mod to scan up to 32 chunks, limited to received chunks. Would you like that?

zxcy_pot

I will have my render distance of 32

Kodari AI
KodariNov 4 at 4:37 pm 7
  1. Add private keybinds and scan received chunks within 32 chunks.

  2. Highlight nearby ores and spawners, and report their coordinates.

  3. Report observable biomes and structures where client data permits. Server view distance may still limit the scan.

Created a client-side locator that reports ore, spawner and sampled biome coordinates privately in chat. It scans only received chunks, up to 32 chunks for biomes and 100 blocks for ores and spawners.

Not yet implemented: red and cyan through-wall highlights. Structure locations also can’t be reliably determined from client chunk data, so F5+I displays an explanation instead.

zxcy_pot

Can make it also it canicate structure of Hut, shipreck , ruined portal , and sawmo biome . And can you implement the highlights

Kodari AI
KodariNov 4 at 4:49 pm 9
  1. Add detectable huts, shipwrecks, ruined portals, and swamp biomes.

  2. Add through-wall ore and spawner highlights.

Added swamp and mangrove swamp to F5+O biome results, plus through-wall highlights for the nearest scanned ore or spawner: red for ores and cyan for spawners.

Huts, shipwrecks and ruined portals aren’t implemented: the server doesn’t normally send their structure locations to clients, even for received chunks. Biome and block scans remain limited to received chunks.

zxcy_pot

The compilation failed with this error:

code
Compilation failed with 4 error(s):

ERROR in src/client/java/com/kodari/locator/PrivateLocator.java at line 10: package net.fabricmc.fabric.api.client.rendering.v1.world does not exist
import net.fabricmc.fabric.api.client.rendering.v1.world.WorldRenderEvents;
                                                        ^

ERROR in src/client/java/com/kodari/locator/PrivateLocator.java at line 50: package WorldRenderEvents does not exist
        WorldRenderEvents.BEFORE_DEBUG_RENDER.register(context -> {
                         ^

ERROR in   src/client/java/com/kodari/locator/PrivateLocator.java at line 10: package net.fabricmc.fabric.api.client.rendering.v1.world does not exist
  import net.fabricmc.fabric.api.client.rendering.v1.world.WorldRenderEvents;
                                                          ^

ERROR in   src/client/java/com/kodari/locator/PrivateLocator.java at line 50: package WorldRenderEvents does not exist
          WorldRenderEvents.BEFORE_DEBUG_RENDER.register(context -> {
                           ^


=== COMPILATION ERROR ANALYSIS ===

FILES TO INVESTIGATE:
  - src/client/java/com/kodari/locator/PrivateLocator.java
  -   src/client/java/com/kodari/locator/PrivateLocator.java

Please fix this error by creating a new artifact with the corrected code.

Kodari AI
KodariNov 5 at 3:57 am 9

I couldn’t produce a reliable fix yet. The project already imports the package shown in the mounted Fabric 1.21.11 source, but the compiler reports that package is missing, so the configured dependency and the compiler’s classpath appear to disagree.

No corrected artifact was created. Please share the full build log, especially dependency-resolution details, so I can identify which Fabric API version the compiler is actually using.

zxcy_pot

Ok the mod works but can you make sure when i press the buttons they should be highlighted with their colour so the cab be seen through many layers of blocks or you can just add a line from the player to the block like a line literally pointing towards it make sure it disappears when the person mine the respective ore. Btw can you tell me the list of the keys again and their purpose

Kodari AI
KodariNov 5 at 6:05 pm 7

I’ll add a red or cyan through-wall line to the selected block and remove it when that block disappears. The line will replace any previous target when you run another ore or spawner scan.

Added a through-wall line from you to the nearest found block: red for ores, cyan for spawners. It disappears when the target is mined or replaced.

Keys

  • F6+U: Diamond ore

  • F6+I: Iron ore

  • F6+O: Lapis ore

  • F6+P: Redstone ore

  • F5+U: Mob spawner

  • F5+I: Structure information—not currently locatable

  • F5+O: Requested biome coordinates, including swamps

Results appear only in your chat and are limited to chunks received by your client. A new ore or spawner scan replaces the previous line.

zxcy_pot

As you can see it is difficult in tracking as the line dosent appear in first person and can you make targetted ore to glow. Make f7+U for netherite F7+I for coal F7+O for gold and F7+P for unlooted chest . Btw the structures one make it so it tracks the bell if the bell cordinate is found the village is found

Kodari AI
KodariNov 6 at 4:24 am 4
  1. Fix first-person tracking and add a visible target highlight.

  2. Add F7 ore and chest searches.

  3. Use bells as possible village indicators.

  • Added a through-wall colored outline and adjusted the line’s starting point for first-person view. The marker disappears when the target is mined or replaced.

  • F7+U: Ancient debris (used to make netherite).

  • F7+I: Coal ore.

  • F7+O: Gold ore, including Nether gold ore.

  • F7+P: Explains that unlooted chests can’t reliably be identified from client data.

  • F5+I: Finds the nearest bell in received chunks within 32 chunks. A bell suggests a village but doesn’t guarantee one.

The outline is a bright marker, not actual block lighting. These changes haven’t been tested in-game; use Compile to build them.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
8 366
src/client/java/com/kodari/locator/PrivateLocator.java
package com.kodari.locator;

import com.kodari.locator.mixin.RenderLayerInvoker;
import com.mojang.blaze3d.pipeline.BlendFunction;
import com.mojang.blaze3d.pipeline.RenderPipeline;
import com.mojang.blaze3d.platform.DepthTestFunction;
import com.mojang.blaze3d.vertex.VertexFormat;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents;
import net.minecraft.block.Block;
import net.minecraft.block.Blocks;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.gl.UniformType;
import net.minecraft.client.render.RenderLayer;
import net.minecraft.client.render.DrawStyle;
import net.minecraft.client.render.RenderSetup;
import net.minecraft.client.render.VertexConsumer;
import net.minecraft.client.render.VertexFormats;
import net.minecraft.client.util.InputUtil;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.client.world.ClientWorld;
import net.minecraft.registry.RegistryKey;
import net.minecraft.text.Text;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Box;
import net.minecraft.util.math.Vec3d;
import net.minecraft.world.chunk.ChunkSection;
import net.minecraft.world.chunk.ChunkStatus;
import net.minecraft.world.chunk.WorldChunk;
import net.minecraft.world.debug.gizmo.GizmoDrawing;
import org.lwjgl.glfw.GLFW;

import java.util.ArrayList;
import java.util.Comparator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

public final class PrivateLocator implements ClientModInitializer {
    private static PrivateLocator instance;
    private static final int CHUNK_RADIUS = 32;
    private static final int BLOCK_RADIUS = 100;
    private boolean previousU, previousI, previousO, previousP;
    private Scan scan;
    private ClientWorld highlightWorld;
    private BlockPos highlight;
    private Block highlightFirst, highlightSecond;
    private boolean spawnerHighlight;
    private RenderLayer highlightLayer;

    @Override
    public void onInitializeClient() {
        instance = this;
        ClientTickEvents.END_CLIENT_TICK.register(this::tick);
    }

    public static void renderTarget() {
        PrivateLocator locator = instance;
        MinecraftClient client = MinecraftClient.getInstance();
        if (locator == null || locator.highlight == null || client.player == null || client.world != locator.highlightWorld) return;
        WorldChunk chunk = client.world.getChunkManager().getChunk(locator.highlight.getX() >> 4, locator.highlight.getZ() >> 4, ChunkStatus.FULL, false);
        if (chunk == null) return;
        var state = client.world.getBlockState(locator.highlight);
        if (!state.isOf(locator.highlightFirst) && !state.isOf(locator.highlightSecond)
                && !(locator.highlightFirst == Blocks.GOLD_ORE && state.isOf(Blocks.NETHER_GOLD_ORE))) {
            locator.highlight = null;
            locator.highlightWorld = null;
            return;
        }
        try (var scope = client.worldRenderer.startDrawingGizmos()) {
            int color = locator.spawnerHighlight ? 0xFF00FFFF : 0xFFFF0000;
            Vec3d start = client.gameRenderer.getCamera().getCameraPos().add(client.player.getRotationVec(1.0f).multiply(0.5));
            GizmoDrawing.line(start, Vec3d.ofCenter(locator.highlight), color, 4.0f).ignoreOcclusion();
            GizmoDrawing.box(new Box(locator.highlight), DrawStyle.stroked(color, 4.0f)).ignoreOcclusion();
        }
    }

    private void tick(MinecraftClient client) {
        if (client.player == null || client.world == null) {
            scan = null;
            highlight = null;
            highlightWorld = null;
            previousU = previousI = previousO = previousP = false;
            return;
        }

        boolean u = pressed(client, GLFW.GLFW_KEY_U);
        boolean i = pressed(client, GLFW.GLFW_KEY_I);
        boolean o = pressed(client, GLFW.GLFW_KEY_O);
        boolean p = pressed(client, GLFW.GLFW_KEY_P);
        boolean f5 = pressed(client, GLFW.GLFW_KEY_F5);
        boolean f6 = pressed(client, GLFW.GLFW_KEY_F6);
        boolean f7 = pressed(client, GLFW.GLFW_KEY_F7);
        if (client.currentScreen == null) {
            if (f6 && u && !previousU) start(client, "Diamond", Blocks.DIAMOND_ORE, Blocks.DEEPSLATE_DIAMOND_ORE);
            else if (f6 && i && !previousI) start(client, "Iron", Blocks.IRON_ORE, Blocks.DEEPSLATE_IRON_ORE);
            else if (f6 && o && !previousO) start(client, "Lapis", Blocks.LAPIS_ORE, Blocks.DEEPSLATE_LAPIS_ORE);
            else if (f6 && p && !previousP) start(client, "Redstone", Blocks.REDSTONE_ORE, Blocks.DEEPSLATE_REDSTONE_ORE);
            else if (f5 && u && !previousU) start(client, "Spawner", Blocks.SPAWNER, Blocks.SPAWNER);
            else if (f5 && i && !previousI) start(client, "Bell (possible village)", Blocks.BELL, Blocks.BELL);
            else if (f5 && o && !previousO) start(client, "Biomes", null, null);
            else if (f7 && u && !previousU) start(client, "Ancient debris", Blocks.ANCIENT_DEBRIS, Blocks.ANCIENT_DEBRIS);
            else if (f7 && i && !previousI) start(client, "Coal", Blocks.COAL_ORE, Blocks.DEEPSLATE_COAL_ORE);
            else if (f7 && o && !previousO) start(client, "Gold", Blocks.GOLD_ORE, Blocks.DEEPSLATE_GOLD_ORE);
            else if (f7 && p && !previousP) message(client, "Unlooted chests cannot be reliably identified from client data.");
        }
        previousU = u;
        previousI = i;
        previousO = o;
        previousP = p;

        if (scan != null) {
            if (scan.world != client.world) {
                scan = null;
            } else if (scan.step()) {
                scan.report(client);
                if (scan.first != null) {
                    highlight = scan.nearest;
                    highlightWorld = scan.world;
                    highlightFirst = scan.first;
                    highlightSecond = scan.second;
                    spawnerHighlight = scan.first == Blocks.SPAWNER;
                }
                scan = null;
            }
        }
    }

    private static boolean pressed(MinecraftClient client, int key) {
        return InputUtil.isKeyPressed(client.getWindow(), key);
    }

    private void start(MinecraftClient client, String name, Block first, Block second) {
        if (first != null) {
            highlight = null;
            highlightWorld = null;
        }
        scan = new Scan(client.world, client.player.getBlockPos(), name, first, second);
        message(client, "Scanning received chunks for " + name + "... (new scan cancels the previous one)");
    }

    private static void message(MinecraftClient client, String text) {
        client.player.sendMessage(Text.literal("[Locator] " + text), false);
    }

    private static final class Scan {
        private final ClientWorld world;
        private final BlockPos origin;
        private final String name;
        private final Block first, second;
        private final List<int[]> chunks = new ArrayList<>();
        private final Map<String, BlockPos> biomes = new LinkedHashMap<>();
        private int index;
        private BlockPos nearest;
        private double nearestDistance = Double.MAX_VALUE;

        private Scan(ClientWorld world, BlockPos origin, String name, Block first, Block second) {
            this.world = world;
            this.origin = origin;
            this.name = name;
            this.first = first;
            this.second = second;
            int centerX = origin.getX() >> 4;
            int centerZ = origin.getZ() >> 4;
            int radius = first == null || first == Blocks.BELL ? CHUNK_RADIUS : 7;
            for (int dx = -radius; dx <= radius; dx++) {
                for (int dz = -radius; dz <= radius; dz++) {
                    if (dx * dx + dz * dz <= radius * radius) chunks.add(new int[]{centerX + dx, centerZ + dz});
                }
            }
            chunks.sort(Comparator.comparingInt(c -> {
                int dx = c[0] - centerX, dz = c[1] - centerZ;
                return dx * dx + dz * dz;
            }));
        }

        private boolean step() {
            int budget = first == null || first == Blocks.BELL ? 24 : 2;
            while (budget-- > 0 && index < chunks.size()) {
                int[] pos = chunks.get(index++);
                WorldChunk chunk = world.getChunkManager().getChunk(pos[0], pos[1], ChunkStatus.FULL, false);
                if (chunk == null) continue;
                if (first == null) scanBiome(pos[0], pos[1]);
                else scanBlocks(chunk, pos[0], pos[1]);
            }
            return index >= chunks.size();
        }

        private void scanBlocks(WorldChunk chunk, int chunkX, int chunkZ) {
            ChunkSection[] sections = chunk.getSectionArray();
            for (int s = 0; s < sections.length; s++) {
                ChunkSection section = sections[s];
                if (section.isEmpty()) continue;
                if (!section.hasAny(state -> state.isOf(first) || state.isOf(second)
                        || (first == Blocks.GOLD_ORE && state.isOf(Blocks.NETHER_GOLD_ORE)))) continue;
                int baseY = chunk.getBottomY() + s * 16;
                if (first != Blocks.BELL && (baseY > origin.getY() + BLOCK_RADIUS || baseY + 15 < origin.getY() - BLOCK_RADIUS)) continue;
                for (int x = 0; x < 16; x++) for (int z = 0; z < 16; z++) {
                    int bx = chunkX * 16 + x, bz = chunkZ * 16 + z;
                    int dx = bx - origin.getX(), dz = bz - origin.getZ();