7star_323
๐Ÿ“Ž 1 file 4,903 chars
๐Ÿ“„
pasted-code-1774168141490.txt
txt 36 lines
โ–ถ
# **plugin name - the soul totem**

**Life Game** - there will be 3 lifes for every one once the player drops for 3 times he will lose the soul of them. if the players has 1 or 2 lifes he can get kills for lifes 3 lifes are max player can't get more than 3 lifes but can lose.

**The Hostage** - when the player drops the soul totem he can't join the server until he gets revived again(he will be in hell).

**The Soul** - the players may deal or fight for the soul of the teammates soul can't be placed in any chest or echest.

**The Holder** - everyone can track the player who has the soul, every 30mins the players location would reveal in chat the player can't leave the server for atleast 2-3 hr when he get the soul in his inventory (can give to teammates to go off if important but the teammate should be online , respectively his cord will be reveal in chat).

**After the 3hr** - the players cords will be revealed but it will be revealed in every 45 mins.

**Alternative** - if the player destroys the soul totem the player will get unban within 24 hr. 

**Special Combat Powers** - if the player has 3 or more souls he will get permanent speed 2 and resistance and the disadvantage is the hunger goes off fast 
**Kill Streaks** - 5 kill streak will give the user wither effect that will damage the opponent.

# **The Reveal**

**Requirement** - who ever has the soul to revive he/she should have 8 diamond blocks, 4 netherstar, 64 golden apples and 8 netherite blocks  and the soul totem.

**Recipe and Ritual** - make a crafting table put the 32 golden apple in the first slot in the 2nd slot put a netherstar in the 3rd slot put another 32 golden apples in the 4th slote put a netherstar in the 5th slote put the soul totem 6th slot put the netherstar 7th slot put the 8 blocks of netherite 8th slote put the netherstar 9th slote put the 8 blocks of diamonds.

**Ritual Results** - as soon as the recipe is crafted ritual will trigger and the cursed heart will not come in the inventory instead the atmosphere change.

**The Transformation** - table gets remove and a piller of 9x9 blocks of badrock will rise and the top of it a wither will be spawned which will not move nor be killed it is only the one who will revive but it will spawn zombies and mobs the area will also rise with the sculk blocks and sculk shriekers that will sound but not spawn warden. 

**The Environment** - the hole server will go on black to see players have to use night vision to see, and the moon will turn red the light will also will get red all the players with the night vision will not be effected by the black fog all the players that are not used night vision will be effected by the black fog and the red light effect will be till the end of the ritual all the mobs will get strength 2 and speed 2 for the 30 mins there will also a sound like siren that will come from the direction of the ritual (that will only not get heard by the ritual starter) if the reviver is in the radius of 20x20 blocks with respective to the ritual wither he will get fire resistance and regeneration for the 30 mins.

**The Reveal** - as soon as the ritual starts cords will be given in chat every 5 mins with a thunder strike at the wither at the Ritual and it will go on 30mins if the holder of the ritual dies the ritual will not continue.

**The End** - if the players dies or the ritual completes successfully the sky and all effects for mobs and players and the environment and the ritual and the badrock and the sculk blocks and sculk shriekers  the back environment the moon the effects of everything the wither everything will slowly disappear the animation will be slow and clean in the start and the end will be in the perfect animation with everything slowly effecting everything. Finally if the players dies while the ritual is going on the player will not be revived and the ritual will be failed and if the player successfully completes the ritual fighting everything the player will be revived and will get revived at the spawn of the world.

**Note** - the soul totem should not be usable and natural death will not be effected in lose of life and if the soul totem can't be stored by any of the stroage items nor chests or enderchests or barrels players can't even put in those not even in item frame the item should not go inside any of these not by mistake also if any chance it goes inside it should return to the players inventory and a lighting strieks at the player damaging 5 hearts and the players cord will be revealed every 15mins.

**The Players** - they should know how many lifes they are in so every time they die after respawning they should be a screen full of popup on the players screen who had died for 10 seconds that says how many lifes they are in and a command that says the lifes of the players "/player life" and can see others lifes by "/player life 'username of the player'"
Kodari AI
KodariMar 22 at 8:36 am 33,813 (v2)

Iโ€™ll analyze this complex plugin and plan all classes before writing any code.

Key Systems:

  • Life System (3 lives, PvP deaths only, kills restore lives)

  • Soul Totem item (custom PDC item, storage prevented, drops on 0 lives)

  • Soul Holder tracking (location reveals on schedule)

  • Ritual System (custom GUI, bedrock pillar, wither, environment effects, 30-min duration)

  • Kill Streak (5 kills = wither on next opponent)

  • Combat Powers (3+ souls = speed 2 + resistance + fast hunger)

  • Hostage System (banned until revived or soul destroyed)

  • Commands & UI (title screen on death, /player life)

TheSoulTotem
A hardcore survival plugin featuring a soul-based life system where players have 3 lives, losing all sends them to a hostage state until revived via an epic ritual. Features a soul totem item that binds the dead player's soul, cannot be stored in any container, and reveals the holder's location periodically. Includes kill streaks, soul-powered combat buffs, a dramatic 30-minute revival ritual with environment transformation, bedrock pillars, a summoned wither, server-wide effects, and deep PvP consequence mechanics.

Hereโ€™s a summary of everything built:

17 files implementing the full Soul Totem system:

  • SoulTotemItem โ€” Custom PDC-tagged totem of undying that identifies itself and its owner; totem resurrection effect cancelled

  • DataManager โ€” YAML persistence for lives, hostage states, soul holders, and pickup timestamps

  • LifeManager โ€” PvP-only life tracking; 0 lives โ†’ hostage + soul drop; kills restore lives

  • SoulManager โ€” Soul holder tracking, periodic location broadcasts (30min โ†’ 45min after 3hr), storage violation detection with lightning+damage punishment, minimum hold-time enforcement

  • KillStreakManager โ€” Tracks per-player kill streaks; every 5th kill queues a wither effect on the next hit

  • CombatManager โ€” Repeating task applying Speed 2 + Resistance to players holding 3+ souls, plus accelerated hunger drain

  • RitualManager โ€” Full 30-minute ritual: bedrock 3ร—3 pillar (9 blocks tall), invulnerable no-AI wither, sculk block/shrieker placement, blindness to players without night vision, mob buffs, directional siren sounds, 5-minute coord reveals + lightning, gradual animated cleanup on success/failure

  • RitualGUI โ€” Shift+right-click crafting table opens a 54-slot ritual GUI; validates exact recipe (32+32 golden apples, 4 nether stars, 8 netherite blocks, 8 diamond blocks, soul totem); consumes items and begins ritual

  • InventoryProtectionListener โ€” Blocks soul totems from entering any chest/barrel/ender chest/shulker/hopper via click, drag, and hopper-move events; punishes violators instantly

  • PlayerDeathListener โ€” Routes PvP deaths through LifeManager; shows respawn title with lives count; cancels totem resurrection from soul totems

  • PlayerConnectionListener โ€” Kicks hostages on join; kicks soul holders who try to disconnect before minimum hold time

  • Commands โ€” /player life [username] with tab completion showing hostage status and heart display

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
20 1,768
src/main/java/com/rivalsmc/soultotem/TheSoulTotem.java
package com.rivalsmc.soultotem;

import com.rivalsmc.soultotem.commands.PlayerLifeCommand;
import com.rivalsmc.soultotem.listeners.CombatListener;
import com.rivalsmc.soultotem.listeners.InventoryProtectionListener;
import com.rivalsmc.soultotem.listeners.ItemFrameProtectionListener;
import com.rivalsmc.soultotem.listeners.PlayerConnectionListener;
import com.rivalsmc.soultotem.listeners.PlayerDeathListener;
import com.rivalsmc.soultotem.listeners.RitualInteractListener;
import com.rivalsmc.soultotem.managers.CombatManager;
import com.rivalsmc.soultotem.managers.DataManager;
import com.rivalsmc.soultotem.managers.KillStreakManager;
import com.rivalsmc.soultotem.managers.LifeManager;
import com.rivalsmc.soultotem.managers.RitualManager;
import com.rivalsmc.soultotem.managers.SoulManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class TheSoulTotem extends JavaPlugin {

    private DataManager dataManager;
    private LifeManager lifeManager;
    private SoulManager soulManager;
    private RitualManager ritualManager;
    private KillStreakManager killStreakManager;
    private CombatManager combatManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        this.dataManager = new DataManager(this);
        this.dataManager.load();
        this.lifeManager = new LifeManager(this);
        this.soulManager = new SoulManager(this);
        this.ritualManager = new RitualManager(this);
        this.killStreakManager = new KillStreakManager(this);
        this.combatManager = new CombatManager(this);
        this.soulManager.startTrackingTask();
        this.combatManager.startTask();
        registerListeners();
        registerCommands();
        getLogger().info("TheSoulTotem enabled.");
    }

    @Override
    public void onDisable() {
        if (ritualManager != null) ritualManager.forceCleanup();
        if (dataManager != null) dataManager.save();
        getLogger().info("TheSoulTotem disabled.");
    }

    private void registerListeners() {
        getServer().getPluginManager().registerEvents(new PlayerDeathListener(this), this);
        getServer().getPluginManager().registerEvents(new InventoryProtectionListener(this), this);
        getServer().getPluginManager().registerEvents(new ItemFrameProtectionListener(this), this);
        getServer().getPluginManager().registerEvents(new PlayerConnectionListener(this), this);
        getServer().getPluginManager().registerEvents(new CombatListener(this), this);
        getServer().getPluginManager().registerEvents(new RitualInteractListener(this), this);
    }

    private void registerCommands() {
        PlayerLifeCommand lifeCmd = new PlayerLifeCommand(this);
        getCommand("player").setExecutor(lifeCmd);
        getCommand("player").setTabCompleter(lifeCmd);
    }
}