niruguragain1223-gif

Develop a plugin that adds the enchantment of Vein-Miner for pickaxe which mines the whole vein with the loss of its equal durability, Tree Capitator for axe which chops down entire trees but also replants saplings automatically, Smelt Touch for pickaxe which Automatically smelts ores when mined (like Iron → Iron Ingot),Harvest Aura for hoe which Instantly harvests and replants crops in a radius, Momentum for boots which Increases speed after hitting mobs or mining blocks continuously, Flame Walker for boots which Turns lava into obsidian when walking over it (like Frost Walker but for lava). Also make it like these enchantment can occur in villager trades and enchantment table

Plugin Name: Stellar Enchantments Description: Lightweight Enchantment Plugin Author: AgentNP Nationality: Nepal

Extra commands: /stellarenchant <customenchantment> Permission for /stellarenchant = stellarenchant.admin

Kodari AI
KodariApr 19 at 4:31 am 16,802 (v2)

I’ll create a comprehensive custom enchantment plugin with six unique enchantments that integrate with vanilla systems.

StellarEnchants
Adds six unique custom enchantments: Vein Miner (mines entire ore veins with durability cost), Tree Capitator (chops trees and auto-replants), Smelt Touch (auto-smelts ores), Harvest Aura (harvests and replants crops in radius), Momentum (speed boost from consecutive actions), and Flame Walker (walks on lava creating obsidian). All enchantments integrate with villager trades and enchantment tables.

All files created successfully! The plugin includes:

Six Custom Enchantments:

  • Vein Miner (Pickaxe) - Mines entire ore veins with durability cost per block

  • Tree Capitator (Axe) - Chops entire trees and auto-replants saplings

  • Smelt Touch (Pickaxe) - Auto-smelts ores (Iron→Ingot, Gold→Ingot, etc.)

  • Harvest Aura (Hoe) - Harvests and replants crops in configurable radius

  • Momentum (Boots) - Gains speed from hitting mobs or mining blocks

  • Flame Walker (Boots) - Walks on lava, temporarily turning it to obsidian

Integration Features:

  • Works with enchantment tables (15% chance by default)

  • Works with villager trades (10% chance for toolsmith/weaponsmith/armorer)

  • /stellarenchant <enchantment> [level] command with tab completion

  • All enchantments stored in PDC for persistence

  • XSeries for cross-version compatibility

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
19 1,293
src/main/java/com/agentnp/stellarenchants/StellarEnchants.java
package com.agentnp.stellarenchants;

import com.agentnp.stellarenchants.command.StellarEnchantCommand;
import com.agentnp.stellarenchants.listener.*;
import com.agentnp.stellarenchants.manager.EnchantmentManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public final class StellarEnchants extends JavaPlugin {

    private EnchantmentManager enchantmentManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.enchantmentManager = new EnchantmentManager(this);
        enchantmentManager.registerAllEnchantments();
        
        registerListeners();
        registerCommands();
        
        getLogger().info("StellarEnchants has been enabled!");
    }

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

    private void registerListeners() {
        getServer().getPluginManager().registerEvents(new BlockBreakListener(this), this);
        getServer().getPluginManager().registerEvents(new PlayerMoveListener(this), this);
        getServer().getPluginManager().registerEvents(new EntityDamageListener(this), this);
        getServer().getPluginManager().registerEvents(new EnchantTableListener(this), this);
        getServer().getPluginManager().registerEvents(new VillagerTradeListener(this), this);
    }

    private void registerCommands() {
        getCommand("stellarenchant").setExecutor(new StellarEnchantCommand(this));
    }
}