senorbitor
📎 1 file 3,110 chars
📄
pasted-code-1774093946678.txt
txt 46 lines
▶
# 📜 PLUGIN BLUEPRINT: THE SOUL TOTEM SMP (v2.0)

## 1. ❤️ LIFE SYSTEM (THE CORE)
- **Initial Lives:** Every player starts with 3 lives.
- **Death Mechanic:** Upon losing all 3 lives, the player's "Soul Totem" drops, and the player is sent to "Hell" (Ban/Spectator state).
- **Life Steal:** If a player has 1 or 2 lives, killing another player grants +1 Life (Capped at 3).
- **Soul Security:** The Soul Totem is a physical item that **cannot** be placed in any Chest or Ender Chest (Anti-Storage). It must remain in a player's inventory.

## 2. 📍 THE HOLDER & TRACKING
- **30-Min Reveal:** The coordinates of any player holding a Soul Totem will be broadcast in global chat every 30 minutes.
- **Logout Lockdown:** A Soul Holder cannot leave the server for at least 2-3 hours unless they transfer the soul to an online teammate.
- **The Alternative:** If a Soul Totem is destroyed (e.g., thrown in Lava or Cactus), the victim will be automatically unbanned after a 24-hour cooldown.

## 3. 🕯️ THE REVIVAL RITUAL: "SCULK AWAKENING"
- **The Crafting:** Players must use a Crafting Table to create a "Revival Book" using these items:
    * 3 Stacks of Diamonds, 3 Stacks of Gold, 20 Netherite Ingots, 3 Totems, and the Victim's **Soul Totem** in the center slot.
- **The Transformation:** Upon clicking the craft result, the Crafting Table is instantly removed/deleted.
- **The Rise:** A 9x9 area of **Sculk Blocks and Sculk Shriekers** will summon and rise from beneath the ground.
- **The Rotating Head:** In the exact center of the structure, the victim's **Player Head** will appear and rotate rapidly in a circular motion.
- **The 30-Min Siege:** The ritual lasts 30 minutes. During this time, coordinates are revealed to the whole server. If the ritual holder dies, the ritual fails.

## ⚡ SPECIAL POWERS & STREAKS
- **Soul Master:** Holding 3 or more Souls grants permanent **Speed II** and **Resistance**, but the disadvantage is that **Hunger** depletes much faster.
- **Kill Streak:** Achieving a 5-kill streak grants the user a "Wither Effect" on their attacks, damaging opponents over time.

---

## 💻 PLUGIN COMMANDS LIST

### [Player Commands]
- `/lives` : Check your current remaining lives.
- `/lives ` : View the lives of another player.
- `/st recipe` : View the required items and pattern for the Revival Book.
- `/st track` : View the last known coordinates of current Soul Holders.
- `/st ritualpos` : View the location and remaining time of an active ritual.
- `/st souls` : Check how many souls you are holding and your active buffs.

### [Admin Commands] (Permission: st.admin)
- `/st give ` : Manually spawn a player's specific Soul Totem.
- `/st setlives  <1-3>` : Manually change a player's life count.
- `/st stopritual` : Instantly terminate an active Sculk ritual (restores blocks).
- `/st free ` : Release a player from "Hell" without a ritual.
- `/st reload` : Reload the plugin configuration and database.

---
[Note: A Custom Resource Pack is required for the Soul Totem and Revival Book textures.]
Kodari AI
KodariMar 21 at 11:56 am 27,126 (v2)

I’ll create “The Soul Totem SMP” plugin - a comprehensive life-steal system with death mechanics, revival rituals, and special powers.

SoulTotemSMP
A hardcore SMP plugin featuring a 3-life system where players drop Soul Totems upon death. Includes coordinate tracking for soul holders, complex Sculk Awakening revival rituals requiring massive resource investment, life-stealing mechanics, special powers for soul collectors, kill streak bonuses, and enforced gameplay rules including logout prevention and anti-storage mechanics for soul totems.

Let me start by reading XSeries docs to ensure proper cross-version compatibility:

Now I’ll build the complete plugin with all interconnected systems.

The Soul Totem SMP plugin is complete with all requested features: life system, soul totems with anti-storage mechanics, coordinate tracking, logout prevention, complex Sculk Awakening revival rituals, special powers for soul collectors, kill streaks with wither effects, comprehensive commands, and ban/unban integration.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
24 1,890
src/main/java/com/soultotem/SoulTotemPlugin.java
package com.soultotem;

import com.soultotem.command.LivesCommand;
import com.soultotem.command.STCommand;
import com.soultotem.listener.*;
import com.soultotem.manager.*;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.PluginManager;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class SoulTotemPlugin extends JavaPlugin {
    
    private ConfigManager configManager;
    private DataManager dataManager;
    private LifeManager lifeManager;
    private SoulTotemManager soulTotemManager;
    private CoordinateTracker coordinateTracker;
    private LogoutManager logoutManager;
    private RitualManager ritualManager;
    private PowerManager powerManager;
    
    @Override
    public void onEnable() {
        this.configManager = new ConfigManager(this);
        this.dataManager = new DataManager(this);
        this.lifeManager = new LifeManager(this);
        this.soulTotemManager = new SoulTotemManager(this);
        this.coordinateTracker = new CoordinateTracker(this);
        this.logoutManager = new LogoutManager(this);
        this.ritualManager = new RitualManager(this);
        this.powerManager = new PowerManager(this);
        
        configManager.loadConfig();
        dataManager.loadData();
        
        registerListeners();
        registerCommands();
        
        coordinateTracker.startBroadcastTask();
        ritualManager.resumeRituals();
        powerManager.startPowerTask();
        
        getLogger().info("Soul Totem SMP has been enabled!");
    }
    
    @Override
    public void onDisable() {
        if (ritualManager != null) {
            ritualManager.cancelAllRituals();
        }
        if (dataManager != null) {
            dataManager.saveData();
        }
        if (coordinateTracker != null) {
            coordinateTracker.stopBroadcastTask();
        }
        if (powerManager != null) {
            powerManager.stopPowerTask();
        }
        getLogger().info("Soul Totem SMP has been disabled!");
    }
    
    private void registerListeners() {
        PluginManager pm = Bukkit.getPluginManager();
        pm.registerEvents(new PlayerDeathListener(this), this);
        pm.registerEvents(new PlayerKillListener(this), this);
        pm.registerEvents(new InventoryListener(this), this);
        pm.registerEvents(new PlayerQuitListener(this), this);
        pm.registerEvents(new CraftingListener(this), this);
        pm.registerEvents(new RitualListener(this), this);
    }
    
    private void registerCommands() {
        getCommand("lives").setExecutor(new LivesCommand(this));
        getCommand("st").setExecutor(new STCommand(this));
    }
}