E

Miner Passive – Deep Excavator While below Y=32 (stone layer), gain Haste I while holding a pickaxe.

While below Y=0 (deepslate layer), gain Haste II while holding a pickaxe.

Ability – Excavation Rush (45s cooldown) For 8 seconds, gain Night Vision and become immune to Mining Fatigue.

Kodari AI
KodariJul 23 at 11:03 am 1

I’ll create a mining-focused plugin with passive buffs and an active ability.

MinerPlugin
A passive and ability-based Spigot/Paper plugin for miners. The Deep Excavator passive grants Haste I below Y=32 (stone layer) and Haste II below Y=0 (deepslate layer) while holding a pickaxe. The Excavation Rush ability (45s cooldown) grants 8 seconds of Night Vision and full immunity to Mining Fatigue. Includes /miner command for plugin info and ability activation. Fully configurable through config.yml with support for all Minecraft versions via XSeries.

Let me create all the files now.

E

The compilation failed with this error:

code
Compilation failed with 4 error(s):

ERROR in src/main/java/com/kodari/miner/listener/MiningListener.java at line 53: cannot find symbol
                        player.removePotionEffect(PotionEffectType.SLOW_DIGGING);
                                                                  ^
  symbol: variable SLOW_DIGGING
  location: class PotionEffectType

ERROR in src/main/java/com/kodari/miner/listener/MiningListener.java at line 68: cannot find symbol
        PotionEffect current = player.getPotionEffect(PotionEffectType.FAST_DIGGING);
                                                                      ^
  symbol: variable FAST_DIGGING
  location: class PotionEffectType

ERROR in src/main/java/com/kodari/miner/listener/MiningListener.java at line 71: cannot find symbol
            player.addPotionEffect(new PotionEffect(PotionEffectType.FAST_DIGGING, 60, amplifier, false, false, true), true);
                                                                    ^
  symbol: variable FAST_DIGGING
  location: class PotionEffectType

ERROR in src/main/java/com/kodari/miner/listener/MiningListener.java at line 79: cannot find symbol
            player.removePotionEffect(PotionEffectType.FAST_DIGGING);
                                                      ^
  symbol: variable FAST_DIGGING
  location: class PotionEffectType


=== COMPILATION ERROR ANALYSIS ===

FILES TO INVESTIGATE:
  - src/main/java/com/kodari/miner/listener/MiningListener.java

Please fix this error by creating a new artifact with the corrected code.

Kodari AI
KodariJul 23 at 11:05 am 1

The issue is SLOW_DIGGING/FAST_DIGGING were renamed to MINING_FATIGUE/HASTE in newer Bukkit API versions. I’ll fix with cross-version name lookups

Fixed. The issue was that SLOW_DIGGING/FAST_DIGGING were renamed to MINING_FATIGUE/HASTE in newer Bukkit API versions. I added a PotionIds inner class that resolves the correct name at runtime — tries the modern name first, falls back to the legacy name — so it works across all Minecraft versions.

E

Make the custom block of stone where it could give you the ability and make the thing player spefic thing so u give the class with command and make sure the passive works

Kodari AI
KodariJul 23 at 11:11 am 1

Let me read the current files to understand the full structure.

Now I have the full picture. I need to:

  1. Create a MinerClassManager — tracks which players have the class (persisted to file)

  2. Add /miner give <player> command to assign the class

  3. Add a configurable custom stone block that players right-click to receive the class

  4. Update MiningListener and ExcavationRushAbility to only work for class holders

E

Make the ability in to a custom block of a stone block and when you go down u get haste 1 and haste 2 if u go over this is the passive DONT FORGET

Kodari AI
KodariJul 23 at 11:14 am 1

Here’s the plan:

  1. Passive — already working (MiningListener). Stays.

  2. Ability — remove /miner ability and the cooldown command activation. The ClassBlockListener already handles right-clicking a stone block (configurable material) to trigger the ability. It already calls ExcavationRushAbility.activate(). So the main change is simplifying the command and verifying the block listener is solid.

  3. Command — /miner give <player> stays for class assignment, remove the ability subcommand. /miner shows info.

Let me clean up the ability activation flow, remove the command-based ability trigger, and make sure the block listener is the only trigger.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
10 552
src/main/java/com/kodari/miner/MinerPlugin.java
package com.kodari.miner;

import com.kodari.miner.ability.CooldownManager;
import com.kodari.miner.ability.ExcavationRushAbility;
import com.kodari.miner.classsystem.MinerClassManager;
import com.kodari.miner.command.MinerCommand;
import com.kodari.miner.listener.ClassBlockListener;
import com.kodari.miner.listener.MiningListener;
import org.bukkit.plugin.java.JavaPlugin;

public class MinerPlugin extends JavaPlugin {

    private CooldownManager cooldownManager;
    private ExcavationRushAbility excavationRushAbility;
    private MiningListener miningListener;
    private MinerClassManager minerClassManager;

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

        cooldownManager = new CooldownManager();
        minerClassManager = new MinerClassManager(this);
        excavationRushAbility = new ExcavationRushAbility(this);
        miningListener = new MiningListener(this);

        getServer().getPluginManager().registerEvents(miningListener, this);
        getServer().getPluginManager().registerEvents(new ClassBlockListener(this), this);

        getCommand("miner").setExecutor(new MinerCommand(this));

        getLogger().info("MinerPlugin enabled!");
    }

    @Override
    public void onDisable() {
        if (minerClassManager != null) {
            minerClassManager.save();
        }
        getLogger().info("MinerPlugin disabled!");
    }

    public CooldownManager getCooldownManager() {
        return cooldownManager;
    }

    public ExcavationRushAbility getExcavationRushAbility() {
        return excavationRushAbility;
    }

    public MinerClassManager getMinerClassManager() {
        return minerClassManager;
    }
}