PROJECT: BLOOD SMP — COMPLETE MINECRAFT PLUGIN
Act as a senior Minecraft Java plugin developer, Paper API specialist, gameplay systems designer, and UI/GUI developer.
Create a complete, functional, production-ready Minecraft SMP plugin named BloodSMP for Minecraft Java Edition 1.21.11 using Paper.
The plugin must be built as a real Java project with clean source code, working mechanics, configuration files, permissions, persistent data storage, and detailed installation instructions.
- CORE CONCEPT
Create a unique Blood SMP experience in which every participating player receives exactly ONE exclusive blood type.
There must be 9 different blood types, inspired by supernatural abilities such as vampires, demons, and elemental bloodlines.
Every blood type must have:
- Its own unique active ability.
- A unique name, color, icon, and description.
- Its own blood charge system.
- Its own activation effects, sounds, and particles.
- Configurable ability duration, range, cooldown, and power.
- A maximum of 3 ability uses per fully charged cycle.
- Persistent blood ownership and saved charge data.
Important: Each blood type must be exclusive. Two different players must never own the same blood type at the same time.
If all 9 blood types are assigned, only 9 players can own them. Additional players must enter a waiting list until a blood type becomes available or an admin manually changes the allocation.
- THE 9 BLOOD TYPES
Implement the following nine unique bloodlines. The exact abilities and values must be configurable.
- Vampire Blood
- Ability: Blood Drain.
- Damages a targeted enemy and restores a configurable amount of the user's health.
- Play dark red particles and vampire-themed sounds.
- Must respect PvP settings and protection rules.
- Demon Blood
- Ability: Hellfire Burst.
- Creates a configurable area of fire-themed damage around the player.
- Uses crimson particles, flame effects, and an activation sound.
- Must not create permanent fire or destroy blocks by default.
- Dragon Blood
- Ability: Dragon Breath.
- Launches a directional fire or energy attack.
- Damage, range, particle effects, and projectile speed must be configurable.
- Shadow Blood
- Ability: Shadow Step.
- Teleports the player a short configurable distance in the direction they are facing.
- Must check for solid blocks, unsafe landing locations, world boundaries, and teleport restrictions.
- Frost Blood
- Ability: Frozen Domain.
- Slows nearby enemies for a configurable duration.
- Uses ice particles and frost-themed sound effects.
- Must not permanently freeze or destroy the environment.
- Thunder Blood
- Ability: Thunder Strike.
- Calls a lightning-themed strike on a valid target or location.
- Damage and range must be configurable.
- Use visual lightning by default without setting blocks on fire.
- Berserker Blood
- Ability: Blood Rage.
- Grants configurable Strength and Speed effects for a limited duration.
- Includes a red aura and activation effects.
- Toxic Blood
- Ability: Venom Burst.
- Applies configurable poison or another balanced debuff to enemies in a limited area.
- Must respect immunity, PvP, and safe-zone restrictions.
- Celestial Blood
- Ability: Divine Protection.
- Grants temporary damage resistance and a distinctive golden or white particle aura.
- Duration and protection strength must be configurable.
All nine abilities must be implemented separately. Do not create nine blood types that merely apply different-colored versions of the same ability.
- BLOOD CHARGE SYSTEM
Implement a complete blood charging and ability-use system.
Charging mechanics
- Players charge their assigned blood by killing eligible mobs or enemy players.
- Mob kills and player kills must provide configurable charge values.
- Player kills must have anti-farming protection.
- Repeated kills of the same player within a configurable period must not provide unlimited charge.
- Environmental deaths, suicides, invalid targets, and other ineligible kills must not award charge.
- Bosses and special mobs may provide configurable bonus charge.
- Show charge progress using an action bar, boss bar, or configurable combination.
Example configuration:
- Normal mob kill: 5 charge.
- Hostile mob kill: 10 charge.
- Eligible player kill: 20 charge.
- Required charge: 100.
These are default examples, not hardcoded values.
Fully charged cycle
When a player reaches 100% charge:
- Display a unique blood-awakening animation.
- Notify the player that their ability is ready.
- Set their available uses to 3.
- Allow exactly 3 successful ability activations.
- Every successful activation starts a configurable cooldown, defaulting to 30 seconds.
- Display the remaining cooldown and uses in the action bar or GUI.
- After all 3 uses are consumed, require the player to charge their blood again.
The cooldown must be configurable independently for each blood type.
Critical rules:
- A failed activation must not consume a use or start the cooldown.
- A successful activation consumes exactly one use.
- Cooldown must not reset by relogging, dying, switching worlds, or restarting the server.
- Prevent duplicate activations caused by repeated input events.
- Save charge, uses remaining, and cooldown expiration persistently.
- Administrators may configure whether death resets charge or remaining uses.
Provide a configurable activation method, such as a command, a designated item, or a configurable key-trigger mechanic supported by Minecraft's available server-side APIs. Never promise custom client keybinds without a client-side mod.
- EXCLUSIVE BLOOD ASSIGNMENT
On a player's first eligible join:
- Automatically assign exactly one available blood type.
- Ensure each blood type has a maximum of one owner.
- Save the assignment permanently.
- Display a dramatic blood-selection animation.
- Show the blood name, icon, description, and unique ability.
- Broadcast an optional announcement to the server.
- Save the owner-to-blood and blood-to-owner mappings.
- Never randomly reroll an existing player's blood after reconnecting or restarting the server.
If all blood types are occupied:
- Put new players in a persistent waiting list.
- Notify them that all blood types are currently occupied.
- Allow an administrator to assign, release, or transfer blood ownership safely.
Implement configurable assignment modes:
- RANDOM: randomly assign one available blood type.
- SEQUENTIAL: assign blood types in configured order.
- ADMIN_ONLY: wait for an administrator to assign the blood.
Prevent race conditions when multiple players join simultaneously.
- /bloodsmp START SYSTEM
Implement the main command:
"/bloodsmp start"
This command must start the SMP through a cinematic, configurable sequence.
Start sequence
- Validate that the command sender has the required permission.
- Verify that the SMP has not already started.
- Display a dramatic title such as BLOOD SMP.
- Play configurable countdown titles: 10, 5, 4, 3, 2, 1.
- Play configurable sounds and particles.
- Broadcast a server-wide announcement.
- Set the world border to 4000 × 4000 blocks by default.
- Center the border at the configured world coordinates.
- Ensure the border is applied to the correct world or configured list of worlds.
- Begin a 30-minute PvP grace period.
- Save the SMP state so a restart cannot accidentally start the event again.
The border must use the real Minecraft world-border API, not a visual-only simulation.
Make the following configurable:
- Border size: 4000 blocks by default.
- Border center X and Z.
- Border expansion duration.
- Countdown duration.
- Announcement messages.
- Sounds, titles, subtitles, and particles.
- Grace-period duration: 30 minutes by default.
- Worlds affected by the border.
- Whether "/bloodsmp start" can be executed again after a reset.
World border behavior
Use a 4000 × 4000 block area, meaning a 4000-block diameter, not a radius of 4000 blocks.
If expansion animation is enabled, configure the starting diameter and expansion duration. Ensure the final diameter is exactly 4000 blocks.
Grace period
During the grace period:
- Disable player-versus-player damage.
- Continue allowing normal mob combat and blood charging from eligible mobs.
- Show a countdown or remaining time to all players.
- Display a clear message when grace ends.
- Enable PvP automatically after the configured period.
- Persist the grace-period end timestamp across restarts.
- Prevent logout or restart exploits from bypassing the grace period.
Make the grace period independently configurable.
- COMMANDS
Implement the following commands and provide tab completion.
Player commands
- "/blood" — Show the player's blood type, charge, remaining uses, and ability status.
- "/blood info" — Display the current blood type's complete description.
- "/blood ability" — Activate the assigned ability if charged and available.
- "/bloodsmp status" — Show the SMP state, grace-period status, and world-border information.
- "/bloodsmp help" — Display available commands.
Admin commands
- "/bloodsmp start" — Start the SMP event.
- "/bloodsmp stop" — Stop event mechanics safely without deleting saved player data.
- "/bloodsmp reset" — Reset event state after explicit confirmation.
- "/bloodsmp reload" — Reload validated configuration files safely.
- "/bloodsmp admin info <player>" — Inspect a player's blood information.
- "/bloodsmp admin setblood <player> <blood>" — Assign a blood type.
- "/bloodsmp admin removeblood <player>" — Release a player's blood type.
- "/bloodsmp admin transfer <player> <target>" — Transfer blood ownership safely.
- "/bloodsmp admin charge <player> <amount>" — Add or remove charge.
- "/bloodsmp admin maxcharge <player>" — Fully charge a player's blood.
- "/bloodsmp admin resetplayer <player>" — Reset a player's charge and uses.
- "/bloodsmp admin grace <duration>" — Set or extend the grace period.
- "/bloodsmp admin pvp <on|off>" — Manually control PvP.
- "/bloodsmp admin border <size>" — Change the world-border diameter.
- "/bloodsmp admin announce <message>" — Broadcast an announcement.
- "/bloodsmp admin list" — Show all blood types, owners, and unassigned blood types.
Add sensible aliases where useful.
Every admin command must:
- Check explicit permissions.
- Validate arguments.
- Provide helpful error messages.
- Support tab completion.
- Avoid modifying data if validation fails.
- Log important administrative actions.
- ADMIN GUI
Create an optional inventory-based admin GUI that allows administrators to:
- View all nine blood types.
- See each blood's current owner.
- View unassigned blood types.
- Inspect player charge and remaining uses.
- Change blood ownership.
- Manage grace period and PvP.
- Inspect SMP status.
- Reload configuration safely.
Use clear item names, colored lore, configurable icons, and pagination where needed.
Never allow unauthorized players to execute admin GUI actions. Validate permissions again when handling inventory clicks.
- CONFIGURATION FILES
Provide well-organized configuration files, including:
"config.yml"
- General settings.
- Blood assignment mode.
- Charge requirements.
- Mob and player kill rewards.
- Cooldowns.
- Blood abilities.
- Grace period.
- World border.
- Animation settings.
- Messages.
- Sounds and particles.
- Death behavior.
- Anti-farming settings.
"bloods.yml"
- Names and descriptions of all nine blood types.
- Ability settings for each type.
- Colors and icons.
- Charge requirements.
- Uses per charge cycle.
- Cooldown and duration values.
- Damage, range, effects, and other ability-specific settings.
"messages.yml"
- All player-facing messages.
- Prefixes, colors, titles, and placeholders.
"permissions.yml" or documented permission nodes:
- Player permissions.
- Admin permissions.
- GUI permissions.
Every gameplay value must be configurable wherever technically reasonable. Validate configuration values and safely fall back to documented defaults if values are invalid.
- DATA STORAGE
Use SQLite or another suitable persistent storage solution for:
- Player UUIDs.
- Assigned blood types.
- Charge amounts.
- Remaining ability uses.
- Cooldown expiration timestamps.
- Kill anti-farming records.
- Waiting-list entries.
- SMP event status.
- Grace-period end time.
- Administrative audit records where appropriate.
Use UUIDs rather than player names as the primary player identity.
Ensure blood ownership remains exclusive after server restarts.
Use safe database operations, avoid blocking the main server thread with unnecessary database work, and handle missing or corrupted data gracefully.
- SECURITY AND COMPATIBILITY
- Target Paper 1.21.11.
- Use a Java version compatible with the target Paper release, normally Java 21 or the version explicitly required by that release.
- Use Gradle or Maven with a reproducible build.
- Use supported Paper APIs.
- Avoid NMS and version-fragile internals unless absolutely necessary.
- Do not require a client-side mod for core gameplay.
- Prevent ability spam, duplicated events, and unauthorized commands.
- Respect protected regions and configurable safe zones.
- Prevent abilities from bypassing PvP restrictions.
- Handle offline players and player disconnects safely.
- Prevent charge duplication from duplicate death events.
- Make all scheduled tasks cancellable during shutdown.
- Clean up temporary potion effects, particles, projectiles, and task references.
- Do not introduce unnecessary dependencies.
- VISUAL DESIGN
Use a dark-fantasy blood theme throughout the plugin.
Suggested visual style:
- Crimson red, dark purple, black, icy blue, and gold.
- Minecraft RGB text colors where supported.
- Blood-themed titles and subtitles.
- Unique activation particles and sounds for each blood.
- Clear action-bar indicators.
- Optional boss-bar charging progress.
- Clean, readable inventory GUIs.
- Configurable messages and effects.
All visual effects must be optimized for multiplayer performance.
- REQUIRED PROJECT OUTPUT
Deliver the complete working source project, not just example snippets or pseudocode.
Include:
- Complete Java source code.
- Build configuration.
- Plugin descriptor ("plugin.yml" or supported equivalent).
- Default configuration files.
- All nine ability implementations.
- Charge and cooldown managers.
- Exclusive blood-assignment manager.
- Persistent storage implementation.
- SMP lifecycle manager.
- World-border and grace-period managers.
- Commands, permissions, and tab completion.
- Optional admin GUI.
- README with installation, configuration, commands, and troubleshooting.
- Unit or integration tests for critical mechanics.
- Build instructions and the compiled plugin JAR.
The final plugin must compile successfully and be ready to install on a Paper 1.21.11 server.
- ACCEPTANCE TESTS
Before declaring the project complete, verify all of the following:
- All nine blood types have different working abilities.
- No two players can own the same blood type simultaneously.
- Players are assigned only one blood type.
- Killing eligible mobs and players increases charge correctly.
- Full charge grants exactly three ability uses.
- Each successful activation starts the configured cooldown.
- Failed activations do not consume uses or start cooldowns.
- Charge, uses, ownership, and cooldowns survive reconnects and restarts.
- "/bloodsmp start" starts the cinematic event correctly.
- The world border reaches exactly 4000 blocks in diameter.
- PvP is disabled during the 30-minute grace period and enabled automatically afterward.
- Admin commands and GUI actions enforce permissions.
- Configuration reloads do not duplicate tasks or corrupt player data.
- Simultaneous player joins cannot duplicate blood ownership.
- The project builds without compilation errors.
Do not claim any feature is complete unless it is implemented and tested. If a feature cannot be implemented exactly as specified, explain the limitation and provide the closest reliable alternative.
Start by presenting the project architecture and file tree, then implement the complete project, build the JAR, and provide the source project ZIP and installation instructions.
[Generation stopped]
No files in this session