L

🏹⚔️ Custom Weapons Plugin – FINAL LIST

⸻

⏱ Global Cooldown System

* All weapons: * 45 second cooldown * Per-player, per-weapon

⸻

📊 ActionBar System (FINAL)

🎯 Behavior

* Shows ONLY weapons in the player’s inventory * Updates live above hotbar

⸻

🔴 Cooldown State

* 🔴 WeaponName: Xs

⸻

🎨 Ready State

* Uses weapon name color (NOT green)

Examples:

* §bEchobow: Ready * §7Windblade: Ready * §5Gravity Sword: Ready

⸻

🧠 Example ActionBar

Player has Echobow + Shadowblade:

* 🔴 Echobow: 20s §8Shadowblade: Ready

Player has Dashbow + Gravity Sword:

* 🔴 Dashbow: 10s 🔴 Gravity Sword: 30s

Player has only Thunderblade:

* §eThunderblade: Ready

⸻

🏹 Bows & Crossbow

⸻

§bEchobow

Ability: Sonic Boom

❤️ Damage

* ❤️ 5 hearts

🔊 Sound

* minecraft:entity.warden.sonic_boom

📜 Lore

* §7Unleash a devastating sonic blast * §7that echoes through your enemies * §8Cooldown: 45s

⸻

§bDashbow

Ability: Direction Dash

⚙️ Behavior

* Dash ~10 blocks in arrow direction

💙 Effect

* Blue particle trail (1–2 sec) * SOUL, blue REDSTONE, optional CLOUD

📜 Lore

* §7Ride the arrow’s path forward * §7Dash quickly in its direction * §8Cooldown: 45s §bFrozencrossbow

Ability: Freezing Shot

❤️ Damage

* ❤️ 4 hearts

❄️ Effect

* Blue particle trail on arrow

📜 Lore

* §7Arrows infused with icy energy * §7Leave a chilling trail behind * §8Cooldown: 45s

⸻

⚔️ Swords

⸻

§e⚡ Thunderblade

Ability: Lightning Storm

❤️ Damage

* ❤️ 5 hearts

⚙️ Behavior

* Lightning strikes where player is looking * 2–3 extra lightning strikes nearby

📜 Lore

* §7Call down lightning from the sky * §7Strike where you are looking * §8Cooldown: 45s

⸻

§7🌪️ Windblade

Ability: Wind Burst

❤️ Damage

* ❤️ 3 hearts

⚙️ Behavior

* Knockback + launch enemies * Speed + jump boost

📜 Lore

* §7Unleash a burst of wind * §7Knock enemies into the air * §8Cooldown: 45s

⸻

§8🌑 Shadowblade

Ability: Shadow Dash

❤️ Damage

* ❤️ 4 hearts (dash) * ❤️ + bonus next hit

⚙️ Behavior

* Teleport forward * Damage enemies you pass through

🌑 Effect

* Heavy black particle trail * SQUID_INK, SMOKE, LARGE_SMOKE

📜 Lore

* §7Dash through the shadows * §7Leave darkness in your wake * §8Cooldown: 45s

⸻

§5🌀 Gravity Sword

Ability: Gravity Slam

❤️ Damage

* ❤️ 2 hearts

⚙️ Behavior

  1. Pull enemies
  2. Launch ~5 blocks up
  3. Slam down

📜 Lore

* §7Control the force of gravity * §7Pull enemies and slam them down * §8Cooldown: 45s

⸻

🎨 Color Summary

* §b = Light blue (bows) * §e = Yellow (Thunderblade) * §7 = Light gray (Windblade) * §8 = Dark gray (Shadowblade) * §5 = Purple (Gravity Sword)

⸻

🔥 Final Result

* ✅ Only shows weapons you have * ✅ Clean ActionBar (no clutter) * ✅ Color-based “Ready” system * ✅ All weapons balanced & consistent * ✅ Full visual + ability system Only Players with op can get them with Commands. you can activate the ability of the weapons by holding it in your hand and right clicking

Kodari AI
KodariApr 22 at 10:42 pm 60,463 (v2)
CustomWeapons
A custom weapons plugin featuring 7 unique weapons (3 bows, 4 swords) with special abilities triggered by right-clicking. Each weapon has a 45-second per-player cooldown. A live ActionBar displays all weapons in the player's inventory, showing colored "Ready" state or a red cooldown timer. Only server operators can obtain weapons via /customweapons, which opens an interactive GUI. Complete with particles, sounds, and cross-version compatibility via XSeries.
  • 14 files: main plugin, WeaponType enum, WeaponManager (abilities + cooldowns), ActionBarManager, WeaponListener, WeaponCommand, complete GUI framework, and WeaponGUI

  • All 7 weapon abilities (EchoBow, DashBow, FrozenCrossbow, ThunderBlade, WindBlade, ShadowBlade, GravitySword) implemented in WeaponManager with XSeries for full cross-version compatibility

  • ActionBar tracks per-inventory weapons every second showing color-coded ready/cooldown states

All 14 files created — the plugin features 7 unique weapons with full ability implementations, a live ActionBar showing per-weapon ready/cooldown state in weapon colors, GUI-based weapon distribution restricted to ops via /customweapons, and a complete GUI framework with automatic inventory lifecycle management.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
14 925
src/main/java/com/example/customweapons/CustomWeapons.java
package com.example.customweapons;

import com.example.customweapons.command.WeaponCommand;
import com.example.customweapons.inventory.gui.GUIListener;
import com.example.customweapons.inventory.gui.GUIManager;
import com.example.customweapons.listener.WeaponListener;
import com.example.customweapons.manager.ActionBarManager;
import com.example.customweapons.manager.WeaponManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

public class CustomWeapons extends JavaPlugin {

    @Getter
    private WeaponManager weaponManager;

    @Getter
    private ActionBarManager actionBarManager;

    @Getter
    private GUIManager guiManager;

    @Override
    public void onEnable() {
        weaponManager = new WeaponManager(this);
        actionBarManager = new ActionBarManager(this);
        guiManager = new GUIManager();

        getServer().getPluginManager().registerEvents(new GUIListener(guiManager), this);
        getServer().getPluginManager().registerEvents(new WeaponListener(this), this);

        getCommand("customweapons").setExecutor(new WeaponCommand(this));

        actionBarManager.start();

        getLogger().info("CustomWeapons enabled successfully.");
    }

    @Override
    public void onDisable() {
        if (actionBarManager != null) {
            actionBarManager.stop();
        }
        getLogger().info("CustomWeapons disabled.");
    }
}