Adam Almoubaraki

make a 1.21.11 minecraft, so when i press the keybind "k" it opens the small menu and theres a freecam option and a "Locate Spawner" option, the locate spawner option detecs any spawner that is in a 5 chunk ( add an option to chanche the chunks minimum is 1 and max is 10 ) radius also make the menu cool looking

Kodari AI
KodariOct 31 at 7:07 pm 2
UtilityMenuMod
Adds a keybind (K) that opens a stylish GUI menu with two options: Freecam mode for unrestricted camera movement, and Locate Spawner which scans for mob spawners within a configurable radius (1-10 chunks, default 5). The menu features a modern, visually appealing design with smooth animations and intuitive controls. Players can adjust the scan radius directly from the menu interface. The mod enhances exploration by helping players find spawners efficiently while providing a fun freecam utility for scouting areas.
  1. Create a client-only Fabric 1.21.11 mod with K opening an owo-ui menu.

  2. Add a freecam toggle and a spawner locator with an adjustable 1–10 chunk radius (default 5).

  3. Report detected spawner coordinates in chat and include the required library manifest.

Created Spawner Scout for Fabric 1.21.11. Press K to open its compact menu, toggle freecam, or locate spawners within an adjustable 1–10 chunk radius (default 5). Freecam uses WASD and Space/Shift; it keeps your player in place.

Spawner coordinates appear in chat. The locator scans currently loaded chunks only, so spawners in unloaded chunks won’t be detected.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
manifest.kod
settings.gradle
Code
13 489
src/client/java/com/kodari/spawnerscout/SpawnerScoutClient.java
package com.kodari.spawnerscout;

import com.kodari.spawnerscout.client.FreecamController;
import com.kodari.spawnerscout.client.ScoutScreen;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents;
import net.fabricmc.fabric.api.client.keybinding.v1.KeyBindingHelper;
import net.minecraft.client.option.KeyBinding;
import net.minecraft.util.Identifier;

public final class SpawnerScoutClient implements ClientModInitializer {
    private static final KeyBinding.Category CATEGORY = KeyBinding.Category.create(Identifier.of("spawnerscout", "main"));
    private static final KeyBinding OPEN_MENU = KeyBindingHelper.registerKeyBinding(
            new KeyBinding("key.spawnerscout.open", 75, CATEGORY)
    );

    @Override
    public void onInitializeClient() {
        ClientTickEvents.END_CLIENT_TICK.register(client -> {
            FreecamController.tick(client);

            while (OPEN_MENU.wasPressed()) {
                if (client.player != null && client.currentScreen == null) {
                    client.setScreen(new ScoutScreen());
                }
            }
        });
    }
}