๐
1 file
6,710 chars
๐
pasted-code-1782207819130.txt
txt
637 lines
โถ
pasted-code-1782207819130.txt
txt
637 lines
# LostSMP Plugin Complete Specification
## Plugin Information
Plugin Name: LostSMP
Version: 1.0
Platform: Paper 1.21.11
Java Version: Java 21
Type: Survival SMP Plugin
Purpose:
A custom SMP plugin that combines Hunt Events, Heart Economy, Elimination, Revival Rituals, Voting Systems, and Permanent Progression.
---
# Heart System
Every player has custom hearts stored by the plugin.
These hearts are completely independent from vanilla Minecraft health.
## Default Hearts
Every new player starts with:
10 Hearts
## Limits
Minimum Hearts:
1
Maximum Hearts:
20
Players cannot exceed 20 hearts.
Players cannot go below 0 hearts.
Whenever hearts change:
* Max health updates automatically.
* Health scales correctly.
* Changes save instantly.
---
# Heart Gain Methods
Players can gain hearts through:
1. Hunt Day kills
2. Consuming Heart Items
3. Admin commands
4. Revival rewards (if configured)
---
# Heart Loss Methods
Players can lose hearts through:
1. Hunt Day deaths
2. Admin commands
3. Heart withdrawal
4. Revival penalties (optional)
---
# Elimination System
When a player reaches:
0 Hearts
The player is permanently eliminated.
Effects:
* Spectator Mode
* Broadcast Message
* Elimination Announcement
* Player Head Drop
* Cannot play normally
Example:
Steve had 1 Heart.
Steve loses 1 Heart.
Result:
Steve = 0 Hearts
Steve becomes Spectator.
---
# Heart Item
A special custom item.
Name:
Heart
Features:
* Custom Name
* Glow Effect
* Custom Model Data Support
* Stackable
* Persistent Data Container
* Cannot be duplicated
---
# Heart Item Usage
Right Click:
+1 Heart
Restrictions:
Cannot exceed 20 Hearts.
Example:
Player Hearts = 15
Uses Heart Item
Result:
16 Hearts
---
# Heart Item Protection
Heart Items must:
Survive:
* Lava
* Fire
* Campfire
* TNT
* Creepers
* Explosions
* Despawn Timer
* Fire Tick Damage
Can only be destroyed by:
Void
If Heart Item falls into the Void:
Destroyed permanently.
---
# Heart Crafting Recipe
Crafting Table Recipe:
Top Row:
Obsidian
Obsidian
Obsidian
Middle Row:
Netherite Block
Totem of Undying
Netherite Block
Bottom Row:
Obsidian
Obsidian
Obsidian
Result:
1 Heart Item
Recipe can be disabled in config.
---
# Withdraw System
Command:
/lostwithdraw
Example:
Player has:
10 Hearts
Command:
/lostwithdraw 1
Result:
9 Hearts
Receives:
1 Heart Item
Restrictions:
Cannot withdraw below 1 Heart.
Example:
Player has:
1 Heart
/lostwithdraw 1
Denied.
---
# Hunt Cycle System
The server uses a repeating cycle.
Default:
4 Days
Configurable.
Example:
Day 1 = Normal
Day 2 = Normal
Day 3 = Normal
Day 4 = Hunt Day
Repeat.
---
# Custom Hunt Cycle Length
Admins can change cycle length.
Command:
/lost time
Examples:
/lost time 3
Day 1 = Normal
Day 2 = Normal
Day 3 = Hunt Day
Repeat.
---
/lost time 5
Day 1 = Normal
Day 2 = Normal
Day 3 = Normal
Day 4 = Normal
Day 5 = Hunt Day
Repeat.
Allowed Range:
2 to 30 Days
Saved automatically.
---
# Start System
Command:
/lost start
Permission:
lostsmp.admin
Starts the cycle immediately.
Resets tracking.
Begins Day 1.
Broadcasts start message.
---
# Stop System
Command:
/lost stop
Stops cycle tracking.
No Hunt Days occur.
---
# Reload System
Command:
/lost reload
Reloads:
* Config
* Messages
* Settings
Without restarting server.
---
# Hunt Voting Event
When Hunt Day starts:
The plugin randomly selects:
2 Online Players
Example:
Steve
Alex
Server receives voting message.
---
# Voting System
Players vote through clickable chat messages.
Example:
Vote For Today's Target
[Steve]
[Alex]
Votes are counted.
Highest votes wins.
---
# Hunt Participants
The two selected players become:
Hunt Participants
One becomes:
Target
The other becomes:
Hunter
Both are vulnerable.
---
# Hunt Day Rules
Only active during Hunt Day.
If Hunter kills Target:
Target:
-1 Heart
Hunter:
+1 Heart
---
If Target kills Hunter:
Hunter:
-1 Heart
Target:
+1 Heart
---
No Heart transfers happen on normal days.
---
# Hunt Day Duration
Starts:
Beginning of Hunt Day
Ends:
Minecraft Midnight
Server Time 12:00 AM
Automatically.
---
# Hunt Day End
Plugin:
* Announces result
* Clears Target
* Clears Hunter
* Saves data
---
# Revival System
Eliminated players drop heads.
Head contains:
* UUID
* Player Name
* Revival Data
Saved permanently.
---
# Revival Ritual
Place player head.
Ritual begins.
Duration:
2 Minutes
---
# Revival Broadcast
Server announces:
Player Name
X Coordinate
Y Coordinate
Z Coordinate
Everyone can see location.
---
# Revival Effects
During ritual:
* Particles
* Sounds
* Countdown Messages
* BossBar (Optional)
---
# Successful Revival
If head survives:
Player revived.
Effects:
* Survival Mode
* 1 Heart Restored
* Elimination Removed
Broadcast success.
---
# Failed Revival
If head breaks:
* Ritual canceled
* Broadcast failure
* No revival
---
# Admin Commands
Permission:
lostsmp.admin
Commands:
/lostheart set [player/@a](mailto:player/@a)
/lostheart add [player/@a](mailto:player/@a)
/lostheart loss [player/@a](mailto:player/@a)
/lostheart get
/lost revive
/lost start
/lost stop
/lost reload
/lost time
/lost info
---
# Lost Info Command
Command:
/lost info
Displays:
Current Day
Current Cycle Length
Current Hunt Target
Current Hunter
Remaining Time
Server Status
---
# Data Storage
Store in YAML:
Player Hearts
Eliminated Players
Hunt Data
Current Cycle
Current Day
Target Data
Hunter Data
Revival Rituals
Placed Heads
Settings
Everything loads after restart.
---
# Optimization Requirements
* No memory leaks
* No async world access
* Paper API only
* Java 21
* Adventure API
* YAML persistence
* Efficient scheduler usage
* SMP-ready
* Production-ready
This plugin should feel like a complete custom SMP gamemode combining Lifesteal, Hunt SMP, Revival Mechanics, and Heart Economy into a single balanced survival experience.
Kodari can make mistakes. Review important code before using.
Files
No files in this session
Code