Create a Minecraft 1.21 Spigot/Paper plugin named "LifeStealSMP" with the following features:
Core System:
- Every new player starts with 10 lives.
- Maximum lives: 100.
- Lives ONLY decrease when a player is killed by another player.
- Environmental damage (fall, lava, mobs, etc.) should NOT reduce lives.
Death System:
- When a player is killed by another player:
- Victim loses 1 life. - The life does NOT go directly to the killer. - Instead, 1 Life Item drops on the ground at the death location.
- If a player reaches 0 lives:
- They are permanently banned from the server.
Life Item:
- Material: Nether Star
- Custom name: "§bLife"
- Dropped on player death (1 per death).
- Right-clicking the item adds 1 life to the player.
- Cannot exceed max 100 lives.
Withdraw System:
- Command: /withdraw <amount>
- Usable by NON-OP players.
- Converts lives into Life Items (Nether Star).
- Example: /withdraw 2 → gives 2 life items.
- Cannot withdraw more lives than available.
- Cannot reduce player to 0 lives using withdraw.
UI System:
- Show lives in ActionBar (above hotbar):
Format: "§9Lifes:- <amount>"
- Updates in real-time.
Notifications:
- When a player loses a life:
- Show RED title popup:
Title: "§c-1 Life!" Subtitle: "§7You died!" - Play sound: ENTITY_WITHER_DEATH (or similar dramatic sound)
- When a player picks up or gains a life:
- Show GREEN title popup:
Title: "§a+1 Life!" Subtitle: "§7Life added!" - Play sound: ENTITY_PLAYER_LEVELUP
Extra:
- Prevent abuse or duplication.
- Save player data persistently.
Kodari can make mistakes. Review important code before using.
Files
No files in this session
Code