# 🔄 Life Swap
Kill or be killed. Literally.
Life Swap turns every fight into a gamble — when you kill a mob or player, you inherit their max health. Take down a Warden and walk away nearly unkillable. Finish off by a Silverfish and, well… good luck.
---
## 💀 How It Works
Every kill swaps your max health with your target's. No grinding, no tiers — just pure risk and reward.
- **Kill a player?** You take their max health. They respawn with yours.
- **Kill a mob?** Your max health becomes theirs.
- **Die naturally?** Your health resets to 20 HP by default — unless you enable persist mode.
---
## ⚙️ Configuration
A config file is automatically generated on first launch at:
```
config/lifeswap_config.json
```
```json
{
"persistAfterDeath": false
}
```
| Option | Default | Description |
|---|---|---|
| `persistAfterDeath` | `false` | If true, your max health carries over through death instead of resetting to 20 HP |
---
## 🔧 Commands
| Command | Description |
|---|---|
| `/lifeswap toggle` | Toggle persist after death on or off |
---
Plugin Version: www.curseforge.com/minecraft/bukkit-plugins/life-swap
---
## 📋 Requirements
- Minecraft 1.21.9–1.21.11
- Fabric Loader
- Fabric API