ปกป้อง จันสดใส

im creating minecraft paper plugin i want to make ability command heres what i want it to have: I want you to make command that control every abilty i made so this my ability and system i want Last Life SMP with signature weapons system. Each weapon has passive power, active ability, cooldown, strength, and weakness. Weapons: Sword (Blade Master/Dash Slash), Axe (Brutal Force/Heavy Strike), Mace (Impact/Ground Slam), Trident (Tidal Combat/Tidebreaker), Bow (Eagle Eye/Hawkeye), Crossbow (Quick Load/Piercing Shot), Shield (Guardian/Counter), Fishing Rod (Fisher/Hook), Snowball (Rapid Throw/Frost Shot), Egg (Impact Throw/Disorient), TNT (Blast Resistant/Remote Blast). No level system. Implement combo system for Sword, damage modifiers, knockback mechanics, and ability cooldowns.

Kodari AI
KodariOct 3 at 12:03 pm 1
LastLifeSignatureWeapons
Minecraft Paper plugin implementing a Last Life SMP signature weapon system with a central ability command. Each weapon type (Sword, Axe, Mace, Trident, Bow, Crossbow, Shield, Fishing Rod, Snowball, Egg, TNT) possesses a passive power, active ability, cooldown, strength, and weakness. Features a Sword combo system, damage modifiers, custom knockback mechanics, and per-ability cooldown tracking. The /ability command controls every weapon ability, allowing activation, cooldown queries, and passive toggles. No leveling system; power is inherent to each signature weapon. Includes abilities like Dash Slash, Heavy Strike, Ground Slam, Tidebreaker, Hawkeye, Piercing Shot, Counter, Hook, Frost Shot, Disorient, and Remote Blast.
  1. Create the Paper plugin scaffold and configurable weapon definitions.

  2. Implement signature weapons, passive effects, cooldowns, combos, and active abilities.

  3. Register /ability commands and event handlers for combat and projectiles.

Created the Last Life signature-weapons plugin with all 11 weapons, configurable strengths, weaknesses, cooldowns, passive effects, and active abilities. Sword hits build a configurable combo; active abilities work with sneak + right-click or /ability activate.

Commands: /ability list, /ability give <player> <weapon>, /ability activate [weapon], /ability cooldown, and /ability reload. No level system was added.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
9 901
src/main/java/com/kodari/lastlife/LastLifePlugin.java
package com.kodari.lastlife;

import org.bukkit.plugin.java.JavaPlugin;

public final class LastLifePlugin extends JavaPlugin {
    private AbilityManager abilityManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        abilityManager = new AbilityManager(this);
        getServer().getPluginManager().registerEvents(new AbilityListener(abilityManager), this);
        AbilityCommand command = new AbilityCommand(this, abilityManager);
        getCommand("ability").setExecutor(command);
        getCommand("ability").setTabCompleter(command);
    }

    public AbilityManager abilityManager() {
        return abilityManager;
    }
}