kyonog

Create a plugin for Paper 1.21-1.21.11 that includes a custom texture sword. The sword should upgrade and increase its attack damage as players get kills, and it should also have special abilities: ​Right-clicking on a player within a 10-block range shoots a fireball (up to 5 clicks/fireballs), followed by a 5-minute cooldown. ​Command: /ccsword give <player> ​Plugin name: CCsword Author: KyonOG

Kodari AI
KodariAug 7 at 6:58 am 1
CCsword
A Paper 1.21-1.21.11 plugin featuring a custom-textured upgradeable sword. The sword increases attack damage with each player kill. Right-clicking a player within 10 blocks launches a fireball, usable up to 5 times before a 5-minute cooldown. Includes /ccsword give command to distribute the sword. Author: KyonOG.
  1. Create the Paper plugin build and metadata for CCsword.

  2. Implement the persistent custom-model sword with kill-based damage upgrades.

  3. Add the five-shot fireball ability, cooldown handling, and /ccsword give <player>.

Created CCsword with:

  • Paper 1.21 plugin setup using Java 21.

  • /ccsword give <player> command with tab completion.

  • Custom-model-data sword using model ID 1001.

  • Persistent kill tracking.

  • Attack damage increases by 1.0 per kill.

  • Sword lore updates with kills and bonus damage.

  • Right-click player targeting within 10 blocks launches fireballs.

  • Maximum of 5 fireballs per cycle.

  • Five-minute cooldown after the fifth shot.

  • Configurable sword material, model ID, damage scaling, fireball speed, and cooldown.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
8 370
src/main/java/com/kyonog/ccsword/CCswordPlugin.java
package com.kyonog.ccsword;

import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;

public final class CCswordPlugin extends JavaPlugin {
    private SwordManager swordManager;

    @Override
    public void onEnable() {
        swordManager = new SwordManager(this);
        getServer().getPluginManager().registerEvents(new SwordListener(this, swordManager), this);

        PluginCommand command = getCommand("ccsword");
        if (command != null) {
            CcswordCommand ccswordCommand = new CcswordCommand(swordManager);
            command.setExecutor(ccswordCommand);
            command.setTabCompleter(ccswordCommand);
        }
    }

    public SwordManager getSwordManager() {
        return swordManager;
    }
}