Noah Lee

make a code for 26.2 a code where any block in a 256 block radius gets highlighted white and have a text next to that block that says the name of it. make it so 1 on the keypad turns it off and 2 on the keypad opens a ui where it shows you the blocks you can click to choose the blocks that is highlighted and has a text make it so you can see it through walls. Make it so it shows every block in the game and you can click on it so you can see that block and if you don't want that block to be shown just click on it again to turn it off

Kodari AI
KodariOct 2 at 5:13 am 4
BlockHighlightScanner
Creates a Minecraft Fabric mod for version 26.2 that highlights all blocks within a 256-block radius with a white outline and displays the block name as floating text visible through walls. Pressing keypad 1 toggles the highlighting system off, while keypad 2 opens a comprehensive UI listing every block in the game. The UI allows players to click any block entry to toggle whether that specific block type is highlighted and labeled. Clicking an enabled block again disables it, giving full control over which block types are displayed. The mod uses custom rendering to draw white outlines and name labels that remain visible through obstacles, providing an enhanced block identification and scanning experience for exploration and resource location.
  1. Set up the Fabric 26.2 mod and keypad controls.

  2. Add through-wall block outlines and nearby name labels.

  3. Add a searchable, scrollable block picker that toggles which blocks are shown.

Created the client-side Fabric 26.2 mod. Numpad 1 toggles highlighting; numpad 2 opens a scrollable list of every registered block, where clicking a row enables or disables that block.

Selected non-air blocks within a 256-block radius get white outlines and name labels rendered through walls. The mod scans currently loaded chunks and refreshes its results once per second; it can’t inspect chunks the client hasn’t loaded.

Noah Lee

it keeps on crashing my game make it 64 blocks distance

Kodari AI
KodariOct 2 at 5:35 am 1

Changed the scan and highlight radius from 256 to 64 blocks.

Noah Lee

it keeps crashing fix that

Kodari AI
KodariOct 2 at 5:39 am 1

[Generation stopped]

Noah Lee

fix it

Kodari AI
KodariOct 2 at 5:42 am 1
  1. Bound the scan results so the mod cannot enqueue thousands of through-wall outlines and labels each frame.

  2. Keep the 64-block range and preserve the block-picker behavior.

Limited highlighting to the 256 nearest blocks within the existing 64-block radius. This prevents the scanner from building a huge results list and flooding each frame with through-wall outlines and labels; the picker still lists every block.

Noah Lee

make it so you can search for a certain block but also make it so you start with 0 highlighted and you can just choose

Kodari AI
KodariOct 2 at 6:01 am 1
  1. Add block-name search to the picker.

  2. Make the initial selection empty so you choose which blocks are highlighted.

Added a clickable search box that filters by block name or ID. The picker now starts with no blocks selected, so highlighting begins only after you choose blocks.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
8 419
src/client/java/com/example/blockradar/BlockRadarClient.java
package com.example.blockradar;

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.gui.screens.Screen;
import net.minecraft.network.chat.Component;

public final class BlockRadarClient implements ClientModInitializer {
	private static final KeyMapping TOGGLE_HIGHLIGHTING = KeyMappingHelper.registerKeyMapping(
		new KeyMapping("key.blockradar.toggle", InputConstants.Type.KEYSYM, InputConstants.KEY_NUMPAD1, KeyMapping.Category.MISC)
	);
	private static final KeyMapping OPEN_BLOCK_PICKER = KeyMappingHelper.registerKeyMapping(
		new KeyMapping("key.blockradar.select", InputConstants.Type.KEYSYM, InputConstants.KEY_NUMPAD2, KeyMapping.Category.MISC)
	);

	@Override
	public void onInitializeClient() {
		BlockHighlighter.initialize();

		ClientTickEvents.END_CLIENT_TICK.register(client -> {
			while (TOGGLE_HIGHLIGHTING.consumeClick()) {
				BlockHighlighter.setEnabled(!BlockHighlighter.isEnabled());
			}

			while (OPEN_BLOCK_PICKER.consumeClick()) {
				client.gui.setScreen(new BlockPickerScreen());
			}
		});
	}
}