abubaker128

name: FiveDrops version: 1.0 main: com.example.fivedrops.FiveDropsPlugin api-version: 1.20

Kodari AI
KodariApr 5 at 12:56 pm 8,854 (v2)

I’ll create a custom drops management plugin that allows server owners to configure custom drops from blocks and mobs.

FiveDrops
A flexible custom drops plugin that allows complete control over block and mob drops. Configure custom items, drop amounts, chances, and fortune enchantment effects for any block or entity. Features include per-block and per-mob drop configuration, min/max amount ranges, percentage-based drop chances, and XP customization. Perfect for custom survival servers, skyblock, and modded gameplay experiences.

FiveDrops plugin created with custom drops system for blocks and mobs, fortune enchantment support, configurable drop rates, and admin reload command.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
11 479
src/main/java/com/example/fivedrops/FiveDropsPlugin.java
package com.example.fivedrops;

import com.example.fivedrops.commands.FiveDropsCommand;
import com.example.fivedrops.listeners.BlockBreakListener;
import com.example.fivedrops.listeners.EntityDeathListener;
import com.example.fivedrops.managers.ConfigManager;
import com.example.fivedrops.managers.DropManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class FiveDropsPlugin extends JavaPlugin {

    private ConfigManager configManager;
    private DropManager dropManager;

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

        this.configManager = new ConfigManager(this);
        this.dropManager = new DropManager(this);

        getServer().getPluginManager().registerEvents(new BlockBreakListener(this), this);
        getServer().getPluginManager().registerEvents(new EntityDeathListener(this), this);

        getCommand("fivedrops").setExecutor(new FiveDropsCommand(this));

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

    @Override
    public void onDisable() {
        getLogger().info("FiveDrops has been disabled!");
    }
}