I

Make me a minecraft plugin that has a worldedit like wand accessed by /meowgens wand and a INVENTORY GUI like a plugin called catamines but this is for a gen-mining/pvp type of server and gen reset times are fully customizable from instant to however long you want

Kodari AI
KodariMar 13 at 3:11 pm 19,708 (v2)

Iโ€™ll create a WorldEdit-like generator system with customizable reset times and a GUI-based configuration interface.

MeowGens
A WorldEdit-inspired generator system for gen-mining and PvP servers. Features include wand-based region selection, GUI-managed generators with customizable block patterns, and fully adjustable reset timers from instant to any duration. Players can create, edit, and monitor multiple generators with persistent storage and automatic regeneration scheduling.

Complete! MeowGens plugin created with WorldEdit-style wand mechanics, GUI-based generator management, and customizable reset timers from instant to any duration.

I

make it so if its 0 it just always instantly resets no matter what and make it so you can change the blocks in the editor and make it so you can pick any minecraft block and make it so you can do 1 block or multiple

Kodari AI
KodariMar 13 at 3:21 pm 28,872 (v2)

Iโ€™ll read the necessary files first to understand the current implementation.

Let me read a few more files to understand the event handling:

Iโ€™ll implement instant reset for 0-second timers, add block editing to the GUI, and allow selecting any Minecraft block.

Now Iโ€™ll update the files to implement the requested features:

All features implemented: instant reset when timer is 0, block editing in GUI with add/remove/weight adjustment, and full block selector with pagination for all Minecraft blocks.

I

just add a sign when u click it it puts u in a sign where u can search any item u wanna put and make it so if its 0 its way faster at generating

Kodari AI
KodariMar 13 at 3:26 pm 18,864 (v2)

Iโ€™ll add a sign GUI for searching items and optimize generation speed when resetTime is 0.

Now Iโ€™ll implement the sign GUI search and optimize instant generation:

Added sign GUI search for blocks and optimized instant generation when resetTime is 0 (uses setType with applyPhysics=false for faster placement).

I

make it so theres no "search block" at the top and make it open a INVENTORY GUI of whatever u typed and show the user a list of the stuff that has that in their name

Kodari AI
KodariMar 13 at 3:45 pm 38,111 (v2)

Iโ€™ll read the relevant files to understand the current search implementation and modify it to show matching blocks in a new inventory GUI.

Iโ€™ll modify the system to replace the sign search with an inventory GUI that shows matching blocks based on what the user types.

Iโ€™ll create a new inventory GUI system that shows matching blocks based on search input, replacing the direct sign-based addition.

Now Iโ€™ll create the search results GUI and update the GeneratorEditGUI to use it:

Removed the search block at the top and created a new inventory GUI system that displays matching blocks based on search input. When users type in the sign, theyโ€™ll see a paginated inventory showing all blocks containing their search term.

I

When i type an item it doesnt show anything please fix this and make it show any item or any item relating to the thing i type

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
manifest.kod
Code
27 2,087
src/main/java/com/meowgens/MeowGens.java
package com.meowgens;

import com.meowgens.command.MeowGensCommand;
import com.meowgens.config.ConfigManager;
import com.meowgens.inventory.gui.GUIListener;
import com.meowgens.inventory.gui.GUIManager;
import com.meowgens.listener.WandListener;
import com.meowgens.manager.GeneratorManager;
import com.meowgens.manager.SelectionManager;
import com.meowgens.manager.StorageManager;
import com.meowgens.task.GeneratorTask;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class MeowGens extends JavaPlugin {
    private ConfigManager configManager;
    private SelectionManager selectionManager;
    private GeneratorManager generatorManager;
    private StorageManager storageManager;
    private GUIManager guiManager;
    private GeneratorTask generatorTask;

    @Override
    public void onEnable() {
        this.configManager = new ConfigManager(this);
        this.selectionManager = new SelectionManager();
        this.storageManager = new StorageManager(this);
        this.generatorManager = new GeneratorManager(this);
        this.guiManager = new GUIManager();

        this.storageManager.loadGenerators();

        this.generatorTask = new GeneratorTask(this);
        this.generatorTask.runTaskTimer(this, 20L, 20L);

        getCommand("meowgens").setExecutor(new MeowGensCommand(this));
        Bukkit.getPluginManager().registerEvents(new WandListener(this), this);
        Bukkit.getPluginManager().registerEvents(new GUIListener(guiManager), this);
        Bukkit.getPluginManager().registerEvents(new com.meowgens.listener.BlockBreakListener(this), this);

        getLogger().info("MeowGens has been enabled!");
    }

    @Override
    public void onDisable() {
        if (generatorTask != null) {
            generatorTask.cancel();
        }
        if (storageManager != null) {
            storageManager.saveGenerators();
        }
        getLogger().info("MeowGens has been disabled!");
    }

    public void reload() {
        this.configManager.reload();
        this.storageManager.loadGenerators();
    }
}