theastral3079_25121

DeadlySouls Act as an Elite Spigot/PaperMC Java Plugin Developer. I need you to completely code a massive, bug-free, and highly optimized custom SMP plugin called "DeadlySouls" for Minecraft version 1.20.1+.

CRITICAL INSTRUCTION: Do NOT use any "Altar" block system. Remove all previous Altar logic. All custom crafting MUST be handled via a professional and bug-free Custom INVENTORY INVENTORY INVENTORY GUI. All credits and rights belong to "DEADLY_XPLAYZ". This name must flash beautifully in the server console on startup and be included in the chat prefix for all plugin messages.

Here is the EXACT feature requirement document:

Enhanced Rolling & Starting Abilities (First Join) On first join, trigger a 10-second premium Rolling Animation on screen using Titles/Subtitles with Hex gradients. Play epic sound effects (heartbeat & thunder). After 10 seconds, player receives 1 of 10 "Normal God Souls" (Undroppable, Unmovable). ABILITY: Each Normal God Soul must grant an immediate working basic ability (e.g., passive Speed II, Jump Boost, or a Dash on right-click). Emits a clean, lag-free particle aura.

Professional Life & Evolution System Players start with 5 Lives. Display on Action Bar using Hex Colors (e.g., "&#FF0000❤ Lives: 5"). NO flickering. Death: Deducts 1 life and drops a physical "Player Soul" item. Kill Streak: 5 kills without dying grants a 2-minute "Bloodlust" (Strength II) buff. Anti-Combat Log: If a player logs out while "Combat Tagged" (15s), they lose 1 life instantly and drop their Player Soul.

Cinematic Executions & Death Holograms When a player loses their FINAL life: 3 lightning strikes, black smoke particles, and a global Wither sound. Spawn a hologram at death location: "&c&l[Player] has been banished!" (disappears after 30s).

Purgatory (Jail) & The Secret Escape 0 lives = teleported to Purgatory as a Ghost. CRITICAL FIX: Cancel ALL block breaking EXCEPT "SOUL_SAND". Players must be able to mine Soul Sand to progress. No placing, no item pickup (except soul sand), no commands. The Escape: Mining 1,000 Soul Sand gives a "Fragment of Hope". 4 Fragments can be right-clicked to self-revive with 1 life.

Ultimate Custom Souls & Soul Gems 5 Ultimate Custom Souls (Craftable ONLY ONCE per server). Recipe: Must require "Player Souls" + rare dimension items. Ultimate Curses: Give God powers but add a fatal flaw (e.g., 2x fall damage or poison in water). Soul Gems: 0.5% chance to drop from Diamond Ores. Can be socketed to Normal Souls for extra passive buffs.

Custom INVENTORY INVENTORY INVENTORY GUI & Revive System Command /ds recipe: Opens a custom INVENTORY INVENTORY INVENTORY GUI with lore. Revive Card: Crafted using 4 Player Souls + 1 Totem. Revive INVENTORY INVENTORY INVENTORY GUI: Clicking the Card shows skulls of jailed players. Click a skull to revive them instantly.

The "Mob Ambush" Ritual (Replaces Altar) When an Ultimate Soul is crafted or Revive Card is used: Global screen flash + lightning. Mob Ambush: Spawn 3 buffed Zombies, 3 Skeletons, and 1 Vindicator around the initiator every 10s for 60 seconds (6 waves).

Commands (Admin & Player) Admin: /ds jail set, /ds setlives <player> <amount>, /ds give soul <type>, /ds reset <player>. Player: /ds stats, /ds recipe. Please write the full Java code across multiple classes (Main, Listeners, INVENTORY INVENTORY INVENTORY GUI, Managers). Use NBT for custom items to prevent duplication. Ensure the code is highly modular.

Kodari AI Kodari Today at 1:02 pm 33,867 I'll create a comprehensive DeadlySouls SMP plugin with all requested features using a professional inventory INVENTORY GUI system instead of altars.

theastral3079_25121

Act as an Elite Spigot/PaperMC Java Plugin Developer. I need you to completely code a massive, bug-free, and highly optimized custom SMP plugin called "DeadlySouls" for Minecraft version 1.20.1+.

CRITICAL INSTRUCTION: Do NOT use any "Altar" block system. Remove all previous Altar logic. All custom crafting MUST be handled via a professional and bug-free Custom INVENTORY INVENTORY INVENTORY GUI. All credits and rights belong to "DEADLY_XPLAYZ". This name must flash beautifully in the server console on startup and be included in the chat prefix for all plugin messages.

Here is the EXACT feature requirement document:

Enhanced Rolling & Starting Abilities (First Join) On first join, trigger a 10-second premium Rolling Animation on screen using Titles/Subtitles with Hex gradients. Play epic sound effects (heartbeat & thunder). After 10 seconds, player receives 1 of 10 "Normal God Souls" (Undroppable, Unmovable). ABILITY: Each Normal God Soul must grant an immediate working basic ability (e.g., passive Speed II, Jump Boost, or a Dash on right-click). Emits a clean, lag-free particle aura.

Professional Life & Evolution System Players start with 5 Lives. Display on Action Bar using Hex Colors (e.g., "&#FF0000❤ Lives: 5"). NO flickering. Death: Deducts 1 life and drops a physical "Player Soul" item. Kill Streak: 5 kills without dying grants a 2-minute "Bloodlust" (Strength II) buff. Anti-Combat Log: If a player logs out while "Combat Tagged" (15s), they lose 1 life instantly and drop their Player Soul.

Cinematic Executions & Death Holograms When a player loses their FINAL life: 3 lightning strikes, black smoke particles, and a global Wither sound. Spawn a hologram at death location: "&c&l[Player] has been banished!" (disappears after 30s).

Purgatory (Jail) & The Secret Escape 0 lives = teleported to Purgatory as a Ghost. CRITICAL FIX: Cancel ALL block breaking EXCEPT "SOUL_SAND". Players must be able to mine Soul Sand to progress. No placing, no item pickup (except soul sand), no commands. The Escape: Mining 1,000 Soul Sand gives a "Fragment of Hope". 4 Fragments can be right-clicked to self-revive with 1 life.

Ultimate Custom Souls & Soul Gems 5 Ultimate Custom Souls (Craftable ONLY ONCE per server). Recipe: Must require "Player Souls" + rare dimension items. Ultimate Curses: Give God powers but add a fatal flaw (e.g., 2x fall damage or poison in water). Soul Gems: 0.5% chance to drop from Diamond Ores. Can be socketed to Normal Souls for extra passive buffs.

Custom INVENTORY INVENTORY INVENTORY GUI & Revive System Command /ds recipe: Opens a custom INVENTORY INVENTORY INVENTORY GUI with lore. Revive Card: Crafted using 4 Player Souls + 1 Totem. Revive INVENTORY INVENTORY INVENTORY GUI: Clicking the Card shows skulls of jailed players. Click a skull to revive them instantly.

The "Mob Ambush" Ritual (Replaces Altar) When an Ultimate Soul is crafted or Revive Card is used: Global screen flash + lightning. Mob Ambush: Spawn 3 buffed Zombies, 3 Skeletons, and 1 Vindicator around the initiator every 10s for 60 seconds (6 waves).

Commands (Admin & Player) Admin: /ds jail set, /ds setlives <player> <amount>, /ds give soul <type>, /ds reset <player>. Player: /ds stats, /ds recipe. Please write the full Java code across multiple classes (Main, Listeners, INVENTORY INVENTORY INVENTORY GUI, Managers). Use NBT for custom items to prevent duplication. Ensure the code is highly modular.

Kodari AI Kodari Today at 1:02 pm 33,867 I'll create a comprehensive DeadlySouls SMP plugin with all requested features using a professional inventory INVENTORY GUI system instead of altars.

Kodari AI
KodariApr 27 at 9:52 am 65,230 (v2)
DeadlySouls
A massive custom SMP plugin featuring 10 Normal God Souls and 5 Ultimate Souls with unique abilities and curses. Includes a life system with cinematic final deaths, Purgatory/Ghost mode, professional inventory GUI crafting, Soul Gems, anti-combat-log, kill streaks, Mob Ambush ritual, death holograms, holographic revive system, and full admin/player commands. All credits belong to DEADLY_XPLAYZ.

Here’s my plan before writing a single line:

  • 25 files across managers, listeners, GUI framework, commands, utils, and data

  • All soul items use PersistentDataContainer (no duplication exploits)

  • GUI framework follows the documented pattern exactly (InventoryHandler → InventoryGUI → GUIManager → GUIListener)

  • Managers are fully decoupled; listeners delegate to managers only

  • All particles/sounds via XSeries; hex colors via §x legacy format


Here’s a summary of everything built across 25 files:


Architecture Overview

Component
Files
Purpose
Core
DeadlySouls.java
,
build.gradle
,
plugin.yml
,
config.yml
Main class, startup branding flash, global tasks (action bar, effects, particles)
Data
PlayerData.java
,
PlayerDataManager.java
Per-player YAML persistence, server-wide ultimate crafting tracking
Managers
SoulManager
,
CombatManager
,
PurgatoryManager
,
HologramManager
,
MobAmbushManager
All game logic fully isolated
GUI Framework
InventoryHandler
,
InventoryButton
,
InventoryGUI
,
GUIManager
,
GUIListener
Clean event-driven GUI system from the documented pattern
GUIs
RecipeGUI
,
ReviveGUI
,
CraftingGUI
Recipe browser, skull-based revive selector, ingredient-based custom crafting
Listeners
PlayerListener
,
SoulListener
,
PurgatoryListener
Deaths, combat logging, right-click abilities, soul protection, restrictions
Commands
DSCommand
/ds stats
,
/ds recipe
,
/ds craft
,
/ds jail set
,
/ds setlives
,
/ds give soul
,
/ds reset
Utils
ColorUtil
,
ItemBuilder
&#RRGGBB
hex translation + gradient builder, fluent item construction

Key Implementation Details

  • Soul items use PersistentDataContainer with ds_item_type / ds_soul_type / ds_player_uuid keys — zero duplication exploits

  • Action bar sent every 20 ticks via player.spigot().sendMessage(ChatMessageType.ACTION_BAR, ...) — no flicker

  • Rolling animation is a BukkitRunnable running for 20 × 10-tick iterations with gradient color cycling, warden heartbeat + thunder sounds

  • Purgatory blocks all actions except Soul Sand break (tracked per-player up to 1,000) using EventPriority.HIGHEST

  • Mob Ambush spawns 6 waves of buffed mobs every 200 ticks using a self-cancelling BukkitRunnable

  • DEADLY_XPLAYZ branding flashes in ANSI-colored ASCII art on server startup

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
25 3,021
src/main/java/com/deadlyxplayz/deadlysouls/DeadlySouls.java
package com.deadlyxplayz.deadlysouls;

import com.deadlyxplayz.deadlysouls.commands.DSCommand;
import com.deadlyxplayz.deadlysouls.inventory.gui.GUIListener;
import com.deadlyxplayz.deadlysouls.inventory.gui.GUIManager;
import com.deadlyxplayz.deadlysouls.listeners.PlayerListener;
import com.deadlyxplayz.deadlysouls.listeners.PurgatoryListener;
import com.deadlyxplayz.deadlysouls.listeners.SoulListener;
import com.deadlyxplayz.deadlysouls.managers.*;
import com.deadlyxplayz.deadlysouls.utils.ColorUtil;
import lombok.Getter;
import net.md_5.bungee.api.ChatMessageType;
import net.md_5.bungee.api.chat.TextComponent;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.scheduler.BukkitRunnable;

public class DeadlySouls extends JavaPlugin {

    public static final String PREFIX = ColorUtil.color("&8[&5&lDeadly&dSouls&8] &r");
    public static final String ANSI_RESET = "\u001B[0m";
    public static final String ANSI_PURPLE = "\u001B[35m";
    public static final String ANSI_CYAN = "\u001B[36m";
    public static final String ANSI_YELLOW = "\u001B[33m";
    public static final String ANSI_RED = "\u001B[31m";
    public static final String ANSI_BRIGHT = "\u001B[1m";

    @Getter private static DeadlySouls instance;

    @Getter private PlayerDataManager playerDataManager;
    @Getter private SoulManager soulManager;
    @Getter private CombatManager combatManager;
    @Getter private PurgatoryManager purgatoryManager;
    @Getter private HologramManager hologramManager;
    @Getter private MobAmbushManager mobAmbushManager;
    @Getter private GUIManager guiManager;
    @Getter private PlayerListener playerListener;

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

        flashBranding();

        // Init managers
        playerDataManager = new PlayerDataManager(this);
        soulManager = new SoulManager(this);
        combatManager = new CombatManager(this);
        purgatoryManager = new PurgatoryManager(this);
        hologramManager = new HologramManager(this);
        mobAmbushManager = new MobAmbushManager(this);
        guiManager = new GUIManager();

        // Init listeners
        playerListener = new PlayerListener(this);
        Bukkit.getPluginManager().registerEvents(playerListener, this);
        Bukkit.getPluginManager().registerEvents(new SoulListener(this), this);
        Bukkit.getPluginManager().registerEvents(new PurgatoryListener(this), this);
        Bukkit.getPluginManager().registerEvents(new GUIListener(guiManager), this);

        // Commands
        DSCommand dsCommand = new DSCommand(this);
        getCommand("ds").setExecutor(dsCommand);
        getCommand("ds").setTabCompleter(dsCommand);

        // Global tasks
        startGlobalTasks();

        getLogger().info(PREFIX + "DeadlySouls enabled! by DEADLY_XPLAYZ");
    }

    @Override
    public void onDisable() {
        playerDataManager.saveAll();
        hologramManager.cleanupAll();
        getLogger().info(PREFIX + "DeadlySouls disabled. Data saved.");
    }

    private void startGlobalTasks() {

        // Action bar — lives display, every 20 ticks (no flicker)
        new BukkitRunnable() {
            @Override
            public void run() {
                for (Player player : Bukkit.getOnlinePlayers()) {
                    var data = playerDataManager.getData(player.getUniqueId());
                    int lives = data.getLives();

                    StringBuilder hearts = new StringBuilder();
                    for (int i = 0; i < Math.min(lives, 20); i++) hearts.append("❤");

                    String livesColor = lives >= 4 ? "&#00FF44" : lives >= 2 ? "&#FF7700" : "&#FF0000";
                    String actionBar = ColorUtil.color(livesColor + "❤ Lives: " + lives + " " +
                            (hearts.length() > 0 ? "&7[" + livesColor + hearts + "&7]" : "") +
                            (data.isInPurgatory() ? "  &#5500AA☠ PURGATORY" : "") +
                            (data.getBloodlustExpiry() > System.currentTimeMillis() ? "  &#FF0000⚡ BLOODLUST" : "") +
                            (combatManager.isTagged(player) ? "  &#FF4400⚔ Combat: " + combatManager.getTagRemaining(player) + "s" : ""));

                    player.spigot().sendMessage(ChatMessageType.ACTION_BAR, new TextComponent(actionBar));
                }
            }
        }.runTaskTimer(this, 0L, 20L);

        // Passive soul effects — every 60 ticks (3 sec), short-duration effects reapplied
        new BukkitRunnable() {
            @Override
            public void run() {
                for (Player player : Bukkit.getOnlinePlayers()) {
                    soulManager.applyPassiveEffects(player);
                }
            }
        }.runTaskTimer(this, 20L, 60L);

        // Particle auras — every 8 ticks (smooth but not laggy)
        new BukkitRunnable() {
            @Override
            public void run() {
                for (Player player : Bukkit.getOnlinePlayers()) {
                    soulManager.spawnAura(player);
                }
            }
        }.runTaskTimer(this, 10L, 8L);
    }

    private void flashBranding() {
        String[] lines = {
                "",
                ANSI_PURPLE + ANSI_BRIGHT + "  ██████╗ ███████╗ █████╗ ██████╗ ██╗  ██╗   ██╗" + ANSI_RESET,
                ANSI_PURPLE + ANSI_BRIGHT + "  ██╔══██╗██╔════╝██╔══██╗██╔══██╗██║  ╚██╗ ██╔╝" + ANSI_RESET,
                ANSI_CYAN   + ANSI_BRIGHT + "  ██║  ██║█████╗  ███████║██║  ██║██║   ╚████╔╝ " + ANSI_RESET,
                ANSI_CYAN   + ANSI_BRIGHT + "  ██║  ██║██╔══╝  ██╔══██║██║  ██║██║    ╚██╔╝  " + ANSI_RESET,
                ANSI_RED    + ANSI_BRIGHT + "  ██████╔╝███████╗██║  ██║██████╔╝███████╗██║   " + ANSI_RESET,
                ANSI_RED    + ANSI_BRIGHT + "  ╚═════╝ ╚══════╝╚═╝  ╚═╝╚═════╝ ╚══════╝╚═╝   " + ANSI_RESET,
                "",
                ANSI_YELLOW + ANSI_BRIGHT + "  ███████╗ ██████╗ ██╗   ██╗██╗     ███████╗" + ANSI_RESET,
                ANSI_YELLOW + ANSI_BRIGHT + "  ██╔════╝██╔═══██╗██║   ██║██║     ██╔════╝" + ANSI_RESET,
                ANSI_CYAN   + ANSI_BRIGHT + "  ███████╗██║   ██║██║   ██║██║     ███████╗" + ANSI_RESET,
                ANSI_CYAN   + ANSI_BRIGHT + "  ╚════██║██║   ██║██║   ██║██║     ╚════██║" + ANSI_RESET,
                ANSI_PURPLE + ANSI_BRIGHT + "  ███████║╚██████╔╝╚██████╔╝███████╗███████║" + ANSI_RESET,
                ANSI_PURPLE + ANSI_BRIGHT + "  ╚══════╝ ╚═════╝  ╚═════╝ ╚══════╝╚══════╝" + ANSI_RESET,
                "",
                ANSI_YELLOW + ANSI_BRIGHT + "  ★ Created by DEADLY_XPLAYZ ★  All rights reserved." + ANSI_RESET,
                ANSI_CYAN   + "  Version: " + getDescription().getVersion() + " | Souls: 15 | Lives System Active" + ANSI_RESET,
                ""
        };
        for (String line : lines) {
            System.out.println(line);
        }
    }
}