# β€οΈ Lifesteal SMP
**Steal hearts. Survive. Don't hit zero.**
A full Lifesteal datapack for **Minecraft Java 26.3**. Every death costs you a heart and every kill earns one. Lose them all and you're out until someone brings you back.
---
## βοΈ How It Works
- Everyone starts with **10 hearts**, and there's **no maximum**
- **Kill a player** and gain +1 heart
- **Die to anything** (players, mobs, falling, lava) and lose 1 heart
- Hearts show in the **Tab list**
## π Elimination
When you hit **0 hearts**:
- You're switched to **spectator mode**
- Your **inventory is wiped**
- The whole server gets an elimination announcement
## π Heart Items
Turn hearts into items to trade, store, or give to teammates.
- **Right-click** a Heart in the air to use it instantly
- `/trigger ls.withdraw` turns 1 heart into an item (`set 5` for more)
- `/trigger ls.redeem` uses Heart items from your inventory (`set 5` for more)
- You always keep at least 1 heart when withdrawing
**Crafting Recipe:** 8 Diamonds around 1 Iron Ingot
π π π
π β¬ π
π π π
## β¨ Revive Token
Bring a fallen friend back into the fight.
**Crafting Recipe:** TNT pattern with 5 Hearts and 4 Diamond Blocks
β€οΈ π· β€οΈ
π· β€οΈ π·
β€οΈ π· β€οΈ
**To use it:**
1. Rename the token in an anvil to the player's **exact name**
2. Keep it in your inventory
3. Run `/trigger ls.revive`
The revived player comes back in survival with **5 hearts**, an empty inventory, and teleports to you. It works on offline players too, who return the next time they join.
## π οΈ Admin Commands (Ops Only)
| Command | What It Does |
|---|---|
| `/function lifesteal:give {player:"Name",amount:5}` | Give Heart items to a player |
| `/function lifesteal:reset` | Reset everyone to 10 hearts |
| `/scoreboard players set <player> ls.hearts <#>` | Set someone's hearts directly |
## π₯ Installation
1. Download the zip
2. Put it in your world's `datapacks` folder
3. Run `/reload` or reopen the world
If it shows as incompatible, press **F3 + V** to check your pack format and update it in `pack.mcmeta`.
---
Found a bug or have an idea? Leave a comment!. This datapack use help from A.I. if you make content on this please put the datapack in the discription!