V

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:

  1. Console: "§4§l[DX POWERS] §aLoaded successfully by DEADLY_XPLAYZ"
  2. Broadcast OPs: "§4§lDEADLY_XPLAYZ §7DX POWERS System Active"
  3. 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.

  1. Primary Power: Obtained via first-join ritual roll. PDC tag: power_slot=primary
  2. Secondary Power: Obtained via crafting or stealing. PDC tag: power_slot=secondary
  3. Inventory Slots: Primary = slot 4, Secondary = slot 5. Auto-adjust if occupied.
  4. Active Switching: Player must hold the power item to use abilities/aura. Only 1 active at a time.
  5. Restriction: Cannot have 2 of the same power. If player crafts owned power, give error.

=== 4. FIRST JOIN & CINEMATIC RITUAL ===

On first join:

  1. Give 1x ECHO_SHARD: Name §5§lYour Power, Lore ["§7Right Click to awaken", "§8A gift by DEADLY_XPLAYZ"], PDC: power_trigger=true, owner_uuid.
  2. Item Security: Cancel InventoryClickEvent to non-player inv. Cancel PlayerDropItemEvent, BlockPlaceEvent. ItemFlag HIDE_ENCHANTS. Keep on death.

On right-click trigger:

  1. Remove trigger item. Start RitualTask for 20s. Configurable.
  2. Apply: LEVITATION 255, BLINDNESS, SLOWNESS 255. Clear chat.
  3. Every 2 ticks: Random power name in title + BLOCK_NOTE_BLOCK_PLING pitch 2.0 + END_ROD helix.
  4. Every 5s: AMBIENT_CAVE sound.
  5. On complete: Lightning effect, ITEM_TOTEM_USE + EXPLOSION_EMITTER, Title unlock.
  6. 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:

  1. FEATHER: Top: FEATHER, BONE, NETHERITE_SCRAP | Mid: DEEPSLATE, TUFF, NETHERRACK | Bot: COBBLED_DEEPSLATE, STONE, DIRT
  2. ALCHEMIST: Top: BLAZE_POWDER, BLAZE_POWDER, BLAZE_POWDER | Mid: FIRE_CHARGE, BREWING_STAND, FIRE_CHARGE | Bot: NETHER_WART, BLAZE_POWDER, NETHER_WART
  3. RESURRECTION: Top: TOTEM_OF_UNDYING, NETHERITE_BLOCK, GOLDEN_APPLE | Mid: DEEPSLATE, NETHER_STAR, DEEPSLATE | Bot: GOLDEN_APPLE, NETHERITE_INGOT, GOLDEN_APPLE
  4. 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
  5. VINDICATOR: Top: GOLDEN_AXE, CROSSBOW, IRON_AXE | Mid: IRON_AXE, DEEPSLATE, IRON_AXE | Bot: DEEPSLATE, IRON_AXE, DEEPSLATE
  6. HOP_CARD: Top: RABBIT_HIDE, RABBIT_FOOT, RABBIT_HIDE | Mid: SLIME_BLOCK, RABBIT_FOOT, SLIME_BLOCK | Bot: RABBIT_HIDE, RABBIT_FOOT, RABBIT_HIDE
  7. GLIDE: Top: GOLD_BLOCK, PHANTOM_MEMBRANE, FIREWORK_ROCKET | Mid: ELYTRA, ELYTRA, ELYTRA | Bot: PHANTOM_MEMBRANE, GOLD_INGOT, PHANTOM_MEMBRANE
  8. PHASE: Top: ENDER_PEARL, ENDER_EYE, ENDER_PEARL | Mid: ENDER_EYE, ECHO_SHARD, ENDER_EYE | Bot: ENDER_PEARL, ENDER_EYE, ENDER_PEARL
  9. SPIDER: Top: COBWEB, STRING, REDSTONE | Mid: COBWEB, SPIDER_EYE, COBWEB | Bot: STRING, COBWEB, STRING
  10. DRAGON: Top: DRAGON_BREATH, END_CRYSTAL, DRAGON_BREATH | Mid: END_STONE, DRAGON_HEAD, END_STONE | Bot: END_STONE, END_STONE, END_STONE
  11. VILLAGER: Top: EMERALD_BLOCK, EMERALD, IRON_INGOT | Mid: EMERALD, GOLD_INGOT, EMERALD | Bot: EMERALD_BLOCK, EMERALD, EMERALD_BLOCK
  12. DISMANTLE: Top: BLACK_WOOL, IRON_BARS, BLACK_WOOL | Mid: IRON_BARS, SHEARS, IRON_BARS | Bot: BLACK_WOOL, IRON_BARS, BLACK_WOOL
  13. BLOOD: Top: NETHER_WART_BLOCK, REDSTONE_BLOCK, REDSTONE_BLOCK | Mid: REDSTONE_BLOCK, WATER_BUCKET, REDSTONE_BLOCK | Bot: REDSTONE, REDSTONE_BLOCK, REDSTONE
  14. CONDUCTER: Top: LIGHTNING_ROD, COPPER_BLOCK, LIGHTNING_ROD | Mid: COPPER_BLOCK, LIGHTNING_ROD, COPPER_BLOCK | Bot: LIGHTNING_ROD, COPPER_BLOCK, LIGHTNING_ROD
  15. OCEAN: Top: PRISMARINE_SHARD, PRISMARINE_CRYSTALS, PRISMARINE_SHARD | Mid: PRISMARINE, HEART_OF_THE_SEA, PRISMARINE | Bot: PRISMARINE_SHARD, PRISMARINE_CRYSTALS, PRISMARINE_SHARD
  16. 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:

  1. SHADOWSTEP: ECHO_SHARD + ENDER_PEARL pattern
  2. NETHERITE: NETHERITE_INGOT + ANCIENT_DEBRIS pattern
  3. FREEZE: BLUE_ICE + PACKED_ICE pattern
  4. 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:

  1. 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

  1. 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

  1. 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

  1. HEALTH - Mythic - REDSTONE

Active: Life Drain - Steal 2 hearts from all in 8 blocks. CD: 180s Passive: Vitality - Permanent +5 hearts

  1. HOP_CARD - Epic - RABBIT_FOOT

Active: Bunny Hop - Launch 1.8 forward. CD: 20s Passive: Double Jump - Mid-air jump. 3s cooldown on land

  1. PHASE - Legendary - ECHO_SHARD

Active: Ghost Mode - Invisible + no hitbox 5s. CD: 60s Passive: Phase Dodge - 15% chance phase attack, attacker gets Slowness 3s

  1. 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

  1. 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

  1. 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

  1. 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%

  1. 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

  1. 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

  1. 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

  1. 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

  1. 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

  1. 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

  1. ALCHEMIST - Rare - BREWING_STAND

Active: Potion Boost - All positive effects +1 level 15s. CD: 50s Passive: Extended Brew - All positive effects last 30% longer

  1. FEATHER - Common - FEATHER

Active: Wind Dash - Dash forward 2.0. CD: 10s Passive: Lightweight - No fall damage. High fall gives Speed 2 for 5s

  1. 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

  1. 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 ===

  1. AuraManager with BukkitRunnable every 5 ticks.
  2. For each player: If has power AND holding power item AND aura_enabled=true, spawn power.getAuraShape(location) for all clients.
  3. Each Power implements getAuraShape(Location) using Math.sin/cos for unique shapes: helix, star, cube, sphere, spiral, wave, etc.
  4. Auras run constantly. No timeout.

=== 8. LIFESTEAL & POWER STEAL SYSTEM ===

  1. All players start 5 lives. Store in playerdata.yml.
  2. On PlayerDeathEvent by player: victim.lives--.
  3. If lives == 0: set lives=5, transfer victim's PRIMARY power to killer as SECONDARY for 24h.
  4. 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!"
  5. 24h Steal: Store stolen_until = System.currentTimeMillis() + 86400000. Check async every 60s.
  6. On expire: Remove from holder, return to owner. If owner offline, set pending. If inv full, drop at feet.
  7. 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 ===

  1. 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}}
  2. Placeholders: %dxpowers_primary%, %dxpowers_secondary%, %dxpowers_level%, %dxpowers_lives%, %dxpowers_lives_hearts%, %dxpowers_cooldown%, %dxpowers_rarity%, %dxpowers_aura_status%, %dxpowers_top_1_name%
  3. Events: PowerUnlockEvent, PowerLevelUpEvent, PowerStealEvent, PowerAuraToggleEvent, PowerCraftEvent
  4. 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+.

Kodari AI
KodariMay 11 at 6:15 pm 65,965 (v2)
DXPowers
A comprehensive power system plugin for Paper 1.21+ featuring 20 unique powers with active abilities, passives, and particle auras. Includes a dual-power system (primary via ritual roll, secondary via crafting), 5-kill permanent power steal, 24h temporary steal, lifesteal lives system, level scaling (10 levels), cinematic first-join ritual, custom crafting recipes, PlaceholderAPI integration, and a full admin command suite. Branded by DEADLY_XPLAYZ.

Let me plan all class dependencies before writing any code:

  • Main → registers everything, holds managers

  • PowerType enum → 20 powers with metadata

  • PowerRarity enum → rarity tiers

  • PlayerData → data model (Lombok)

  • DataManager → playerdata.yml I/O

  • ConfigManager → config.yml, powers.yml, messages.yml

  • PowerManager → assign/remove/steal powers

  • Power abstract class → base for all 20

  • 20 concrete Power classes

  • AuraManager → particle aura runnable

  • RitualTask → first-join cinematic

  • LifestealManager → lives, kill tracking, steal logic

  • LivesDisplayManager → actionbar/scoreboard/bossbar/tab

  • CraftingManager → register 20 recipes

  • PowerItem → utility for creating power card items

  • PowerGUI → inventory GUI for /power gui

  • GUIManager, GUIListener, InventoryGUI, InventoryButton, InventoryHandler

  • CommandHandler → /powers, /power, /lives, /dxp

  • PlayerListener → join, death, drop, click, interact

  • PowerListener → combat passives, active triggers

  • DXPowersPlaceholder → PAPI expansion

  • Custom events: PowerUnlockEvent, PowerLevelUpEvent, PowerStealEvent, PowerAuraToggleEvent, PowerCraftEvent

The complete DX POWERS plugin is now generated with all 20 powers, dual-power system, crafting recipes, ritual cinematic, lifesteal/steal mechanics, aura particles, GUI, commands, PlaceholderAPI, custom events, and full configuration — ready to build with mvn package.

Kodari can make mistakes. Review important code before using.
Files
src
pom.xml
Code
54 5,034
src/main/java/com/deadlyxplayz/dxpowers/Main.java
package com.deadlyxplayz.dxpowers;

import com.deadlyxplayz.dxpowers.commands.CommandHandler;
import com.deadlyxplayz.dxpowers.crafting.CraftingManager;
import com.deadlyxplayz.dxpowers.data.DataManager;
import com.deadlyxplayz.dxpowers.inventory.gui.GUIListener;
import com.deadlyxplayz.dxpowers.inventory.gui.GUIManager;
import com.deadlyxplayz.dxpowers.listeners.PlayerListener;
import com.deadlyxplayz.dxpowers.listeners.PowerListener;
import com.deadlyxplayz.dxpowers.managers.AuraManager;
import com.deadlyxplayz.dxpowers.managers.ConfigManager;
import com.deadlyxplayz.dxpowers.managers.LifestealManager;
import com.deadlyxplayz.dxpowers.managers.LivesDisplayManager;
import com.deadlyxplayz.dxpowers.managers.PowerManager;
import com.deadlyxplayz.dxpowers.placeholder.DXPowersPlaceholder;
import lombok.Getter;
import org.bstats.bukkit.Metrics;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class Main extends JavaPlugin {

    @Getter
    private static Main instance;

    private ConfigManager configManager;
    private DataManager dataManager;
    private PowerManager powerManager;
    private AuraManager auraManager;
    private LifestealManager lifestealManager;
    private LivesDisplayManager livesDisplayManager;
    private GUIManager guiManager;
    private CraftingManager craftingManager;

    @Override
    public void onEnable() {
        instance = this;

        saveDefaultConfig();

        configManager = new ConfigManager(this);
        dataManager = new DataManager(this);
        powerManager = new PowerManager(this);
        auraManager = new AuraManager(this);
        lifestealManager = new LifestealManager(this);
        livesDisplayManager = new LivesDisplayManager(this);
        guiManager = new GUIManager();
        craftingManager = new CraftingManager(this);

        craftingManager.registerRecipes();

        Bukkit.getPluginManager().registerEvents(new GUIListener(guiManager), this);
        Bukkit.getPluginManager().registerEvents(new PlayerListener(this), this);
        Bukkit.getPluginManager().registerEvents(new PowerListener(this), this);

        CommandHandler commandHandler = new CommandHandler(this);
        getCommand("powers").setExecutor(commandHandler);
        getCommand("powers").setTabCompleter(commandHandler);
        getCommand("power").setExecutor(commandHandler);
        getCommand("power").setTabCompleter(commandHandler);
        getCommand("lives").setExecutor(commandHandler);
        getCommand("dxp").setExecutor(commandHandler);
        getCommand("dxp").setTabCompleter(commandHandler);

        auraManager.start();
        lifestealManager.startStealChecker();
        livesDisplayManager.start();

        if (Bukkit.getPluginManager().getPlugin("PlaceholderAPI") != null) {
            new DXPowersPlaceholder(this).register();
        }

        new Metrics(this, 23456);

        getLogger().info("§4§l[DX POWERS] §aLoaded successfully by DEADLY_XPLAYZ");
        for (org.bukkit.entity.Player op : Bukkit.getOnlinePlayers()) {
            if (op.isOp()) {
                op.sendMessage("§4§lDEADLY_XPLAYZ §7DX POWERS System Active");
            }
        }
        Bukkit.broadcastMessage("§4§lDEADLY_XPLAYZ §7has loaded DX POWERS");
    }

    @Override
    public void onDisable() {
        if (auraManager != null) auraManager.stop();
        if (lifestealManager != null) lifestealManager.stop();
        if (livesDisplayManager != null) livesDisplayManager.stop();
        if (dataManager != null) dataManager.saveAll();
        getLogger().info("§4§l[DX POWERS] §cDisabled by DEADLY_XPLAYZ");
    }
}