90239582376472631023289752356502

make frost axe

1 image attached
Kodari AI
KodariApr 22 at 4:26 am 9,646 (v2)

I’ll create a custom Frost Axe plugin with a passive resistance effect and a freeze ability.

FrostAxe
A custom weapon plugin featuring a powerful Frost Axe with unique abilities. The axe grants Resistance I when held (passive) and can unleash a Deep Freeze ability that freezes all nearby enemies for 2 seconds with a 25-second cooldown. Includes Sharpness V, Unbreaking III, and Mending enchantments. Players can obtain the axe through commands and enjoy stunning particle effects during freezing.

All files created successfully! The FrostAxe plugin features a custom diamond axe with Sharpness V, Unbreaking III, and Mending that grants Resistance I when held and can freeze nearby enemies for 2 seconds with a right-click ability on a 25-second cooldown.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
9 506
src/main/java/com/frostaxe/FrostAxe.java
package com.frostaxe;

import com.frostaxe.commands.FrostAxeCommand;
import com.frostaxe.listeners.AbilityListener;
import com.frostaxe.listeners.PassiveListener;
import com.frostaxe.managers.CooldownManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class FrostAxe extends JavaPlugin {
    
    private CooldownManager cooldownManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.cooldownManager = new CooldownManager(this);
        
        getCommand("frostaxe").setExecutor(new FrostAxeCommand(this));
        
        getServer().getPluginManager().registerEvents(new AbilityListener(this), this);
        getServer().getPluginManager().registerEvents(new PassiveListener(this), this);
        
        getLogger().info("FrostAxe has been enabled!");
    }
    
    @Override
    public void onDisable() {
        getLogger().info("FrostAxe has been disabled!");
    }
}