notzbrodha

Minecraft Paper Plugin Development Prompt

Plugin Name

ElementalSwords

Server Compatibility

  • Platform: Paper
  • Minecraft Versions: 1.21.1 – 1.21.11
  • Java Version: Java 21
  • Must support multiplayer servers.
  • Plugin should be fully optimized with no console errors or memory leaks.

---

Main Concept

Create 3 Legendary Custom Netherite Swords.

Each sword has:

  • Custom Name
  • Custom Lore
  • Enchanted Glow
  • Unbreakable
  • Hidden Vanilla Attributes
  • Custom Model Data support (optional)
  • Unique Abilities
  • Cooldowns
  • Particle Effects
  • Sounds
  • Action Bar Messages
  • Boss Bar Cooldowns (optional)

The swords are:

🔥 Fire Sword

🌊 Water Sword

⚡ Thunder Sword

---

Command

/sword

Opens a beautiful custom INVENTORY GUI.

INVENTORY GUI Title

⚔ Legendary Elemental Swords ⚔

INVENTORY GUI Size

27 Slots

Items

Slot 11

🔥 Fire Sword

Slot 13

🌊 Water Sword

Slot 15

⚡ Thunder Sword

Clicking any item gives the player that sword.

Players can claim the swords unlimited times.

---

FIRE SWORD 🔥

Weapon:

Custom Netherite Sword

Name

§c§lInferno Blade

Passive Ability

  • Player is immune to fire and lava damage while holding the sword.

---

Ability 1

Activation

SHIFT + RIGHT CLICK

Effects

  • Player swings the sword.
  • Huge fire burst appears.
  • Fire particles.
  • Flame sounds.
  • Target player within 30 blocks instantly dies.
  • Ignore Armor.
  • Ignore Enchantments.
  • Ignore Totem.
  • Instant Kill.

Cooldown

15 Seconds

Action Bar

Inferno Strike Ready

---

Ability 2

Activation

Press F (Swap Hand Key)

Effects

  • Massive 360° fire wave.
  • Radius

20 Blocks

Every Player

  • Takes damage.

Diamond Armor Players

Lose

8 Hearts

Animals

Instant Die

Monsters

Instant Die

Fire remains on ground for

5 Seconds

Huge Explosion Sound

Lots of Flame Particles

Cooldown

30 Seconds

---

WATER SWORD 🌊

Weapon

Custom Netherite Sword

Name

§b§lOcean Blade

Passive

Unlimited Water Breathing

No Drowning Damage

Night Vision Underwater

Faster Swimming

---

Ability

Activation

SHIFT + RIGHT CLICK

Radius

20 Blocks

Effects

  • Creates a giant Obsidian Dome around nearby enemies.
  • Dome completely fills with water.
  • Bubble particles everywhere.
  • Water sounds.
  • Every trapped player continuously takes damage.
  • Escape only by breaking blocks or teleporting.
  • Dome disappears automatically after

10 Seconds

Cooldown

25 Seconds

---

Ability 2

Activation

Press F

Player launches a huge water wave.

Range

25 Blocks

Every entity hit

  • Knockback
  • Slowness
  • Weakness
  • Water particles

Cooldown

20 Seconds

---

THUNDER SWORD ⚡

Weapon

Custom Netherite Sword

Name

§e§lThunder King Blade

Passive

Permanent Speed I

Permanent Jump Boost I

Immune to Lightning Damage

---

Ability 1

Activation

SHIFT + RIGHT CLICK

Radius

50 Blocks

Duration

10 Seconds

Effects

Random lightning continuously strikes.

Every Lightning Strike

Spawn

1 Primed TNT

Lightning damages nearby players and mobs.

Massive thunder sounds.

Smoke particles.

Cooldown

35 Seconds

---

Ability 2

Activation

Press F

Target the player you're looking at.

A giant lightning bolt falls from the sky.

The target dies instantly.

Huge explosion particles.

Thunder sound.

Lightning effect.

Cooldown

20 Seconds

---

General Features

Every Sword has

✔ Unlimited Uses

✔ Cooldown System

✔ Action Bar Cooldowns

✔ Particle Effects

✔ Sound Effects

✔ Unique Lore

✔ Enchanted Glow

✔ Unbreakable

✔ Hide Attributes

✔ Cannot Stack

✔ Custom Item Identification

✔ Prevent Ability Abuse

✔ No Console Errors

✔ Multiplayer Friendly

✔ Fully Configurable

---

Config.yml

Everything should be configurable.

Example

  • Damage
  • Cooldowns
  • Radius
  • Sounds
  • Particles
  • Messages
  • Permissions

---

Permissions

elementalswords.use elementalswords.INVENTORY GUI elementalswords.admin

---

Files Required

  • Source Code
  • plugin.yml
  • config.yml
  • README.md

---

The plugin must work perfectly on Paper Minecraft 1.21.1 to 1.21.11 with stable performance, multiplayer compatibility, and professional-quality code.

Kodari AI
KodariJul 23 at 3:53 pm 16
ElementalSwords
ElementalSwords is a configurable Paper plugin that adds three legendary Netherite weapons: Inferno Blade, Ocean Blade, and Thunder King Blade. It provides a polished 27-slot /sword GUI, unlimited item claiming, persistent custom item identification, passive powers, active fire, water, and lightning abilities, cooldown action bars, particles, sounds, permissions, admin utilities, and safe multiplayer-aware temporary effects for Paper 1.21.1 through 1.21.11.
  1. Create the Gradle project and plugin metadata.

  2. Add item, cooldown, GUI, command, event, passive, and ability systems.

  3. Add complete configuration and usage documentation.

ElementalSwords is a configurable Paper plugin that adds three legendary Netherite weapons: Inferno Blade, Ocean Blade, and Thunder King Blade. Players claim them through a polished 27-slot GUI and use distinct fire, water, and lightning abilities with cooldowns, action-bar feedback, particles, sounds, passive effects, unbreakable custom items, hidden attributes, optional model data, permissions, and safe multiplayer-aware cleanup.

Created ElementalSwords, a configurable Paper 1.21.1+ Java 21 plugin featuring:

  • Three legendary Netherite swords with unique passive abilities.

  • Fire, water, and thunder abilities with cooldowns.

  • Custom names, lore, glow, unbreakable status, hidden attributes, and model-data support.

  • /sword 27-slot inventory GUI.

  • /sword give <player> <fire|water|thunder> admin command.

  • Action-bar cooldown feedback, sounds, particles, temporary domes, fire effects, lightning, and TNT storms.

  • Persistent item identification and multiplayer-safe cleanup.

  • Configurable config.yml, permissions, plugin.yml, Gradle build files, and README documentation.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
README.md
settings.gradle
Code
15 1,261
src/main/java/com/kodari/elementalswords/ElementalSwordsPlugin.java
package com.kodari.elementalswords;

import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public final class ElementalSwordsPlugin extends JavaPlugin {
    private SwordItemFactory itemFactory;
    private CooldownManager cooldowns;
    private WaterDomeManager domes;
    private AbilityManager abilityManager;
    private SwordGUI swordGUI;

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

        itemFactory = new SwordItemFactory(this);
        cooldowns = new CooldownManager();
        domes = new WaterDomeManager(this);
        abilityManager = new AbilityManager(this, cooldowns, domes);
        swordGUI = new SwordGUI(this, itemFactory);

        ElementalListener listener = new ElementalListener(this);
        Bukkit.getPluginManager().registerEvents(listener, this);

        if (getCommand("sword") != null) {
            SwordCommand command = new SwordCommand(this);
            getCommand("sword").setExecutor(command);
            getCommand("sword").setTabCompleter(command);
        }

        long interval = Math.max(1L, getConfig().getLong("passives.water.apply-interval-ticks", 20L));
        long thunderInterval = Math.max(1L, getConfig().getLong("passives.thunder.apply-interval-ticks", 40L));
        long passiveInterval = Math.min(interval, thunderInterval);
        Bukkit.getScheduler().runTaskTimer(this, abilityManager::applyPassives, 0L, passiveInterval);
        getLogger().info("ElementalSwords enabled.");
    }

    @Override
    public void onDisable() {
        if (domes != null) {
            domes.restoreAll();
        }
        if (cooldowns != null) {
            cooldowns.clearAll();
        }
    }

    public SwordItemFactory getItemFactory() {
        return itemFactory;
    }

    public CooldownManager getCooldowns() {
        return cooldowns;
    }

    public AbilityManager getAbilityManager() {
        return abilityManager;
    }

    public SwordGUI getSwordGUI() {
        return swordGUI;
    }
}