Kasper

Make a minecraft plugin with 10 custom ability swords wich has one passive and one ability with cooldown and you can use it with pressing shift+rightclick you can choose the swords and make it the way you want. Do /abilityswords command wich opens gui where u can take the swords, every sword need to be netherite sword, make also /abilityswords settings command where you can change every weapons settings

Kodari AI
KodariSep 20 at 10:29 am 2
AbilitySwords
A Minecraft plugin adding 10 unique netherite swords, each with a passive ability and an active ability with cooldown. Players activate abilities by shift+right-clicking. The /abilityswords command opens a GUI menu where players can select and receive swords. The /abilityswords settings command opens a configuration interface allowing players to customize each sword's damage, cooldown, and ability parameters. Each sword has distinct elemental themes including fire, ice, lightning, poison, shadow, holy, wind, earth, water, and arcane. The plugin uses a custom inventory GUI framework with button-based interaction, lazy initialization, and centralized event management for seamless player experience.
  1. Create the Gradle/plugin metadata and default sword settings.

  2. Add the ten sword definitions, configurable settings manager, item identification, cooldowns, passives, and abilities.

  3. Add the command, event listener, and inventory GUI framework.

  4. Add the sword selection GUI and per-sword settings GUI with persistent controls.

Created the complete AbilitySwords Minecraft plugin from scratch.

Features included:

  • 10 configurable Netherite ability swords:

    • Ember

    • Frost

    • Storm

    • Lifebloom

    • Shadow

    • Titan

    • Wind

    • Venom

    • Gravity

    • Miner

  • One passive and one shift + right-click ability per sword

  • Individual cooldown and power settings

  • Passive and ability enable/disable options

  • /abilityswords sword selection GUI

  • /abilityswords settings configuration GUI

  • Persistent settings saved to config.yml

  • GUI-based sword distribution

  • Custom cooldown handling

  • Ability sword identification through persistent item data

  • Passive effects applied automatically while holding a sword

  • Venom sword poison passive on attacks

  • Permission: abilityswords.settings

  • Alias: /aswords

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
manifest.kod
settings.gradle
Code
19 933
src/main/java/com/kodari/abilityswords/AbilitySwordsPlugin.java
package com.kodari.abilityswords;

import com.kodari.abilityswords.command.AbilitySwordsCommand;
import com.kodari.abilityswords.gui.GUIListener;
import com.kodari.abilityswords.gui.GUIManager;
import com.kodari.abilityswords.listener.AbilitySwordsListener;
import com.kodari.abilityswords.manager.AbilitySwordManager;
import org.bukkit.Bukkit;
import org.bukkit.NamespacedKey;
import org.bukkit.plugin.java.JavaPlugin;

public class AbilitySwordsPlugin extends JavaPlugin {
    private AbilitySwordManager swordManager;
    private GUIManager guiManager;
    private NamespacedKey swordKey;

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

        swordKey = new NamespacedKey(this, "ability_sword");
        swordManager = new AbilitySwordManager(this, swordKey);
        guiManager = new GUIManager();

        Bukkit.getPluginManager().registerEvents(new GUIListener(guiManager), this);
        Bukkit.getPluginManager().registerEvents(new AbilitySwordsListener(swordManager), this);

        AbilitySwordsCommand command = new AbilitySwordsCommand(this, swordManager, guiManager);
        if (getCommand("abilityswords") != null) {
            getCommand("abilityswords").setExecutor(command);
            getCommand("abilityswords").setTabCompleter(command);
        }

        swordManager.startPassiveTask();
    }

    public AbilitySwordManager getSwordManager() {
        return swordManager;
    }

    public GUIManager getGuiManager() {
        return guiManager;
    }
}