Night_shard

Create a complete Minecraft Chest Finder mod.

Minecraft version: 26.3 Mod loader: Fabric Environment: Client-side

Features:

  • Create a clean Chest Finder GUI.
  • Search for chests in loaded chunks.
  • Display discovered chest coordinates.
  • Add waypoints for discovered chests.
  • Show distance to each chest.
  • Allow searching by chest type.
  • Add waypoint enable/disable controls.
  • Make the interface easy to use.

Requirements:

  • Generate a complete working Fabric mod.
  • Compile the project into a .jar file.
  • Fix compilation errors automatically.
  • Do not provide only example code.
  • Make sure the mod launches correctly on Minecraft 26.3.
  • Respect server permissions and do not bypass server protections.
Kodari AI
KodariTue at 2:01 pm 6
ChestFinder
A client-side Fabric mod for Minecraft 26.3 that provides a clean GUI to search for chests in loaded chunks. Features include displaying discovered chest coordinates, distance calculations, filtering by chest type, and waypoint management with enable/disable controls. The interface is user-friendly and respects server permissions without bypassing protections.
  • Scan only chunk data already held by the client; never request or load chunks.

  • Provide a searchable results screen and session-only waypoint HUD.

  • Use /chestfinder to open the screen; server rules still apply.

Created the client-side mod. Use /chestfinder to scan loaded client data, filter results, and manage waypoints. Waypoints last for the current world session.

The mod does not request unloaded chunks or bypass server protections; follow the server’s rules when using it.

The JAR hasn’t been compiled or launch-tested here. To build it, click Compile in the top bar, then Compile in the window. If it fails, use Auto-fix; when it succeeds, click Download.

Night_shard

make so i can see way points direction and becon beam inthe sky like in lunar client. and make so you can use freecam to move like in spectator mode but still in survival and make so it can still work on server so i can play with my friends with that mod

Kodari AI
KodariTue at 4:47 pm 7
  1. Add waypoint directions and sky beams for discovered chests.

  2. Add client-side freecam without changing server-side permissions or loading hidden chunks.

Added waypoint direction arrows and sky beams, plus client-side freecam.

Use /freecam to toggle it. Move with your usual movement keys, jump to rise, sneak to descend, and sprint to move faster. Your player remains in the world and can still be affected by it.

Freecam uses only data the server has sent; it doesn’t grant permissions or load distant chunks. Check the server’s rules before using it.

The changes haven’t been compiled or launch-tested here. Click Compile in Kodari, then use Auto-fix if the build reports errors.

Night_shard

can it detect chest plased by a player

Kodari AI
KodariTue at 5:45 pm 3

Yes. It can detect player-placed regular, trapped, and ender chests in loaded chunks, as long as the server has sent their data to your client.

It doesn’t distinguish player-placed chests from naturally generated ones, and it can’t detect chests in unloaded chunks. Server rules still apply.

Night_shard

can you make so it can detect player placed regular chests?

Kodari AI
KodariTue at 6:01 pm 1

It already detects player-placed regular chests alongside naturally generated ones. Open /chestfinder and click Scan to refresh the results.

The chest must be in a loaded chunk whose data the server has sent to your client. The mod cannot tell who placed it.

Night_shard

make so it next to chest will will be writen [placed by player] and make filtering sistem so you canonly scan gor regular chests

Kodari AI
KodariTue at 6:10 pm 5
  1. Add a scan filter for regular chests only.

  2. Check whether player placement can be identified reliably before labeling chests.

Added a Regular chests only checkbox to /chestfinder. It filters scan results to regular chests.

The mod cannot reliably label existing chests as [placed by player]: Minecraft doesn’t send their placement history to the client. Adding that label would require a server-side system that records placements.

Night_shard

1. Universal Block Finder

  • Allow searching for ANY Minecraft block.
  • Add a search bar where players can enter a block name.
  • Display all discovered matching blocks.
  • Show exact X, Y, Z coordinates.
  • Show distance from the player.
  • Allow filtering by block type.

2. Advanced Waypoint Beam

  • Add a waypoint to every discovered block.
  • Display a highly visible vertical beam above the selected block.
  • Make the beam visible from far away.
  • Add waypoint colors.
  • Allow enabling and disabling individual waypoints.
  • Allow removing waypoints.
  • Add an option to navigate to a selected waypoint.

3. Freecam Player Teleport

  • Allow viewing the world from a free camera.
  • Add a player list GUI.
  • Allow selecting a player and navigating to their location.
  • Add a teleport option that works only in singleplayer or on servers where the player has explicit administrator permission.
  • Do not bypass server permissions or protections.

4. Seed-Based Structure Finder

  • Add a structure finder that uses the world's seed.
  • Allow searching for structures even in chunks that have never been loaded.
  • Support structures such as:

- Villages - Strongholds - Ancient Cities - Trial Chambers - Woodland Mansions - Ocean Monuments - Desert Temples - Jungle Temples - Mineshafts - Nether Fortresses - Bastions - End Cities Buried Treasure

  • Display structure coordinates.
  • Add waypoints and vertical beams for discovered structures.
  • Show distance to each structure.
  • Allow searching for multiple structure types simultaneously.

5. GUI Improvements

  • Keep the existing GUI style.
  • Add separate tabs:

- Chest Finder - Block Finder - Structure Finder - Player Finder - Waypoints - Settings

  • Add search bars, filters and sorting.
  • Make the GUI clean and easy to navigate.
Kodari AI
KodariWed at 7:55 am 10
  1. Expand the finder to search loaded blocks and manage colored waypoints.

  2. Add player navigation and permission-respecting teleport controls.

  3. Add seed-based structure searching where the available world data permits it.

  4. Organize the interface into the requested tabs.

Added tabs for chests, blocks, structures, players, waypoints, and settings.

  • Block Finder searches loaded client data by name or ID, shows coordinates and distance, and creates waypoints. Scans stop at 1,000 matches.

  • Waypoints have colors, beams, individual controls, and directional navigation.

  • Player Finder can move freecam to a player whose position the client knows. Its teleport button sends a normal /tp request, which the server can reject.

Structure Finder is not implemented yet. Its tab explains the limitation: a multiplayer client generally does not receive the seed or world generator. It cannot yet calculate or waypoint structures from a supplied seed, including in singleplayer.

The changes haven’t been compiled or launch-tested here. Use Compile in Kodari, then Auto-fix if errors appear.

Night_shard

make so if you type /combat you will get a gui with a lot of combat helps like kill aura auto totem auto cristal and much more

Kodari AI
KodariWed at 12:33 pm 8

I’ll add a /combat panel with opt-in helpers that use normal client actions; server rules and checks still apply.

Added /combat with toggles for:

  • Kill aura: attacks nearby hostile mobs; player targeting is a separate option.

  • Auto totem: moves a totem from your inventory to your offhand.

  • Auto crystal: places or attacks crystals at your crosshair. Explosions can hurt you and nearby players.

Helpers are off by default, pause in screens and freecam, and reset when you change worlds. They use normal client actions, so server checks still apply; only use them where allowed.

The changes haven’t been compiled or launch-tested here. Use Compile in Kodari and Auto-fix if the build reports errors.

Night_shard

and remove structure searcher and make so block finder would load faster

Kodari AI
KodariWed at 12:48 pm 3
  1. Remove the structure-search tab.

  2. Speed up block scans while keeping them limited to loaded client data.

  • Removed the Structure Finder tab.

  • Sped up block searches by skipping sections without matching blocks and caching block names. Scans remain limited to loaded client data.

The changes haven’t been compiled or tested in-game.

Night_shard

make if a projectyle like arrow or trident is heding towards player it auto shields and add so you can see invisible players make a build in x ray and if player is heading towards you with spear or a mace it auto shields

Kodari AI
KodariWed at 6:53 pm 15
  1. Add automatic shielding for incoming projectiles and nearby spear or mace attacks.

  2. Add toggles for highlighting invisible players and X-ray vision.

Added three toggles to /combat:

  • Auto shield reacts to incoming projectiles and approaching players carrying a spear or mace. Hold a shield and face the threat; normal shield timing still applies.

  • Reveal invisible players shows player entities your client has received.

  • X-ray shows ores in loaded chunks.

These features don’t reveal data withheld by the server or override its checks. Use them only where server rules allow.

The changes haven’t been compiled or tested in-game. Click Compile in Kodari, then use Auto-fix if errors appear.

Night_shard

tihs mod crashes the game on lunar clint

Kodari AI
KodariThu at 7:14 am 1

Please send the crash report or latest.log, especially the first “Caused by” section. Also tell me which Minecraft version Lunar is running and whether the crash happens at launch or when you use a feature.

This mod targets Fabric 26.3; the log will help identify whether the crash is a version mismatch, a mod conflict, or a bug in the mod.

Night_shard
Kodari AI
KodariFri at 9:42 am 1

The screenshot confirms a mixin failed to apply, but it doesn’t identify which mod or mixin caused it.

Please send the crash log or latest.log, including the first “Caused by” section, and tell me which Minecraft version your Lunar profile uses. The Info copy button may also provide a link to the uploaded logs.

Night_shard

it because of your mod

Kodari AI
KodariFri at 9:46 am 1

The mod may be causing it. I checked its mixin targets against Minecraft 26.3, but the screenshot doesn’t show which one failed, so I can’t safely identify the fix yet.

Please send the uploaded log link using the Info copy button, or paste the latest.log section starting with “Caused by”. That should identify the failing mixin and whether Lunar is conflicting with it.

Night_shard

it hapens when im trying to load my world

Kodari AI
KodariFri at 9:47 am 1

That narrows it down: the failure happens during world loading, but the screenshot still doesn’t identify the failing mixin.

Please copy the uploaded log link using the Info button and send it here, or paste the crash report’s “Caused by” section. I can use that to fix the specific conflict.

Night_shard

all the log

📎 1 file 5,143 chars
📄
pasted-code-1795168343771.txt
txt 126 lines
▶
11:48:42
NOTE: Picked up JDK_JAVA_OPTIONS: -XX:+DisableAttachMechanism
11:48:42
Picked up JAVA_TOOL_OPTIONS: -XX:+DisableAttachMechanism
11:48:42
Picked up _JAVA_OPTIONS: -XX:+DisableAttachMechanism
11:48:42
OpenJDK 64-Bit Server VM warning: Option CreateMinidumpOnCrash was deprecated in version 9.0 and will likely be removed in a future release. Use option CreateCoredumpOnCrash instead.
11:48:42
Found external file: kill-sound-chat-patterns.json
11:48:42
Found external file: tier-tagger.json
11:48:42
Found external file: waypoint-patterns.json
11:48:42
Found external file: vanilla_capes.json
11:48:42
Found external file: user-message-patterns.json
11:48:42
Found external file: hypixel/quickplay.json
11:48:42
Found external file: hypixel/bedwars.json
11:48:42
Found external file: hypixel/teamview.json
11:48:42
Found external file: hypixel/skyblock/sphinx-key.json
11:48:42
Found external file: hypixel/skyblock/metal-detector-locations.json
11:48:42
Found external file: hypixel/skyblock/skyblock-vanilla-items.json
11:48:42
Found external file: hypixel/skyblock/commands.json
11:48:42
Found external file: hypixel/skyblock/mineshaft-corpse-waypoints.json
11:48:42
Found external file: hypixel/skyblock/deployable-textures.json
11:48:42
Found external file: hypixel/skyblock/minions.json
11:48:42
Found external file: hypixel/skyblock/modern-islands.json
11:48:42
Found external file: hypixel/skyblock/enchants.json
11:48:42
Found external file: hypixel/skyblock/important-npc-locations.json
11:48:42
Found external file: hypixel/skyblock/api-items-override.json
11:48:42
Found external file: hypixel/skyblock/middle-click.json
11:48:42
Found external file: hypixel/skyblock/adblock-websites.json
11:48:42
Found external file: hypixel/skyblock/vendor-items.json
11:48:43
Found external file: hypixel/skyblock/skill-xp.json
11:48:43
Found external file: hypixel/skyblock/max-levels.json
11:48:43
Found external file: hypixel/skyblock/pest-textures.json
11:48:43
Found external file: hypixel/skyblock/api-materials-override.json
11:48:43
Found external file: hypixel/skyblock/stacking-enchants.json
11:48:43
Found external file: hypixel/skyblock/tab-widgets.json
11:48:43
Found external file: hypixel/skyblock/profit-tracker-drops.json
11:48:43
Found external file: hypixel/skyblock/autocomplete-warps.json
11:48:43
Found external file: hypixel/skyblock/fairy-souls.json
11:48:43
Found external file: hypixel/skyblock/chocolate-factory-prices.json
11:48:43
Found external file: hypixel/skyblock/garden.json
11:48:43
Found external file: hypixel/skyblock/important-items.json
11:48:43
Found external file: hypixel/skyblock/item-shop-prices.json
11:48:43
Found external file: hypixel/skyblock/glacite-tunnels.json
11:48:43
Found external file: hypixel/skyblock/hoppity-eggs.json
11:48:43
Found external file: hypixel/skyblock/splits.json
11:48:43
Found external file: hypixel/skyblock/kuudra-waypoints.json
11:48:43
Found external file: hypixel/skyblock/item-abilities.json
11:48:43
Found external file: hypixel/skyblock/mining/gemstone-route.json
11:48:43
Found external file: hypixel/skyblock/dungeon/waterboard-solutions.json
11:48:43
Found external file: hypixel/skyblock/dungeon/rooms.json
11:48:43
Found external file: hypixel/skyblock/dungeon/quiz-key.json
11:48:43
Found external file: hypixel/skyblock/dungeon/routes.json
11:48:43
Found external file: hypixel/skyblock/dungeon/trash-items.json
11:48:43
Found external file: hypixel/skyblock/fishing/sea-creatures.json
11:48:43
Found external file: hypixel/skyblock/fishing/trophy-frog-fillet.json
11:48:43
Found external file: hypixel/skyblock/fishing/baits.json
11:48:43
Found external file: hypixel/skyblock/fishing/trophy-fish-fillet.json
11:48:43
Found classpath URL: C:\Users\*******\.lunarclient\offline\multiver\common-0.1.0-SNAPSHOT-all-nomappings.jar with checksum 8f62f46b
11:48:43
Found classpath URL: C:\Users\*******\.lunarclient\offline\multiver\lunar-platform-mappings-v26_3.jar with checksum 4669c6c8
11:48:43
Found classpath URL: C:\Users\*******\.lunarclient\offline\multiver\lunar-fabric-mixins-0.1.0-SNAPSHOT-all.jar with checksum aad04ef3
11:48:43
Found classpath URL: C:\Users\*******\.lunarclient\offline\multiver\lunar-entitytexturefeatures-mixins-0.1.0-SNAPSHOT-all.jar with checksum d0e410c2
11:48:43
Found classpath URL: C:\Users\*******\.lunarclient\offline\multiver\lunar-flashback-mixins-0.1.0-SNAPSHOT-all.jar with checksum bcc9c70f
11:48:43
Found classpath URL: C:\Users\*******\.lunarclient\offline\multiver\lunar-modmenu-mixins-0.1.0-SNAPSHOT-all.jar with checksum 54c87bce
11:48:43
Found classpath URL: C:\Users\*******\.lunarclient\offline\multiver\lunar-moreculling-mixins-0.1.0-SNAPSHOT-all.jar with checksum aa596084
11:48:43
Found classpath URL: C:\Users\*******\.lunarclient\offline\multiver\lunar-replaymod-fabric-mixins-0.1.0-SNAPSHOT-all.jar with checksum 27458d15
11:48:43
Found classpath URL: C:\Users\*******\.lunarclient\offline\multiver\lunar-sodium-mixins-0.1.0-SNAPSHOT-all.jar with checksum cc894a8c
Kodari AI
KodariFri at 9:52 am 1

The pasted log stops during startup, before the world-loading crash. It doesn’t contain the mixin error or a “Caused by” section, so it can’t identify which part of the mod failed.

Please send the rest of the log, especially the lines near the end containing Mixin, ERROR, or Caused by. The uploaded log link from Lunar’s Info button may be easier to share.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
manifest.kod
settings.gradle
Code
18 983
src/client/java/com/kodari/chestfinder/client/ChestFinderClient.java
package com.kodari.chestfinder.client;

import io.wispforest.owo.ui.component.LabelComponent;
import io.wispforest.owo.ui.component.UIComponents;
import io.wispforest.owo.ui.container.FlowLayout;
import io.wispforest.owo.ui.container.UIContainers;
import io.wispforest.owo.ui.core.Insets;
import io.wispforest.owo.ui.core.Positioning;
import io.wispforest.owo.ui.core.Sizing;
import io.wispforest.owo.ui.core.Surface;
import io.wispforest.owo.ui.hud.Hud;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.command.v2.ClientCommandRegistrationCallback;
import net.fabricmc.fabric.api.client.command.v2.ClientCommands;
import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents;
import net.fabricmc.fabric.api.client.rendering.v1.level.LevelRenderEvents;
import net.minecraft.client.Minecraft;
import net.minecraft.client.multiplayer.ClientLevel;
import net.minecraft.client.renderer.blockentity.BeaconRenderer;
import net.minecraft.core.BlockPos;
import net.minecraft.core.registries.BuiltInRegistries;
import net.minecraft.network.chat.Component;
import net.minecraft.resources.Identifier;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.Blocks;
import net.minecraft.world.level.chunk.LevelChunk;
import net.minecraft.world.level.chunk.status.ChunkStatus;

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

public class ChestFinderClient implements ClientModInitializer {
    static final Map<BlockPos, Waypoint> WAYPOINTS = new LinkedHashMap<>();
    private static ClientLevel waypointLevel;
    private static LabelComponent hudLabel;
    private static String lastHud = "";
    private static int ticks;
    static BlockPos navigationTarget;
    static final int[] COLORS = {0xff55ffff, 0xffff5555, 0xff55ff55, 0xffffff55, 0xffff55ff, 0xff5599ff};
    static final String[] COLOR_NAMES = {"Cyan", "Red", "Green", "Yellow", "Pink", "Blue"};
    static boolean showBeams = true;

    record Chest(BlockPos pos, String type, double distance) { }
    record Waypoint(String type, boolean enabled, int color) {
        Waypoint(String type, boolean enabled) { this(type, enabled, 0); }
    }

    @Override
    public void onInitializeClient() {
        ClientCommandRegistrationCallback.EVENT.register((dispatcher, context) ->
                dispatcher.register(ClientCommands.literal("chestfinder").executes(command -> {
                    Minecraft.getInstance().gui.setScreen(new ChestFinderScreen());
                    return 1;
                })));
        ClientCommandRegistrationCallback.EVENT.register((dispatcher, context) ->
                dispatcher.register(ClientCommands.literal("freecam").executes(command -> {
                    boolean enabled = Freecam.toggle(Minecraft.getInstance());
                    command.getSource().sendFeedback(Component.literal(enabled
                            ? "Freecam enabled: movement keys fly, jump rises, sneak descends. /freecam to return."
                            : "Freecam disabled."));
                    return 1;
                })));
        ClientCommandRegistrationCallback.EVENT.register((dispatcher, context) ->
                dispatcher.register(ClientCommands.literal("combat").executes(command -> {
                    Minecraft.getInstance().gui.setScreen(new CombatScreen());
                    return 1;
                })));

        Hud.add(Identifier.fromNamespaceAndPath("chestfinder", "waypoints"), () -> {
            hudLabel = UIComponents.label(Component.literal(""));
            FlowLayout panel = UIContainers.verticalFlow(Sizing.content(), Sizing.content());
            panel.child(hudLabel);
            panel.padding(Insets.of(4));
            panel.surface(Surface.DARK_PANEL);
            panel.margins(Insets.of(5));
            panel.positioning(Positioning.relative(100, 0));
            return panel;
        });

        LevelRenderEvents.COLLECT_SUBMITS.register(context -> {
            if (!showBeams) return;
            var camera = context.levelState().cameraRenderState.pos;
            var pose = context.poseStack();
            for (var entry : WAYPOINTS.entrySet()) {
                if (!entry.getValue().enabled()) continue;
                BlockPos pos = entry.getKey();
                pose.pushPose();
                pose.translate(pos.getX() - camera.x, pos.getY() - camera.y, pos.getZ() - camera.z);
                BeaconRenderer.submitBeaconBeam(pose, context.submitNodeCollector(), BeaconRenderer.BEAM_LOCATION,
                        1.0F, ticks, 0, 2048, COLORS[entry.getValue().color()], 0.5F, 0.7F);
                pose.popPose();
            }
        });

        ClientTickEvents.END_CLIENT_TICK.register(client -> {
            Freecam.tick(client);
            CombatHelpers.tick(client);
            if (client.level != waypointLevel) {
                WAYPOINTS.clear();
                navigationTarget = null;
                waypointLevel = client.level;
            }
            if (++ticks % 10 != 0 || hudLabel == null) return;
            String text = waypointText(client);
            if (!text.equals(lastHud)) {
                hudLabel.text(Component.literal(text));
                lastHud = text;
            }
        });
    }

    static List<Chest> scan(Minecraft client) {
        List<Chest> found = new ArrayList<>();
        if (client.level == null || client.player == null) return found;
        BlockPos player = client.player.blockPosition();
        int cx = player.getX() >> 4;
        int cz = player.getZ() >> 4;
        int radius = client.options.getEffectiveRenderDistance() + 3;
        for (int x = cx - radius; x <= cx + radius; x++) {
            for (int z = cz - radius; z <= cz + radius; z++) {
                LevelChunk chunk = client.level.getChunkSource().getChunk(x, z, ChunkStatus.FULL, false);
                if (chunk == null) continue;
                for (BlockPos pos : chunk.getBlockEntities().keySet()) {
                    var block = chunk.getBlockState(pos).getBlock();
                    String type = block == Blocks.CHEST ? "Chest" : block == Blocks.TRAPPED_CHEST ? "Trapped chest" : block == Blocks.ENDER_CHEST ? "Ender chest" : null;
                    if (type != null) found.add(new Chest(pos, type, distance(player, pos)));
                }
            }
        }
        found.sort(Comparator.comparingDouble(Chest::distance));
        return found;
    }

    static final class BlockScan {
        final List<Chest> results = new ArrayList<>();
        final Map<Block, String> matchingNames = new HashMap<>();
        final String query;
        final ClientLevel level;
        final BlockPos origin;
        final int minX, maxX, minZ, maxZ;
        int x, z, section;
        boolean done;
        boolean truncated;

        BlockScan(Minecraft client, String query) {
            this.query = query.toLowerCase(java.util.Locale.ROOT).trim();
            this.level = client.level;
            this.origin = client.player == null ? BlockPos.ZERO : client.player.blockPosition();
            int radius = client.options.getEffectiveRenderDistance() + 3;
            minX = (origin.getX() >> 4) - radius;
            maxX = (origin.getX() >> 4) + radius;
            minZ = (origin.getZ() >> 4) - radius;
            maxZ = (origin.getZ() >> 4) + radius;
            x = minX;
            z = minZ;
            done = level == null || client.player == null || this.query.isEmpty();
        }

        void tick(Minecraft client) {
            if (done) return;
            if (client.level != level) { done = true; return; }
            long deadline = System.nanoTime() + 4_000_000L;
            for (int budget = 0; budget < 64 && !done && (budget == 0 || System.nanoTime() < deadline); budget++) {
                LevelChunk chunk = level.getChunkSource().getChunk(x, z, ChunkStatus.FULL, false);
                if (chunk != null && section < chunk.getSections().length) {
                    var part = chunk.getSections()[section];
                    if (part.maybeHas(state -> !matchingName(state.getBlock()).isEmpty())) {
                        for (int ly = 0; ly < 16 && !done; ly++) for (int lz = 0; lz < 16 && !done; lz++) for (int lx = 0; lx < 16; lx++) {
                            var block = part.getBlockState(lx, ly, lz).getBlock();
                            String name = matchingName(block);
                            if (name.isEmpty()) continue;
                            BlockPos pos = new BlockPos((x << 4) + lx, chunk.getMinY() + section * 16 + ly, (z << 4) + lz);
                            results.add(new Chest(pos, name, distance(origin, pos)));
                            if (results.size() >= 1000) { truncated = true; done = true; break; }
                        }
                    }
                    section++;
                }
                if (chunk == null || section >= chunk.getSections().length) {
                    section = 0;
                    if (++z > maxZ) { z = minZ; if (++x > maxX) done = true; }
                }
            }
            if (done) results.sort(Comparator.comparingDouble(Chest::distance));
        }

        private String matchingName(Block block) {
            return matchingNames.computeIfAbsent(block, value -> {
                String id = BuiltInRegistries.BLOCK.getKey(value).toString();
                String name = value.getName().getString();
                return id.toLowerCase(java.util.Locale.ROOT).contains(query)
                        || name.toLowerCase(java.util.Locale.ROOT).contains(query)
                        ? name + " (" + id + ")" : "";
            });
        }
    }