epidemic sound
📎 1 file 6,427 chars
📄
pasted-code-1793172122071.txt
txt 190 lines
▶
make me a plugin Create a Minecraft Paper Plugin for version 1.21.11 called 
"LegendWeapons" or any cool name with the following complete 
features:

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🗡️ SECTION 1 — 8 CUSTOM WEAPONS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Create exactly 8 Custom Weapons with unique names, lore, 
textures (resource pack), and abilities:

⚔️ WEAPON 1 — "Soul Bow"
- Base Item: BOW
- Ability: Shoots Soul Fire Arrows
- On Hit Effect: Target gets Wither + Slowness 3 seconds
- Special: Charge animation shows blue flame particles
- Cinematic Effect: Arrow leaves blue particle trail in air
- Rarity: LEGENDARY

⚔️ WEAPON 2 — "Thunder Mace"
- Base Item: MACE
- Ability: On smash attack — summons lightning strike
- On Hit Effect: Knockback + Blindness + Lightning
- Special: Glowing yellow aura around player when held
- Cinematic Effect: Slow motion lightning flash on kill
- Rarity: LEGENDARY

⚔️ WEAPON 3 — "Phantom Elytra"
- Base Item: ELYTRA
- Ability: When gliding — leaves shadow particle trail
- Special: Every 30 seconds can dash forward at ultra speed
- Cinematic Effect: Dark smoke trail behind player
- Extra: When landing — shockwave particles explode outward
- Rarity: LEGENDARY

⚔️ WEAPON 4 — "Blood Axe"
- Base Item: NETHERITE AXE
- Ability: Each hit steals 2 hearts from enemy (lifesteal)
- On Kill Effect: Blood particle explosion on enemy death
- Special: Axe glows red when below 5 hearts
- Cinematic Effect: Red shockwave on hit
- Rarity: EPIC

⚔️ WEAPON 5 — "Void Sword"
- Base Item: NETHERITE SWORD
- Ability: Teleports player 5 blocks forward on right-click
- On Hit Effect: Target levitates for 2 seconds
- Special: Purple void particles spin around sword
- Cinematic Effect: Teleport leaves purple smoke explosion
- Rarity: LEGENDARY

⚔️ WEAPON 6 — "Inferno Blade" 
(Your Choice — Extra Weapon)
- Base Item: DIAMOND SWORD
- Ability: Sets target on fire for 5 seconds
- On Hit Effect: Explosion of fire particles
- Special: Player surrounded by fire ring when holding
- Cinematic Effect: Fire tornado on kill
- Rarity: EPIC

⚔️ WEAPON 7 — "Gravity Hammer" 
(Your Choice — Extra Weapon)
- Base Item: IRON AXE (custom textured)
- Ability: Right click — pulls all nearby enemies toward you
- On Hit Effect: Shockwave that pushes enemies back
- Special: Stone/earth particles orbit the hammer
- Cinematic Effect: Ground crack particle effect on smash
- Rarity: RARE

⚔️ WEAPON 8 — "Storm Trident" 
(Your Choice — Extra Weapon)
- Base Item: TRIDENT
- Ability: When thrown — summons 3 lightning bolts on landing
- On Hit Effect: Chain lightning jumps to 3 nearby enemies
- Special: Storm clouds particle above player when holding
- Cinematic Effect: Lightning explosion on throw landing
- Rarity: LEGENDARY

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✨ SECTION 2 — WEAPON OBTAIN EFFECTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

When a weapon is given to a player using operator command, 
these effects must trigger:

PHASE 1 — SKY EFFECTS (Before weapon drops):
- Dark clouds appear above the player
- Lightning strikes 3 times around the player (no damage)
- Screen goes dark for 1 second (darkness effect)

PHASE 2 — DROP EFFECTS (Weapon spawning):
- Weapon falls from sky (drops from 20 blocks above)
- Fire/particle trail follows weapon while falling
- Custom sound plays while weapon is falling

PHASE 3 — LANDING EFFECTS (When weapon hits ground):
- Massive shockwave particle explosion
- Ground crack particles spread outward 
- Screen shake effect (via title command)
- Custom dramatic sound on landing

PHASE 4 — PICKUP EFFECTS (When player picks up):
- Fireworks shoot from player
- Title message shows: "§6⚔️ [WeaponName] Obtained!"
- Subtitle shows weapon lore/description
- Player gets Speed + Strength for 5 seconds

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 SECTION 3 — EASY OPERATOR COMMANDS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

/weapon give  
→ Gives weapon with FULL cinematic obtain effects

/weapon give   silent
→ Gives weapon WITHOUT effects (admin use)

/weapon list
→ Shows all 8 weapons list in chat

/weapon info 
→ Shows weapon stats, lore, and recipe

/weapon spawn 
→ Spawns weapon at your location with effects

/weapon reload
→ Reloads config

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📖 SECTION 4 — RECIPE GUI SYSTEM
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

/weapon recipes
→ Opens beautiful GUI showing all 8 weapon recipes

GUI Requirements:
- Black Glass Pane border
- Each weapon shown as clickable item
- Click weapon to see its full recipe in crafting view
- Recipe GUI shows ingredients glowing with enchant effect
- Beautiful item lore showing: Name, Rarity, Ability, Recipe

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎬 SECTION 5 — CINEMATIC EFFECTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

KILL EFFECTS (When you kill someone with custom weapon):
- Massive particle explosion on enemy death location
- Screen flash for attacker (white flash title)
- Dramatic kill sound plays
- Attacker gets brief Speed boost

HIT EFFECTS (Every hit with custom weapon):
- Unique particle effect per weapon on hit
- Custom hit sound per weapon
- Small screen shake via titles

ABILITY EFFECTS (When using right-click ability):
- Full cinematic particle burst
- Custom ability sound
- Title/Subtitle shows ability name used

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙️ SECTION 6 — TECHNICAL REQUIREMENTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

- Minecraft Version: Paper 1.21.11 ONLY
- No dependencies required (standalone plugin)
- Resource Pack included (custom weapon textures)
- Full config.yml for all effects/sounds/particles
- Weapons survive server restarts (persistent NBT data)
- Works in all gamemodes (survival, creative, adventure)
- Permission system:
  * legendweapons.give → Give weapons to players
  * legendweapons.use → Use custom weapon abilities
  * legendweapons.recipes → View recipe GUI
  * legendweapons.admin → All permissions

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎨 SECTION 7 — RESOURCE PACK
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

- Custom texture for each of 8 weapons
- Each weapon should look UNIQUE and EPIC
- Glowing/shiny texture style
- Dark themed textures (black/gold/purple/red colors)
- Auto-send resource pack to players on join

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Kodari AI
KodariOct 28 at 7:34 am 1
LegendWeapons
A standalone Paper 1.21.11 plugin adding 8 unique legendary weapons with custom abilities, cinematic effects, and a recipe GUI system. Features include Soul Bow with wither arrows, Thunder Mace with lightning strikes, Phantom Elytra with dash ability, Blood Axe with lifesteal, Void Sword with teleport, Inferno Blade with fire effects, Gravity Hammer with enemy pull, and Storm Trident with chain lightning. Includes operator commands for giving/spawning weapons with dramatic sky-drop cinematic sequences, persistent NBT data, configurable effects, permission system, and a GUI-based recipe viewer with black glass borders and glowing ingredients.
  • Define all eight weapons, their item metadata, abilities, and persistent identifiers.

  • Add the /weapon command, cinematic drops/pickups, ability listeners, and recipe GUI.

  • Add Paper plugin metadata and configurable effects/resource-pack URL; actual custom textures need Kodari Studio enabled.

Created LegendWeapons with eight persistent custom weapons, combat and right-click abilities, cinematic obtain/pickup effects, /weapon commands, a clickable recipe GUI, configurable effects, and optional resource-pack delivery by URL.

Custom textures aren’t included yet. They require a resource pack; Kodari Studio is available to all users. Enable it for this project via Settings → Generation, then create the weapon textures and add the pack URL under resource-pack.url in config.yml.

Kodari can make mistakes. Review important code before using.
Files
src
Code
8 965
src/main/java/com/kodari/legendweapons/LegendWeapons.java
package com.kodari.legendweapons;

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

public final class LegendWeapons extends JavaPlugin {
    @Override
    public void onEnable() {
        saveDefaultConfig();
        WeaponService weaponService = new WeaponService(this);
        RecipeMenu recipeMenu = new RecipeMenu(weaponService);
        Bukkit.getPluginManager().registerEvents(recipeMenu, this);
        Bukkit.getPluginManager().registerEvents(new WeaponListener(this, weaponService), this);
        WeaponCommand command = new WeaponCommand(this, weaponService, recipeMenu);
        getCommand("weapon").setExecutor(command);
        getCommand("weapon").setTabCompleter(command);
    }
}