Conner Johannes

vein miner

Kodari AI
KodariOct 29 at 10:44 am 1
VeinMinerPro
A Minecraft plugin that implements vein mining mechanics, allowing players to mine entire ore veins with a single swing. Features include configurable toggle commands, energy or stamina system to prevent abuse, support for multiple ore types, particle effects and sound feedback, cooldown management, and per-player settings persistence. Includes admin controls for adjusting energy costs, vein size limits, and enabled block types through config files.
  1. Add the plugin entry point and listener.

  2. Configure sneaking, supported ores, and a per-vein block limit.

Created VeinMiner: while sneaking, players with veinminer.use mine connected ore blocks up to the configurable max-blocks limit. Settings and supported ores are in config.yml.

Kodari can make mistakes. Review important code before using.
Files
src
Code
4 143
src/main/java/com/kodari/veinminer/VeinMinerPlugin.java
package com.kodari.veinminer;

import org.bukkit.plugin.java.JavaPlugin;

public final class VeinMinerPlugin extends JavaPlugin {
    @Override
    public void onEnable() {
        saveDefaultConfig();
        getServer().getPluginManager().registerEvents(new VeinMinerListener(this), this);
    }
}