90239582376472631023289752356502

make shadow sword

1 image attached
Kodari AI
KodariApr 22 at 4:16 am 5,704 (v2)
ShadowSword
Adds the Shadow Sword custom weapon. A netherite sword with Sharpness V, Sweeping Edge III, Fire Aspect II, Unbreaking III, and Mending. Features the Void Step ability: right-click to gain Invisibility and Speed II for 5 seconds while applying Wither II to all nearby enemies within 5 blocks. 45-second cooldown. Unbreakable with custom lore and stats matching the tooltip design.
  • Main plugin class, command /shadowsword give, listener for right-click ability, cooldown tracker

  • Item built with XSeries enchantments, XItemFlag for unbreakable/hide flags, custom lore

  • Void Step: right-click triggers invisibility + speed II on self, wither II on nearby entities, 45s cooldown

The Shadow Sword plugin is complete — use /shadowsword give [player] (requires shadowsword.give, default op) to receive the sword, then right-click to trigger Void Step: grants Invisibility + Speed II to yourself and applies Wither II to all living entities within 5 blocks, with a 45-second cooldown.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
6 305
src/main/java/com/shadowsword/ShadowSwordPlugin.java
package com.shadowsword;

import com.shadowsword.command.ShadowSwordCommand;
import com.shadowsword.item.ShadowSwordItem;
import com.shadowsword.listener.ShadowSwordListener;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

public class ShadowSwordPlugin extends JavaPlugin {

    @Getter
    private static ShadowSwordPlugin instance;

    @Getter
    private ShadowSwordItem shadowSwordItem;

    @Override
    public void onEnable() {
        instance = this;
        shadowSwordItem = new ShadowSwordItem();
        getServer().getPluginManager().registerEvents(new ShadowSwordListener(this), this);
        ShadowSwordCommand cmd = new ShadowSwordCommand(this);
        getCommand("shadowsword").setExecutor(cmd);
        getCommand("shadowsword").setTabCompleter(cmd);
    }

    @Override
    public void onDisable() {
        instance = null;
    }
}