kajtoczjusz

an Plugin for 1.21.11 that makes you have two hearhts 1 on left side of your nick other on right the hearhts are black blue &1 color in minecraft once you die you respawn but with only one life left if you died once more you lose your second life than you are turned into spectator mode and cant move until soemeno revives you using revive crystal also &1 color to revivie right click revive makes them be on 1 live again and lets them walk and turns them to survival mode you can get revival crystals using command /revive_crystal_give

Kodari AI
KodariJul 21 at 6:15 pm 14
TwoLivesRevival
TwoLivesRevival adds a persistent two-life survival system for Paper 1.21.x servers. Players display dark-blue hearts beside their names, lose one life per death, and become immobile spectators after their final life is lost. A custom dark-blue Revive Crystal restores eliminated players to one life and Survival mode when used on them. Operators distribute crystals with /revive_crystal_give, including an optional player target.
  1. Create the Paper 1.21.1 Gradle project and plugin manifest.

  2. Add persistent life tracking, heart name displays, death handling, and spectator freezing.

  3. Add Revive Crystal creation, revival interaction, and the give command.

kajtoczjusz

GOOD but add /godlives (player) makes hearths black and doesnt lose lives /ungodlives (player) makes his lives back to normal /revie (player) revives player also make revive shard to sculk shard(the item in minecraft) inteasd of amethyst shard make an Sculk Mace(name colored with &1) shoots sonic boom(warden beam) where you look at while having it in hand and right clicking with cooldown of 5 minutes Pale Mace(name color &6) when right clicked makes you immortal for 5 seconds (message in chat only for you pale garden protects you for 5 seconds) with cooldown of 20 minutes

Kodari AI
KodariJul 23 at 7:37 am 24
  1. Add /godlives and /ungodlives with persistent protected-life status and black heart displays.

  2. Add /revive <player> for direct restoration.

  3. Change the revival item to a dark-blue Sculk Shard.

  4. Add the dark-blue Sculk Mace with a five-minute sonic-boom cooldown.

  5. Add the gold Pale Mace with five seconds of invulnerability and a twenty-minute cooldown.

Implemented all requested additions:

  1. /godlives <player> — gives black hearts and prevents life loss.

  2. /ungodlives <player> — restores normal dark-blue life behavior.

  3. /revie <player> — restores an eliminated player with one life.

  4. Revive Crystal is now a dark-blue Revive Sculk Shard using an Echo Shard item.

  5. Added /sculk_mace_give [player] — dark-blue Sculk Mace fires a Warden-style sonic beam with a 5-minute cooldown.

  6. Added /pale_mace_give [player] — gold Pale Mace grants five seconds of invulnerability with the requested private message and a 20-minute cooldown.

  7. Fixed god-lives activation so eliminated players are properly restored instead of remaining spectators.

kajtoczjusz

Commands:

/setlives <player> <1-2> → Sets the player's lives to 1 or 2 /revive <player> → Revives the player (fix the current /revie) /path <player> <pale|sculk> → Changes the target player's soul path /givesoul <player> → Gives 1 Soul item to the player's inventory /withdraw <player> <amount> (1-5) → Removes the specified number of souls from the player.

If they don’t have enough, show message: "Player has only X souls. Cannot withdraw Y souls." /souls → Shows the player their current soul count (e.g. "You have 3/5 souls.") /path_altar <pale|sculk> → Places a resin block (if pale) or sculk block (if sculk). Right-clicking it chooses your path permanently (cannot change it after) /soulshifter <player> → Gives the player a Soul Shifter

Soul System

Max 5 Souls per player When the player dies, they lose 1 Soul and the ability that came with that soul When a player dies, a Soul item drops Players can choose Sculk Path or Pale Path

Soul Item

Empty bottle named &bSoul (cyan color) One-time use

Soul Shifter Item

Name: &d&lSoul Shifter Item: Dragon's Breath Lore: "Right click to permanently switch your path. Consumed on use." One-time use

Lives System Fix

Lives are stored per player. When one player loses a life, other players are not affected.

Revive Crystal Fix

Right-clicking the Revive Crystal opens a menu with the heads of every dead player. Clicking a head revives that player.

Sculk Mace

Sonic boom does 5 hearts of damage

Abilities Sculk Path

Sculk Vitality → +2 Max Hearts Vibration Sense → Right-click reveal nearby entities through walls (8s, 25s cd) Sculk Leech → 20% life steal on melee attacks Warden's Fury → +35% damage in dark areas + Strength I when below 6 hearts + +1 Max Heart Sculk Overlord → +3 Max Hearts + 30% reduced damage taken

Pale Path

Pale Resilience → +3 Max Hearts + 25% knockback resistance Ghost Step → Sneak for Speed II + partial invisibility (8s, 18s cd) Pale Drain → 25% stronger healing + small regeneration on kills Creaking Aura → Nearby enemies get Slowness I Pale Sovereign → +2 Max Hearts + 20% reduced damage taken

Kodari AI
KodariJul 28 at 2:06 pm 24
  1. Replace the life commands and ensure lives remain strictly per-player.

  2. Add persistent souls and permanent soul-path selection with altar and shifter items.

  3. Implement soul loss/drops, soul inventory commands, and the dead-player Revive Crystal menu.

  4. Implement the Sculk and Pale path abilities, including mace damage and cooldowns.

Implemented the requested souls, paths, and life-system updates.

  • /setlives <player> <1-2> sets only that player’s saved lives.

  • /revive <player> replaces the old /revie command.

  • Added /path, /givesoul, /withdraw, /souls, /path_altar, and /soulshifter.

  • Souls are capped at 5, drop as cyan Soul bottles on death, and remove path abilities when lost.

  • Path altars use Resin Block for Pale and Sculk for Sculk; players choose once, with Soul Shifters switching and consuming themselves.

  • Revive Sculk Shards now open a head menu of eliminated players and consume one shard when revival succeeds.

  • Sculk Mace sonic boom deals 10 damage / 5 hearts.

  • Added all listed Sculk and Pale path abilities, effects, cooldowns, health bonuses, damage modifiers, healing, and aura behavior.

kajtoczjusz

make /path_altar command place altar one block below you if theres block there change it to altar /withraw give soul to player when he withrawds also no (player) it just withrawds from you add /soulchange (player) (number) changes player amount of souls make Ghost Step and Vibration Sense shift + right click

Kodari AI
KodariAug 6 at 8:54 am 6
  1. Update altar placement, self-withdrawal, and add /soulchange.

  2. Require Shift + right-click for Ghost Step and Vibration Sense.

  • /withdraw <amount> now withdraws from the sender and returns Soul bottles.

  • /soulchange <player> <0-5> sets a player’s stored soul total.

  • /path_altar overwrites the block directly beneath the sender.

  • Ghost Step and Vibration Sense now activate only while sneaking and right-clicking.

Implemented the requested command and activation changes.

  • /path_altar <pale|sculk> replaces the block directly below you with the selected altar.

  • /withdraw <amount> now withdraws from your own stored souls and gives you that number of Soul bottles.

  • Added /soulchange <player> <0-5> to set a player’s soul amount.

  • Vibration Sense now requires Shift + right-click.

  • Ghost Step now requires Shift + right-click.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
12 1,525
src/main/java/com/kodari/twolives/TwoLivesRevivalPlugin.java
package com.kodari.twolives;

import com.kodari.twolives.command.CustomMaceGiveCommand;
import com.kodari.twolives.command.LivesAdminCommand;
import com.kodari.twolives.command.ReviveCrystalCommand;
import com.kodari.twolives.command.SoulCommand;
import com.kodari.twolives.listener.TwoLivesListener;
import com.kodari.twolives.manager.LivesManager;
import java.util.Objects;
import org.bukkit.plugin.java.JavaPlugin;

public final class TwoLivesRevivalPlugin extends JavaPlugin {

    @Override
    public void onEnable() {
        LivesManager livesManager = new LivesManager(this);
        LivesAdminCommand livesAdminCommand = new LivesAdminCommand(livesManager);
        SoulCommand soulCommand = new SoulCommand(livesManager);
        TwoLivesListener listener = new TwoLivesListener(this, livesManager);

        getServer().getPluginManager().registerEvents(listener, this);
        Objects.requireNonNull(getCommand("revive_crystal_give")).setExecutor(new ReviveCrystalCommand(livesManager));
        Objects.requireNonNull(getCommand("godlives")).setExecutor(livesAdminCommand);
        Objects.requireNonNull(getCommand("ungodlives")).setExecutor(livesAdminCommand);
        Objects.requireNonNull(getCommand("setlives")).setExecutor(livesAdminCommand);
        Objects.requireNonNull(getCommand("revive")).setExecutor(livesAdminCommand);
        Objects.requireNonNull(getCommand("sculk_mace_give")).setExecutor(new CustomMaceGiveCommand(livesManager, true));
        Objects.requireNonNull(getCommand("pale_mace_give")).setExecutor(new CustomMaceGiveCommand(livesManager, false));
        Objects.requireNonNull(getCommand("path")).setExecutor(soulCommand);
        Objects.requireNonNull(getCommand("givesoul")).setExecutor(soulCommand);
        Objects.requireNonNull(getCommand("withdraw")).setExecutor(soulCommand);
        Objects.requireNonNull(getCommand("soulchange")).setExecutor(soulCommand);
        Objects.requireNonNull(getCommand("souls")).setExecutor(soulCommand);
        Objects.requireNonNull(getCommand("path_altar")).setExecutor(soulCommand);
        Objects.requireNonNull(getCommand("soulshifter")).setExecutor(soulCommand);

        listener.startAbilityTask();
        getServer().getOnlinePlayers().forEach(player -> {
            livesManager.initializePlayer(player);
            getServer().getScheduler().runTask(this, () -> livesManager.applyPlayerState(player));
        });
    }
}