Gorilla Tag

a block called mob collector it auto collect mobs in a 20 block radius and it puts in in a menu containing the spawn eggs that you can take. hopper works on the block too every diamond added to the collector menu gets removed but it makes the radius 1 block better the limit is 80 blocks

Kodari AI
KodariSep 3 at 3:27 pm 1
MobCollector
A Minecraft plugin that adds a craftable Mob Collector block. When placed, it automatically collects mobs within a 20-block radius, storing them as spawn eggs in an interactive GUI menu. Players can retrieve eggs by clicking them. The block supports hopper interaction—each diamond inserted via hopper permanently increases the collection radius by 1 block, up to a maximum of 80 blocks. The GUI displays all collected mob eggs with quantities, allowing easy extraction. The radius upgrade system is persistent per block location, stored in configuration files. Includes crafting recipe, permission checks, and configurable settings for radius limits and upgrade costs.
  1. Added the MobCollector plugin from scratch.

  2. Collectors are barrel blocks with a 20-block starting radius.

  3. Nearby mobs are converted into spawn eggs and stored in the barrel inventory.

  4. Hoppers can insert diamonds and extract spawn eggs.

  5. Each diamond increases the radius by 1, up to 80 blocks, and is consumed.

  6. Collector radius and locations persist across restarts.

  7. Added /mobcollector give <player> [amount] with the mobcollector.admin permission.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
9 508
src/main/java/com/kodari/mobcollector/MobCollectorPlugin.java
package com.kodari.mobcollector;

import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public final class MobCollectorPlugin extends JavaPlugin {
    private CollectorManager collectorManager;

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

        collectorManager = new CollectorManager(this);
        collectorManager.load();

        getServer().getPluginManager().registerEvents(new CollectorListener(this, collectorManager), this);
        MobCollectorCommand command = new MobCollectorCommand(collectorManager);
        if (getCommand("mobcollector") != null) {
            getCommand("mobcollector").setExecutor(command);
            getCommand("mobcollector").setTabCompleter(command);
        }

        Bukkit.getScheduler().runTaskTimer(this, collectorManager::collectAll, 20L, 20L);
    }

    @Override
    public void onDisable() {
        if (collectorManager != null) {
            collectorManager.save();
        }
    }
}