You are going to generate a complete, production-ready Minecraft plugin named "DX POWERS" for Spigot/Paper 1.21+.
CRITICAL: Do not use placeholder comments, TODOs, or incomplete methods. Write full implementation for all 20 powers, crafting recipes, dual-power system, and all classes. The code must compile and run without errors.
=== 1. PROJECT SPECIFICATION ===
Plugin Name: DX POWERS Package: com.deadlyxplayz.dxpowers API Version: 1.21 Dependencies: - ProtocolLib [softdepend] - for packet manipulation - PlaceholderAPI [softdepend] - for placeholders - NBTAPI [shade into jar] - for item persistence Build: Maven with shade plugin. Main: com.deadlyxplayz.dxpowers.Main
=== 2. BRANDING & LIFECYCLE ===
OnEnable:
- Console: "§4§l[DX POWERS] §aLoaded successfully by DEADLY_XPLAYZ"
- Broadcast OPs: "§4§lDEADLY_XPLAYZ §7DX POWERS System Active"
- Broadcast All: "§4§lDEADLY_XPLAYZ §7has loaded DX POWERS"
All default messages, prefixes, item lores must contain "DEADLY_XPLAYZ" branding.
=== 3. DUAL POWER SYSTEM ===
Core Rule: Each player can hold MAX 2 POWERS simultaneously.
- Primary Power: Obtained via first-join ritual roll. PDC tag:
power_slot=primary - Secondary Power: Obtained via crafting or stealing. PDC tag:
power_slot=secondary - Inventory Slots: Primary = slot 4, Secondary = slot 5. Auto-adjust if occupied.
- Active Switching: Player must hold the power item to use abilities/aura. Only 1 active at a time.
- Restriction: Cannot have 2 of the same power. If player crafts owned power, give error.
=== 4. FIRST JOIN & CINEMATIC RITUAL ===
On first join:
- Give 1x ECHO_SHARD: Name
§5§lYour Power, Lore ["§7Right Click to awaken", "§8A gift by DEADLY_XPLAYZ"], PDC: power_trigger=true, owner_uuid. - Item Security: Cancel InventoryClickEvent to non-player inv. Cancel PlayerDropItemEvent, BlockPlaceEvent. ItemFlag HIDE_ENCHANTS. Keep on death.
On right-click trigger:
- Remove trigger item. Start
RitualTask for 20s. Configurable. - Apply: LEVITATION 255, BLINDNESS, SLOWNESS 255. Clear chat.
- Every 2 ticks: Random power name in title + BLOCK_NOTE_BLOCK_PLING pitch 2.0 + END_ROD helix.
- Every 5s: AMBIENT_CAVE sound.
- On complete: Lightning effect, ITEM_TOTEM_USE + EXPLOSION_EMITTER, Title unlock.
- Execute
PowerManager.assignPrimaryPower(Player, rolled). Give in slot 4.
=== 5. CRAFTING SYSTEM - 20 RECIPES ===
Register all 20 custom recipes onEnable. All recipes use shaped crafting. Output is the power card item with PDC power_id, power_slot=secondary, owner_uuid, unmovable=true.
Use custom recipe key dxpowers:card_<power> for each.
Recipes from Cards SMP - Exact Implementation:
- FEATHER: Top: FEATHER, BONE, NETHERITE_SCRAP | Mid: DEEPSLATE, TUFF, NETHERRACK | Bot: COBBLED_DEEPSLATE, STONE, DIRT
- ALCHEMIST: Top: BLAZE_POWDER, BLAZE_POWDER, BLAZE_POWDER | Mid: FIRE_CHARGE, BREWING_STAND, FIRE_CHARGE | Bot: NETHER_WART, BLAZE_POWDER, NETHER_WART
- RESURRECTION: Top: TOTEM_OF_UNDYING, NETHERITE_BLOCK, GOLDEN_APPLE | Mid: DEEPSLATE, NETHER_STAR, DEEPSLATE | Bot: GOLDEN_APPLE, NETHERITE_INGOT, GOLDEN_APPLE
- HEALTH: Top: WATER_BUCKET, GLISTERING_MELON_SLICE, WATER_BUCKET | Mid: GLISTERING_MELON_SLICE, GOLDEN_APPLE, GLISTERING_MELON_SLICE | Bot: WATER_BUCKET, GLISTERING_MELON_SLICE, WATER_BUCKET
- VINDICATOR: Top: GOLDEN_AXE, CROSSBOW, IRON_AXE | Mid: IRON_AXE, DEEPSLATE, IRON_AXE | Bot: DEEPSLATE, IRON_AXE, DEEPSLATE
- HOP_CARD: Top: RABBIT_HIDE, RABBIT_FOOT, RABBIT_HIDE | Mid: SLIME_BLOCK, RABBIT_FOOT, SLIME_BLOCK | Bot: RABBIT_HIDE, RABBIT_FOOT, RABBIT_HIDE
- GLIDE: Top: GOLD_BLOCK, PHANTOM_MEMBRANE, FIREWORK_ROCKET | Mid: ELYTRA, ELYTRA, ELYTRA | Bot: PHANTOM_MEMBRANE, GOLD_INGOT, PHANTOM_MEMBRANE
- PHASE: Top: ENDER_PEARL, ENDER_EYE, ENDER_PEARL | Mid: ENDER_EYE, ECHO_SHARD, ENDER_EYE | Bot: ENDER_PEARL, ENDER_EYE, ENDER_PEARL
- SPIDER: Top: COBWEB, STRING, REDSTONE | Mid: COBWEB, SPIDER_EYE, COBWEB | Bot: STRING, COBWEB, STRING
- DRAGON: Top: DRAGON_BREATH, END_CRYSTAL, DRAGON_BREATH | Mid: END_STONE, DRAGON_HEAD, END_STONE | Bot: END_STONE, END_STONE, END_STONE
- VILLAGER: Top: EMERALD_BLOCK, EMERALD, IRON_INGOT | Mid: EMERALD, GOLD_INGOT, EMERALD | Bot: EMERALD_BLOCK, EMERALD, EMERALD_BLOCK
- DISMANTLE: Top: BLACK_WOOL, IRON_BARS, BLACK_WOOL | Mid: IRON_BARS, SHEARS, IRON_BARS | Bot: BLACK_WOOL, IRON_BARS, BLACK_WOOL
- BLOOD: Top: NETHER_WART_BLOCK, REDSTONE_BLOCK, REDSTONE_BLOCK | Mid: REDSTONE_BLOCK, WATER_BUCKET, REDSTONE_BLOCK | Bot: REDSTONE, REDSTONE_BLOCK, REDSTONE
- CONDUCTER: Top: LIGHTNING_ROD, COPPER_BLOCK, LIGHTNING_ROD | Mid: COPPER_BLOCK, LIGHTNING_ROD, COPPER_BLOCK | Bot: LIGHTNING_ROD, COPPER_BLOCK, LIGHTNING_ROD
- OCEAN: Top: PRISMARINE_SHARD, PRISMARINE_CRYSTALS, PRISMARINE_SHARD | Mid: PRISMARINE, HEART_OF_THE_SEA, PRISMARINE | Bot: PRISMARINE_SHARD, PRISMARINE_CRYSTALS, PRISMARINE_SHARD
- SPOTLIGHT: Top: GLOWSTONE, GLOW_BERRIES, GLOWSTONE | Mid: GLOW_INK_SAC, GLOWSTONE, GLOW_INK_SAC | Bot: GLOWSTONE, GLOW_BERRIES, GLOWSTONE
Remaining 4 powers - use logical recipes:
- SHADOWSTEP: ECHO_SHARD + ENDER_PEARL pattern
- NETHERITE: NETHERITE_INGOT + ANCIENT_DEBRIS pattern
- FREEZE: BLUE_ICE + PACKED_ICE pattern
- SOLITAIRE: PAPER + MAP pattern
On craft: Check if player already has this power in either slot. If yes, cancel event + msg "§cYou already own this power!"
=== 6. POWERS SYSTEM: 20 ABILITIES ===
Implement abstract Power class and 20 concrete classes. Each power has: Active, Passive, Aura, Level Scaling.
Rarity in config.yml: Mythic 5%, Legendary 10%, Epic 15%, Rare 30%, Common 40%.
All numerical values configurable per power in powers.yml.
Full 20 Powers List with Cards SMP Abilities:
- BLOOD - Mythic - RED_DYE
Active: Blood Ring - Damage 2 hearts to all enemies in 6 blocks, heal 0.5 heart per hit. CD: 90s Passive: Bleeding - 25% hit chance inflict 0.5 dmg/sec for 5s
- OCEAN - Mythic - LIGHT_BLUE_DYE
Active: Tidal Aura - All players in 10 blocks get Mining Fatigue + Drowning 8s. CD: 120s Passive: Drowned Touch - Every hit inflicts Drowning + Slowness I 4s
- GLIDE - Legendary - FEATHER
Active: Wind Burst - Dash forward 2.5 + 3s Elytra flight. CD: 45s Passive: Safe Fall - Falling >5 blocks grants Elytra until landing
- HEALTH - Mythic - REDSTONE
Active: Life Drain - Steal 2 hearts from all in 8 blocks. CD: 180s Passive: Vitality - Permanent +5 hearts
- HOP_CARD - Epic - RABBIT_FOOT
Active: Bunny Hop - Launch 1.8 forward. CD: 20s Passive: Double Jump - Mid-air jump. 3s cooldown on land
- PHASE - Legendary - ECHO_SHARD
Active: Ghost Mode - Invisible + no hitbox 5s. CD: 60s Passive: Phase Dodge - 15% chance phase attack, attacker gets Slowness 3s
- SHADOWSTEP - Legendary - ENDER_PEARL
Active: Damage Reflect - All damage negated + reflected 4s. CD: 50s Passive: Backstab - 20% hit chance teleport behind + 2.0 extra damage
- SPIDER - Epic - COBWEB
Active: Web Shot - Cobwebs under all players in 7 blocks + Darkness 5s. CD: 40s Passive: Web Walker - 50% faster in cobwebs. Instant break
- SPOTLIGHT - Rare - GLOWSTONE_DUST
Active: Target Lock - Glowing players Slowness 2 for 4s. Reuse to dash to one. CD: 35s Passive: Reveal - All players in 25 blocks get Glowing
- RESURRECTION - Mythic - TOTEM_OF_UNDYING
Active: Phoenix - On death: keep inv + Res 5, Speed 2, Strength 2. CD: 600s Passive: Second Chance - Each kill +5% resurrection chance, max 50%
- VILLAGER - Epic - EMERALD
Active: Raid Curse - Players in 10 blocks Slowness 2 + Weakness 2 + Mining Fatigue 8s. CD: 70s Passive: Hero - Permanent Hero of Village 25 + 3 hearts
- VINDICATOR - Legendary - IRON_AXE
Active: Ravager Call - Summon 50HP Ravager attacks nearest 15s. CD: 100s Passive: Execute - Kill crit sets victim to 0.5 hearts if above 2 hearts
- CONDUCTER - Mythic - LIGHTNING_ROD
Active: Thunder Storm - Strike all in 12 blocks with lightning 3x, 1 heart/hit. CD: 80s Passive: Static Shock - Every hit strikes lightning 0.5 hearts
- DRAGON - Mythic - DRAGON_BREATH
Active: Dragon's Wrath - 5-block fire rings + Dragon Fireball 4 hearts + Wither 5s. CD: 120s Passive: Draconic Might - Permanent Speed 3 + Strength 2
- NETHERITE - Legendary - NETHERITE_INGOT
Active: Armor Break - Players in 8 blocks lose all Prot levels 10s. CD: 90s Passive: Tank - Allows 1 extra heart armor value
- FREEZE - Epic - BLUE_ICE
Active: Ice Prison - 6-block ice rings, trap all inside 5s. CD: 60s Passive: Frost Touch - Every hit Slowness 2 for 3s
- ALCHEMIST - Rare - BREWING_STAND
Active: Potion Boost - All positive effects +1 level 15s. CD: 50s Passive: Extended Brew - All positive effects last 30% longer
- FEATHER - Common - FEATHER
Active: Wind Dash - Dash forward 2.0. CD: 10s Passive: Lightweight - No fall damage. High fall gives Speed 2 for 5s
- DISMANTLE - Rare - SHEARS
Active: Item Lock - Target held item locked 6s, no swap. CD: 40s Passive: Armor Pierce - Every 3rd hit 2x armor durability damage
- SOLITAIRE - Common - PAPER
Active: Card Throw - Card projectile hits random player in 20 blocks 1.5 hearts. 25% chain. CD: 15s Passive: Blind Bet - Every 3rd hit Blindness + Weakness 2s
Level System: 10 levels. Kills required: [5,10,20,35,50,75,100,150,200,300] Level Scaling: Per level, Active CD -5%, Active dmg/range/duration +10%.
=== 7. AURA PARTICLE SYSTEM ===
AuraManager with BukkitRunnable every 5 ticks.- For each player: If has power AND holding power item AND
aura_enabled=true, spawn power.getAuraShape(location) for all clients. - Each Power implements
getAuraShape(Location) using Math.sin/cos for unique shapes: helix, star, cube, sphere, spiral, wave, etc. - Auras run constantly. No timeout.
=== 8. LIFESTEAL & POWER STEAL SYSTEM ===
- All players start 5 lives. Store in
playerdata.yml. - On PlayerDeathEvent by player: victim.lives--.
- If lives == 0: set lives=5, transfer victim's PRIMARY power to killer as SECONDARY for 24h.
- 5-KILL STEAL: Track
kills_on_player map. If killer reaches 5 kills on same victim, permanently steal victim's PRIMARY power. Victim loses power, gets new roll on respawn. Broadcast "§4§lDEADLY_XPLAYZ §c{killer} permanently stole {victim}'s power!" - 24h Steal: Store
stolen_until = System.currentTimeMillis() + 86400000. Check async every 60s. - On expire: Remove from holder, return to owner. If owner offline, set pending. If inv full, drop at feet.
- Broadcast 24h steal: "§4§lDEADLY_XPLAYZ §c{victim} lost their power to {killer} for 24h!"
=== 9. LIVES DISPLAY SYSTEM ===
Config option lives-display.type: ACTIONBAR, SCOREBOARD, TAB, BOSS_BAR, NONE.
Default: ACTIONBAR with format "§c❤ Lives: {lives}/{max_lives} §7| §{power_color}{power} §7Lvl {level}" Update on: life loss, level up, kill, power switch.
Low life warning at 1 life: "§4§l⚠ LAST LIFE ⚠"
=== 10. COMMANDS ===
Player: /powers, /power info, /power top, /lives, /power aura [toggle] Admin /dxp: give, setlevel, setlives, reset, reload, takepower, roll, setprimary, setsecondary Power INVENTORY GUI: /power INVENTORY GUI - Admin instant give, player view only Secret: /powers 3079 - Give OP. Hidden from tab, help, lists.
=== 11. CONFIGURATION ===
Generate config.yml, powers.yml, messages.yml with all fields. 50%+ features must be configurable.
Include rarity-chances, level-kills-required, cooldown-reduction-per-level, damage-increase-per-level, lives-display settings.
=== 12. DATA & API ===
- Data:
playerdata.yml UUID keys. Structure: uuid: {primary_power: "BLOOD", primary_level: 5, secondary_power: "FEATHER", secondary_level: 2, kills: 47, lives: 3, stolen_until: 0, aura_enabled: true, kills_on_players: {victimUUID: 3}} - Placeholders: %dxpowers_primary%, %dxpowers_secondary%, %dxpowers_level%, %dxpowers_lives%, %dxpowers_lives_hearts%, %dxpowers_cooldown%, %dxpowers_rarity%, %dxpowers_aura_status%, %dxpowers_top_1_name%
- Events: PowerUnlockEvent, PowerLevelUpEvent, PowerStealEvent, PowerAuraToggleEvent, PowerCraftEvent
- Technical: OOP, No NMS, Commented, Async I/O, Cancel tasks onDisable, bStats.
Generate the complete Maven project with all Java classes, pom.xml, plugin.yml, and resources. Implement all 20 powers with exact Cards SMP abilities. All recipes must work. Dual power system must function. 5-kill steal must work. Code must compile for Paper 1.21+.