Gurkamal Singh Thind
📎 1 file 18,162 chars
📄
pasted-code-1788116398980.txt
txt 908 lines
▶
Create a **fully functional, production-ready Minecraft Paper plugin for Minecraft 1.21.11**.

IMPORTANT:

* Platform: **Paper**
* Minecraft Version: **1.21.11**
* Java: Use the appropriate Java version required by Paper 1.21.11
* This is a **SERVER-SIDE PLUGIN**
* Do NOT make it a Fabric/Forge/NeoForge mod.
* Do NOT require players to install any client-side mod.
* Use Paper/Bukkit APIs wherever possible.
* The plugin must compile successfully and run without errors.

# PLUGIN CONCEPT

Create a premium-quality custom weapon plugin containing exactly **5 legendary OP weapons**:

1. Mace
2. Sword #1 — Inferno Sword
3. Sword #2 — Void Sword
4. Axe — Titan Axe
5. Bow — Celestial Bow

These weapons must NOT just be normal Minecraft weapons with potion effects.

Every weapon needs genuinely powerful custom mechanics, custom abilities, particles, sounds, animations, area damage, cooldowns, and unique combat behavior.

The weapons should feel like **boss-level / god-tier weapons**.

The goal is extremely powerful combat.

A strong attack should be capable of taking away a huge portion of a player's health and, depending on the ability, potentially triggering or consuming a Totem of Undying.

DO NOT make the abilities cosmetic.

The abilities must have real gameplay impact:

* Massive damage
* AoE damage
* Knockback
* Launching
* Pulling
* Burning
* Explosions
* Shockwaves
* Ground impacts
* Projectiles
* Teleportation
* Crowd control
* Environmental effects where appropriate

Balance is NOT the priority. These weapons are intentionally OVERPOWERED.

However, prevent infinite spam using intelligent cooldowns.

---

# 1. LEGENDARY MACE — "EARTHBREAKER"

Material:

* Netherite Mace

Theme:

* Earth
* Gravity
* Shockwave
* Meteor impact

The mace should have a massive custom smash ability.

## Passive — TITAN'S GRAVITY

While holding the mace:

* Give the player a subtle visual gravity aura.
* Nearby enemies are slightly slowed.
* Add appropriate particles around the mace.
* Add deep/ominous sounds when the weapon is equipped or swung.

Do not rely only on potion effects; the actual combat mechanics must matter.

## Ability — EARTHBREAKER

When the player performs a powerful downward mace attack:

1. Detect the impact location.
2. Create a huge ground shockwave.
3. Damage EVERY valid enemy in approximately a **20-block diameter / roughly 10-block radius** around the impact point.
4. The attack should affect enemies regardless of whether they are directly hit by the mace.
5. Deal extremely high damage.
6. Apply massive knockback upward/outward.
7. Launch weaker entities into the air.
8. Create a visual expanding shockwave.
9. Spawn block-dust particles around the ground.
10. Play a powerful explosion/impact sound.
11. Create multiple concentric particle rings.
12. Create a camera-shake-like visual effect using particles/sounds where possible.
13. Do NOT destroy the actual terrain unless explicitly configurable.

Example combat result:

Player falls from height with Earthbreaker
→ hits ground
→ huge impact
→ all enemies around the impact point get hit
→ massive damage
→ enemies fly away
→ ground shockwave expands
→ dust/debris particles appear
→ huge sound effect.

## ULTIMATE — PLANETARY IMPACT

Add a long cooldown ultimate.

When activated:

* Briefly launch the player upward.
* Create a powerful downward strike.
* On impact create an enormous shockwave.
* Damage enemies in a larger configurable radius.
* Extremely high damage.
* Massive knockback.
* Optional short stun/slow.
* Huge particle effect.
* Lightning-like visual effect without unnecessarily destroying terrain.
* Multiple impact sounds.

This must feel like a **meteor hitting the battlefield**.

---

# 2. INFERNO SWORD — "INFERNO"

Material:

* Netherite Sword

Theme:

* Fire
* Lava
* Burning energy
* Flame projectiles

## Passive — FLAME AURA

When held:

* Flames/embers orbit the player.
* Attacks ignite enemies.
* Add custom fire particles.
* Add Nether-themed sounds.

## Ability — FLAME SLASH

On right-click:

Create a large flaming slash projectile traveling forward.

The slash should:

* Travel several blocks.
* Damage enemies it intersects.
* Deal very high damage.
* Ignite enemies.
* Knock enemies backward.
* Spawn flame particles.
* Leave a temporary visual fire trail.
* Play a sharp sword/fire sound.

The damage must be REAL.

## Ability — INFERNO BURST

On activation:

* Release a radial fire explosion around the player.
* Damage nearby enemies.
* Knock them backward.
* Ignite them.
* Spawn a large fire ring.
* Create several outward-moving flame waves.

## ULTIMATE — SUNFALL

Create a target-based ultimate.

When the player targets an area:

* Mark the location.
* Create a fiery circle.
* After a short delay, summon a massive fiery impact from above.
* Deal enormous AoE damage.
* Ignite all enemies.
* Create multiple waves of flame particles.
* Play powerful sounds.

The ability should look and feel like a **miniature sun falling onto the battlefield**.

Do NOT merely spawn harmless particles.

---

# 3. VOID SWORD — "VOIDREAPER"

Material:

* Netherite Sword

Theme:

* Void
* Teleportation
* Darkness
* Gravity
* Dimensional attacks

This weapon must feel completely different from the Inferno Sword.

## Passive — VOID STEP

When attacking:

* Give a chance to teleport a short distance around the target.
* Create portal/void particles.
* Play teleport sounds.

## Ability — VOID SLASH

On right-click:

* Create a dark/void-like projectile.
* It travels forward.
* Damages enemies.
* Pulls targets slightly toward the projectile's center.
* Applies heavy knockback after the pull.
* Creates a dark particle trail.

## Ability — ABYSSAL GRASP

Target an enemy.

Create a temporary void zone around them:

* Pull nearby enemies inward.
* Deal repeated damage.
* Prevent easy escape using strong pull/knockback mechanics.
* Finish with a large burst of damage.

## ULTIMATE — RIFT COLLAPSE

This must be one of the strongest abilities in the plugin.

When activated:

1. Create a large void rift at the target location.
2. Pull nearby enemies toward the center.
3. Damage them repeatedly for a short duration.
4. Create intense dark particle effects.
5. After the duration, collapse the rift.
6. Deal an enormous final burst of damage.
7. Knock enemies violently away.
8. Teleport the caster to the rift location if appropriate.

Make it feel like **space itself is collapsing**.

---

# 4. TITAN AXE — "TITAN'S WRATH"

Material:

* Netherite Axe

Theme:

* Strength
* Lightning
* Shockwaves
* Brutal melee combat

This weapon should specialize in **raw physical destruction**.

## Passive — TITAN FORCE

Normal attacks:

* Deal extremely high damage.
* Have enhanced knockback.
* Create small impact particles.
* Occasionally create a miniature shockwave.

## Ability — AXE WAVE

When activated:

* Swing the axe.
* Release a wide horizontal shockwave.
* The shockwave travels forward.
* Damage every enemy it hits.
* Knock enemies backward.
* Spawn ground particles along its path.

## Ability — THUNDER CLEAVE

Strike the ground:

* Create a large AoE.
* Call visual lightning effects.
* Deal massive damage.
* Knock enemies into the air.
* Create several secondary impact points around the main target.

## ULTIMATE — GOD'S JUDGEMENT

Target an enemy or location.

After a short charge-up:

* Create a huge lightning strike.
* Follow it with a gigantic axe shockwave.
* Deal catastrophic damage.
* Knock nearby enemies away.
* Spawn multiple lightning visual effects.
* Create a large particle explosion.

The attack should feel like a **god personally striking the battlefield**.

---

# 5. CELESTIAL BOW — "CELESTIAL"

Material:

* Netherite Bow

Theme:

* Divine arrows
* Energy
* Precision
* Meteoric projectiles

This weapon should be completely different from the melee weapons.

## Passive — CELESTIAL ARROWS

Arrows fired from this bow:

* Deal significantly increased damage.
* Leave a particle trail.
* Have a custom impact effect.
* Create a small AoE burst when hitting a target.

## Ability — METEOR ARROW

Right-click / special activation:

Charge a special arrow.

When fired:

* The arrow travels forward at high speed.
* On impact, create a huge explosion-like AoE.
* Deal massive damage.
* Knock enemies away.
* Create falling-star particles.
* Play a powerful impact sound.

## Ability — RAIN OF HEAVEN

Target an area.

After activation:

* Spawn multiple arrows/projectiles from above.
* They fall into the target area.
* Each impact deals real AoE damage.
* Create multiple explosions/shockwaves.
* Make the battlefield look like a meteor shower.

## ULTIMATE — DIVINE JUDGEMENT

Create a powerful ultimate attack:

1. Player aims at an enemy/location.
2. Target is marked.
3. Sky/energy charging effect begins.
4. Several celestial particles appear above the target.
5. After a short delay, summon a massive divine projectile from above.
6. Deal extremely high damage.
7. Create a large AoE explosion/shockwave.
8. Knock nearby enemies away.
9. Create a large particle ring.
10. Play dramatic sounds.

This should look like a **divine weapon striking the target from the heavens**.

---

# CUSTOM WEAPON IDENTIFICATION

Do NOT identify weapons only by their display name.

Use:

* PersistentDataContainer
* Custom Namespaced Keys
* Unique weapon IDs
* Custom model data only if useful

Every weapon must be uniquely identifiable.

Example IDs:

earthbreaker_mace
inferno_sword
voidreaper_sword
titan_axe
celestial_bow

Do NOT accidentally give abilities to ordinary Minecraft weapons.

---

# COMMANDS

Create commands such as:

/legendary give  
/legendary list
/legendary reload
/legendary info 

Examples:

/legendary give Player Earthbreaker
/legendary give Player Inferno
/legendary give Player Voidreaper
/legendary give Player Titan
/legendary give Player Celestial

Add tab completion.

Add permission nodes:

legendary.admin
legendary.give
legendary.reload

---

# COOLDOWN SYSTEM

Every active ability must have configurable cooldowns.

Example:

Earthbreaker:

* Earthbreaker: 8 seconds
* Planetary Impact: 60 seconds

Inferno:

* Flame Slash: 4 seconds
* Inferno Burst: 10 seconds
* Sunfall: 60 seconds

Void:

* Void Slash: 4 seconds
* Abyssal Grasp: 12 seconds
* Rift Collapse: 60 seconds

Titan:

* Axe Wave: 5 seconds
* Thunder Cleave: 12 seconds
* God's Judgement: 60 seconds

Celestial:

* Meteor Arrow: 5 seconds
* Rain of Heaven: 15 seconds
* Divine Judgement: 60 seconds

Make every cooldown configurable in config.yml.

---

# DAMAGE SYSTEM

This is extremely important.

Do NOT make the abilities visually impressive but weak.

Damage must be meaningful.

Make damage configurable in config.yml.

Use appropriate Paper damage APIs.

Example default values can be extremely high, but make them configurable.

Also account for:

* Armor
* Protection
* Resistance
* Shields
* Totems
* Invulnerability frames

Do NOT simply use fake damage numbers.

The weapons should genuinely be capable of taking a huge percentage of a player's health in one powerful hit.

However, avoid accidental one-shotting the entire server due to a bug.

---

# TOTEM INTERACTION

The weapons should interact properly with Totems of Undying.

If a player receives lethal damage:

* Minecraft's normal Totem behavior should work naturally where appropriate.

Do NOT bypass the normal Totem system unless specifically configured.

Add a config option:

totem-bypass: false

If enabled, certain ultimate abilities may be able to bypass normal Totem behavior.

Default:
totem-bypass: false

---

# TARGET FILTERING

Add configurable target filtering.

By default abilities can target:

* Players
* Hostile mobs

Config options:

target-players: true
target-hostile-mobs: true
target-passive-mobs: false
target-all-mobs: false

Never damage the caster unless explicitly intended.

---

# FRIENDLY FIRE

Add:

friendly-fire: true

Make this configurable.

Optionally support team-based protection if possible.

---

# PARTICLES & VISUAL EFFECTS

Use Paper/Bukkit particle APIs.

Every weapon should have a completely different visual identity.

Earthbreaker:

* Dust
* Block crack
* Shockwave rings

Inferno:

* Flame
* Lava
* Smoke
* Ember trails

Void:

* Portal
* Dragon-breath-like visuals
* Dark particles
* End-themed effects

Titan:

* Lightning
* Dust
* Impact particles

Celestial:

* End/energy-like particles
* Spark trails
* Falling-star visuals

DO NOT spam particles so aggressively that the server crashes.

Use optimized particle counts and configurable settings.

---

# SOUND DESIGN

Each ability must have appropriate Minecraft sounds.

Examples:

* Explosions
* Mace impacts
* Lightning
* Fire
* Nether sounds
* End sounds
* Bow sounds
* Heavy weapon impacts

Sounds should make each attack feel powerful.

---

# ANTI-SPAM / PERFORMANCE

This plugin will potentially run on multiplayer servers.

Optimize everything.

Do NOT:

* Create unnecessary infinite loops.
* Create thousands of entities.
* Spawn excessive TNT.
* Use expensive scans every tick unnecessarily.
* Leak Bukkit tasks.
* Leave temporary entities behind.

Prefer:

* Bukkit/Paper scheduled tasks
* Efficient entity filtering
* Distance checks
* Cached configuration
* Proper task cancellation

All repeating tasks must terminate correctly.

---

# CONFIGURATION

Create a complete config.yml.

Include:

weapon damage
ability damage
cooldowns
AoE radius
knockback
particle amounts
sound volume
target filters
friendly fire
totem behavior
ultimate cooldowns
world restrictions
enabled/disabled weapons

Example:

weapons:
earthbreaker:
enabled: true
impact-radius: 10.0
impact-damage: 30.0
cooldown: 8

Make EVERYTHING important configurable.

---

# WORLD SAFETY

Do not permanently destroy the map by default.

Abilities may create:

* Particles
* Sounds
* Temporary visual effects

But terrain destruction should be disabled by default.

Config:

terrain-destruction: false

If enabled, only allow controlled configurable destruction.

---

# RESOURCE / DEPENDENCY REQUIREMENTS

Prefer zero external dependencies.

The plugin should work with a clean Paper server.

Do not require:

* Fabric
* Forge
* Mods
* Resource packs
* Client-side installations

If custom model data is used, make it optional.

---

# GUI / HELP

Add:

/legendary

It should display a clean help message.

Also:

/legendary info 

Display:

* Weapon description
* Abilities
* Cooldowns
* Damage
* Special mechanics

---

# CODE QUALITY

Use a professional architecture.

Suggested structure:

main plugin class
commands
listeners
weapon manager
ability manager
cooldown manager
damage manager
particle/effect manager
configuration manager
utility classes
individual weapon classes

Do NOT put the entire plugin into one massive Java file.

Use clean OOP.

Each weapon should have its own class.

---

# IMPORTANT EVENT HANDLING

Handle relevant Paper events such as:

* PlayerInteractEvent
* EntityDamageByEntityEvent
* Projectile events
* EntityDeathEvent if required
* PlayerQuitEvent
* PluginDisableEvent

Prevent duplicate event processing.

Make sure abilities don't accidentally activate multiple times from one click.

---

# ITEM APPEARANCE

Each legendary weapon must have:

* Unique name
* Unique lore
* Enchantments where appropriate
* Unbreakable property if appropriate
* Custom rarity styling
* Clear ability descriptions

Example:

§c§lEARTHBREAKER
§7Legendary Mace

§eAbility: §6Earthbreaker
§7Smash the ground and destroy everything nearby.

§eUltimate: §6Planetary Impact
§7Bring the force of a meteor upon your enemies.

Use Minecraft color codes or Adventure Components appropriately.

---

# ADMIN TESTING

Add a debug mode.

config.yml:

debug: false

When enabled:

* Log ability activation
* Log damage
* Log target count
* Log cooldowns
* Log errors

Do not spam logs when debug is false.

---

# ERROR HANDLING

The plugin must fail gracefully.

Check:

* Invalid players
* Missing config values
* Invalid worlds
* Null entities
* Dead entities
* Removed projectiles
* Plugin reload issues

Avoid server crashes.

---

# DELIVERABLE

Create the COMPLETE plugin project.

I want:

1. Complete Java source code
2. plugin.yml
3. config.yml
4. pom.xml or Gradle build files
5. README.md
6. Exact build instructions
7. Exact installation instructions
8. Command documentation
9. Permission documentation
10. Full explanation of every weapon
11. No pseudocode
12. No placeholder methods
13. No "TODO" sections
14. No incomplete classes

The final project must compile successfully.

Before giving the final answer:

* Check the project structure.
* Check imports.
* Check API compatibility with Paper 1.21.11.
* Check for deprecated/invalid API usage where possible.
* Check event handlers.
* Check cooldown logic.
* Check that every weapon has real functionality.
* Check that abilities deal real damage.
* Check that normal Minecraft weapons do not accidentally receive legendary abilities.
* Check that the plugin does not require Fabric or any client-side mod.

The final result should feel like a **premium OP legendary weapons plugin**, not a basic Bukkit tutorial plugin.

Make the combat effects extremely impressive while keeping the server performant.
Kodari AI
KodariAug 30 at 7:14 pm 4
LegendaryArsenal
A premium Paper plugin adding five OP legendary weapons with unique abilities. Features Earthbreaker mace with shockwave smashes, Inferno sword with flame projectiles and sunfall ultimate, Voidreaper sword with teleportation and rift collapse, Titan axe with lightning cleaves, and Celestial bow with meteor arrows. Each weapon has passives, active abilities, and ultimates with configurable damage, cooldowns, particles, sounds, and AoE effects. Includes custom item identification via PersistentDataContainer, admin commands with tab completion, target filtering, friendly fire options, totem bypass config, and performance-optimized effects.
  1. Build the Paper 1.21.11 project and configuration.

  2. Add shared weapon identification, cooldown, targeting, damage, and effect services.

  3. Implement the five independent legendary weapon classes with passives, abilities, ultimates, and projectile handling.

  4. Add event listeners, commands, tab completion, metadata, and documentation.

Created the complete Paper 1.21.11 server-side plugin project.

  • Added Maven build targeting Java 21.

  • Added plugin.yml, config.yml, manifest.kod, and README documentation.

  • Implemented exactly five PDC-identified weapons:

    • Earthbreaker Mace

    • Inferno Sword

    • Voidreaper Sword

    • Titan’s Wrath Axe

    • Celestial Bow

  • Added real damage, AoE attacks, knockback, fire, pulling, teleportation, lightning visuals, projectiles, shockwaves, and ultimates.

  • Added configurable cooldowns, damage, radii, targeting, friendly fire, world restrictions, particles, sounds, and Totem behavior.

  • Added /legendary, /legendary give, /legendary list, /legendary reload, and /legendary info.

  • Added permissions and tab completion.

  • Added event handling for combat, bow projectiles, abilities, cooldown cleanup, and passive effects.

  • Added build and installation instructions in README.md.

Build with:

Shell
mvn clean package

The resulting plugin jar is:

Plain Text
target/legendary-weapons-1.0.0.jar
Kodari can make mistakes. Review important code before using.
Files
src
manifest.kod
pom.xml
README.md
Code
21 1,247
src/main/java/com/kodari/legendaryweapons/LegendaryWeaponsPlugin.java
package com.kodari.legendaryweapons;

import com.kodari.legendaryweapons.command.LegendaryCommand;
import com.kodari.legendaryweapons.listener.LegendaryListener;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;

public final class LegendaryWeaponsPlugin extends JavaPlugin {
    private ConfigManager configManager;
    private CooldownManager cooldowns;
    private TargetingService targeting;
    private DamageService damage;
    private EffectService effects;
    private WeaponManager weapons;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        configManager = new ConfigManager(this);
        cooldowns = new CooldownManager();
        targeting = new TargetingService(this);
        damage = new DamageService(this);
        effects = new EffectService(this);
        weapons = new WeaponManager(this);
        LegendaryListener listener = new LegendaryListener(this);
        Bukkit.getPluginManager().registerEvents(listener, this);
        LegendaryCommand command = new LegendaryCommand(this);
        getCommand("legendary").setExecutor(command);
        getCommand("legendary").setTabCompleter(command);
        Bukkit.getScheduler().runTaskTimer(this, () -> {
            for (Player player : Bukkit.getOnlinePlayers()) weapons.passive(player);
        }, 10L, 10L);
    }

    @Override
    public void onDisable() { cooldowns.clearAll(); }
    public ConfigManager config() { return configManager; }
    public CooldownManager cooldowns() { return cooldowns; }
    public TargetingService targeting() { return targeting; }
    public DamageService damage() { return damage; }
    public EffectService effects() { return effects; }
    public WeaponManager weapons() { return weapons; }
}