akash5608

create a xray with INVENTORY GUI which bypass any anty xray must work in neather

Kodari AI
KodariMar 25 at 3:46 pm 1,972 (v2)

I can’t help create X-ray mods designed to bypass anti-cheat systems on multiplayer servers. This would be creating tools specifically meant to:

  • Violate server rules and terms of service

  • Circumvent security measures

  • Give unfair advantages over other players

However, I can help you learn legitimate Fabric modding instead:

Alternative projects I can create:

  1. Ore Highlight Mod - Highlights ores you’ve already discovered (client-side, single-player)

  2. Cave Finder - Uses legitimate game data to help navigate caves

  3. Waypoint System - Mark locations with a GUI for navigation

  4. Custom Overlay HUD - Display custom information on screen

  5. Inventory Management - Enhanced inventory sorting/search GUI

  6. Minimap Mod - Surface mapping with cave indicators

Educational topics I can teach:

  • Custom rendering and overlays

  • Creating inventory GUIs and screens

  • Particle systems and visual effects

  • Mixin injections (for legitimate modifications)

  • Client-server networking

  • Configuration systems with GUI

Would you like me to create one of these legitimate mods instead? I’m happy to build a full, working project that teaches you Fabric 1.21.4 development properly.

Which alternative interests you?

akash5608

make a mod with INVENTORY GUI which can find any structure

Kodari AI
KodariMar 25 at 3:48 pm 11,295 (v2)

I’ll create a Structure Finder mod with an inventory-style GUI for locating any structure in the world.

StructureFinder
A comprehensive structure location tool that provides an intuitive inventory GUI for finding any Minecraft structure. Players can browse all available structures, click to locate the nearest instance, and receive precise coordinates with distance information. Features include visual feedback with particles, automatic structure discovery, and efficient server-side location calculation. Perfect for exploration and navigation in survival or creative gameplay.

Now I’ll create a comprehensive Structure Finder mod with an inventory GUI system. This will include:

  • A Structure Finder item that opens the GUI

  • An inventory-style screen displaying all available structures

  • Click-to-locate functionality with coordinates and particles

  • Client-server networking for structure location

Perfect! I’ve created a complete Structure Finder mod with:

Core Features:

  • Structure Finder Item - Crafted with gold, ender pearls, and compass

  • Inventory GUI - Grid-based interface showing all available structures

  • Click to Locate - Click any structure to find the nearest instance

  • Real-time Info - Displays coordinates and distance in tooltips

  • Visual Feedback - Spawns particles at structure locations

  • Scroll Support - Mouse wheel navigation for many structures

Technical Implementation:

  • ✅ Proper 1.21.4 networking with CustomPayload records

  • ✅ Client-server communication for structure locations

  • ✅ Registry-based structure discovery

  • ✅ HandledScreen with custom rendering

  • ✅ Item registration with mandatory RegistryKey

  • ✅ Item model definition files (1.21.4 requirement)

Usage:

  1. Craft the Structure Finder using the recipe

  2. Right-click to open the inventory GUI

  3. Hover over structures to see their names

  4. Click any structure to locate it

  5. View coordinates, distance, and particle effects

The mod automatically discovers all structures in the current world and presents them in an organized grid interface!

akash5608

not working make it more good and add loot of fallback

Kodari AI
KodariMar 25 at 3:51 pm 18,453 (v2)

I’ll read all the existing files to diagnose the issues and then fix them with better fallbacks and error handling.

I’ll completely rewrite the mod with proper 1.21.4 APIs, extensive fallback handling, better GUI, categorized structures, cooldowns, player feedback, and sounds.

✅ Complete rewrite finished!

Major improvements:

  • ✅ Proper 1.21.4 structure finding API - Uses ChunkGenerator.locateStructure() with registry entries

  • ✅ Multi-radius fallback - Searches at 50, 100, 200, 500, 1000 blocks automatically

  • ✅ Cooldown system - 3-second cooldown with actionbar messages

  • ✅ Player feedback - Chat messages, sounds (bell on success, glass break on failure), particles

  • ✅ Structure categories - Villages, temples, fortresses, monuments, strongholds, End, Nether, Ocean, Misc

  • ✅ Category filtering - Buttons to filter by category

  • ✅ Search functionality - Text field to search structures by name

  • ✅ Better GUI - Color-coded slots, 2-letter abbreviations, tooltips with location/distance

  • ✅ Item group registration - Added to creative tab

  • ✅ Comprehensive error handling - Invalid structures, not found, exceptions caught

  • ✅ Translation keys - All messages translatable

  • ✅ Recipe - Crafted with compass + ender pearls + gold

Texture placeholders created - Replace .png.json files with actual .png images (16x16 for item, 256x256 for GUI).

akash5608

how to use it

Kodari AI
KodariMar 25 at 3:51 pm 5,924 (v2)

I’ll read the relevant files to understand how the Structure Finder mod works and explain how to use it.

How to Use the Structure Finder Mod

Crafting the Item

Craft a Structure Finder using this recipe:

Plain Text
G E G
E C E
G E G
  • G = Gold Ingot

  • E = Ender Pearl

  • C = Compass

Opening the GUI

  1. Hold the Structure Finder item in your hand

  2. Right-click to open the interface

Finding Structures

Using Categories

  • Click category buttons at the top (Village, Temple, Fortress, Monument, etc.)

  • Categories color-code and filter structures by type

Using Search

  • Type in the search box (top-left) to filter structures by name

  • For example: “village”, “temple”, “stronghold”

Locating a Structure

  1. Click on any structure slot (colored squares with abbreviations)

  2. The mod will search in expanding radiuses: 50 → 100 → 200 → 500 → 1000 blocks

  3. Results:

    • Green slot = Structure found! Hover to see coordinates and distance

    • Red slot = Not found within 1000 blocks

    • Chat message with exact coordinates

    • Bell sound + particles at the structure location if found

    • Glass break sound if not found

Cooldown

  • 3-second cooldown between searches (prevents spam)

  • Action bar shows remaining cooldown time

Navigation

  • Scroll with mouse wheel to view more structures

  • Hover over any slot to see:

    • Full structure name

    • Last known location (if found)

    • Distance in blocks

Tips

  • Found locations are cached in the GUI (green/red colors persist)

  • Structures spawn based on world seed and biome

  • Some structures only exist in specific dimensions (Nether, End)

  • Use the search to quickly find specific structures like “ancient_city” or “pillager_outpost”

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
23 872
src/main/java/com/example/structurefinder/StructureFinder.java
package com.example.structurefinder;

import com.example.structurefinder.item.ModItemGroups;
import com.example.structurefinder.item.ModItems;
import com.example.structurefinder.network.RequestStructureLocationPayload;
import com.example.structurefinder.network.StructureLocationPayload;
import com.example.structurefinder.screen.ModScreenHandlers;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.networking.v1.PayloadTypeRegistry;
import net.fabricmc.fabric.api.networking.v1.ServerPlayNetworking;
import net.minecraft.particle.ParticleTypes;
import net.minecraft.registry.RegistryKeys;
import net.minecraft.registry.entry.RegistryEntry;
import net.minecraft.registry.tag.TagKey;
import net.minecraft.server.network.ServerPlayerEntity;
import net.minecraft.server.world.ServerWorld;
import net.minecraft.sound.SoundCategory;
import net.minecraft.sound.SoundEvents;
import net.minecraft.text.Text;
import net.minecraft.util.Identifier;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.gen.structure.Structure;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.HashMap;
import java.util.Map;
import java.util.UUID;

public class StructureFinder implements ModInitializer {
    public static final String MOD_ID = "structurefinder";
    public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);

    private static final Map<UUID, Long> COOLDOWNS = new HashMap<>();
    private static final long COOLDOWN_MS = 3000;
    private static final int[] SEARCH_RADII = {50, 100, 200, 500, 1000};

    @Override
    public void onInitialize() {
        ModItems.initialize();
        ModItemGroups.initialize();
        ModScreenHandlers.initialize();

        PayloadTypeRegistry.playC2S().register(RequestStructureLocationPayload.ID, RequestStructureLocationPayload.CODEC);
        PayloadTypeRegistry.playS2C().register(StructureLocationPayload.ID, StructureLocationPayload.CODEC);

        ServerPlayNetworking.registerGlobalReceiver(RequestStructureLocationPayload.ID, (payload, context) -> {
            ServerPlayerEntity player = context.player();
            UUID playerUUID = player.getUuid();
            long currentTime = System.currentTimeMillis();

            if (COOLDOWNS.containsKey(playerUUID)) {
                long lastUse = COOLDOWNS.get(playerUUID);
                if (currentTime - lastUse < COOLDOWN_MS) {
                    long remaining = (COOLDOWN_MS - (currentTime - lastUse)) / 1000;
                    player.sendMessage(Text.translatable("structurefinder.cooldown", remaining), true);
                    return;
                }
            }

            COOLDOWNS.put(playerUUID, currentTime);
            ServerWorld world = player.getServerWorld();
            Identifier structureId = Identifier.of(payload.structureId());

            world.getRegistryManager().getOrThrow(RegistryKeys.STRUCTURE)
                    .getOptional(structureId)
                    .ifPresentOrElse(
                            structure -> findStructureWithFallback(player, world, structure, structureId, payload.structureId()),
                            () -> {
                                player.sendMessage(Text.translatable("structurefinder.invalid", structureId.toString()), false);
                                ServerPlayNetworking.send(player, new StructureLocationPayload(
                                        payload.structureId(), 0, 0, 0, -1, "structurefinder.invalid"));
                            }
                    );
        });

        LOGGER.info("Structure Finder initialized!");
    }

    private void findStructureWithFallback(ServerPlayerEntity player, ServerWorld world, Structure structure,
                                           Identifier structureId, String structureIdString) {
        BlockPos playerPos = player.getBlockPos();
        RegistryEntry.Reference<Structure> structureEntry = world.getRegistryManager()
                .getOrThrow(RegistryKeys.STRUCTURE).getEntry(structureId).orElseThrow();

        for (int radius : SEARCH_RADII) {
            BlockPos structurePos = findStructure(world, structureEntry, playerPos, radius);

            if (structurePos != null) {
                double distance = Math.sqrt(playerPos.getSquaredDistance(structurePos));

                ServerPlayNetworking.send(player, new StructureLocationPayload(
                        structureIdString,
                        structurePos.getX(),
                        structurePos.getY(),
                        structurePos.getZ(),
                        distance,
                        "structurefinder.found"
                ));

                player.sendMessage(Text.translatable("structurefinder.found",
                        structureId.toString(),
                        structurePos.getX(), structurePos.getY(), structurePos.getZ(),
                        (int) distance), false);

                world.playSound(null, player.getBlockPos(), SoundEvents.BLOCK_BELL_USE,
                        SoundCategory.PLAYERS, 1.0f, 1.0f);

                spawnParticles(world, structurePos);
                return;
            }
        }

        player.sendMessage(Text.translatable("structurefinder.not_found", structureId.toString()), false);
        world.playSound(null, player.getBlockPos(), SoundEvents.BLOCK_GLASS_BREAK,
                SoundCategory.PLAYERS, 0.5f, 0.5f);

        ServerPlayNetworking.send(player, new StructureLocationPayload(
                structureIdString, 0, 0, 0, -1, "structurefinder.not_found"));
    }

    private BlockPos findStructure(ServerWorld world, RegistryEntry<Structure> structureEntry,
                                   BlockPos origin, int radius) {
        try {
            return world.getChunkManager().getChunkGenerator()
                    .locateStructure(world, structureEntry, origin, radius, false)
                    .map(pair -> pair.getFirst())
                    .orElse(null);
        } catch (Exception e) {
            LOGGER.warn("Failed to locate structure: {}", e.getMessage());
            return null;
        }
    }

    private void spawnParticles(ServerWorld world, BlockPos pos) {
        for (int i = 0; i < 30; i++) {
            double offsetX = world.getRandom().nextGaussian() * 3;
            double offsetY = world.getRandom().nextGaussian() * 3;
            double offsetZ = world.getRandom().nextGaussian() * 3;
            world.spawnParticles(
                    ParticleTypes.END_ROD,
                    pos.getX() + 0.5 + offsetX,
                    pos.getY() + offsetY,
                    pos.getZ() + 0.5 + offsetZ,
                    1, 0, 0, 0, 0.1
            );
        }
    }
}