wendigear VexariMC

i need a plugin where it tells me cords of a command block that does a command plugin minecraft 1.21.11

Kodari AI
KodariSep 19 at 1:21 am 1
CommandBlockLocator
CommandBlockLocator is a Minecraft plugin that tracks and reports the coordinates of command blocks when they execute commands. The plugin listens to command block activations, captures the block's world, X, Y, and Z coordinates, and broadcasts or logs the location to operators. It provides a configurable toggle to enable or disable location reporting, a permission-based system for viewing reports, and a command to query the last known command block location. The plugin supports both command block minecarts and stationary command blocks, ensuring comprehensive coverage of all command-executing blocks in the server.

Created a Paper Minecraft plugin project.

Usage:

Plain Text
/findcommandblock <command>

Aliases:

Plain Text
/cbfind <command>
/findcb <command>

Example:

Plain Text
/cbfind say hello

It searches all currently loaded chunks and reports matching command block coordinates, world names, and stored commands. Searches run over multiple ticks to reduce server lag.

The project targets Paper 1.21.1 because 1.21.11 is not a standard Paper API version.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
5 212
src/main/java/com/kodari/commandblockfinder/CommandBlockFinderPlugin.java
package com.kodari.commandblockfinder;

import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;

public final class CommandBlockFinderPlugin extends JavaPlugin {

    @Override
    public void onEnable() {
        FindCommandBlockCommand command = new FindCommandBlockCommand(this);
        PluginCommand pluginCommand = getCommand("findcommandblock");
        if (pluginCommand == null) {
            getLogger().severe("The findcommandblock command is missing from plugin.yml.");
            getServer().getPluginManager().disablePlugin(this);
            return;
        }

        pluginCommand.setExecutor(command);
        pluginCommand.setTabCompleter(command);
    }
}