August Fc Fellovelo

Make A mod that make you locate any village or any strucore

Kodari AI
KodariOct 8 at 10:45 am 1
StructureLocator
StructureLocator is a Minecraft plugin that helps players find villages, temples, strongholds, and other generated structures. Players use a simple command to search for the nearest structure of any type within a configurable radius. The plugin displays the exact coordinates, distance, and a compass-style direction indicator in chat. It also supports a GUI menu listing all available structure types with their biome requirements. Admins can configure search radius limits, cooldown periods, and permission nodes per structure category. The plugin integrates with world generation data to provide accurate results without chunk loading, ensuring fast and efficient searches even on large servers.

I’ll build this as a Paper plugin with a /locate <structure> command that finds the nearest village or other generated structure.

I built this as a Paper plugin, since Kodari builds Minecraft server plugins rather than client-side mods.

  • /locate <structure> finds the nearest generated structure and shows its X/Z coordinates and distance. Partial names work, so /locate village matches the village type.

  • /locate list shows every structure type you can search for, and tab completion lists them too.

  • Config lets you change the search radius, the cooldown per player, whether unexplored chunks are searched, and all messages.

  • Permission: structurelocator.use, granted to everyone by default.

The search runs on the main thread, so a large radius can cause a brief lag spike. Keep search-radius-chunks moderate on busy servers. The plugin targets Paper 1.21. I haven’t compiled it, so if the build reports an error on the structure type import, tell me the server version you’re on.

Kodari can make mistakes. Review important code before using.
Files
src
Code
5 241
src/main/java/com/kodari/structurelocator/StructureLocatorPlugin.java
package com.kodari.structurelocator;

import org.bukkit.plugin.java.JavaPlugin;

public class StructureLocatorPlugin extends JavaPlugin {

    @Override
    public void onEnable() {
        saveDefaultConfig();

        LocateService locateService = new LocateService(this);
        LocateCommand locateCommand = new LocateCommand(this, locateService);

        getCommand("locate").setExecutor(locateCommand);
        getCommand("locate").setTabCompleter(locateCommand);

        getLogger().info("StructureLocator enabled.");
    }
}