superking6961
📎 1 file 24,200 chars
📄
pasted-code-1793455845972.txt
txt 687 lines
▶
# Minecraft Lifesteal SMP — Complete Master Build Specification

## 1. PROJECT GOAL

Build a complete, polished, playable Minecraft Lifesteal SMP plugin/mod project with custom hearts, unique powers, progression, PvP systems, events, GUIs, commands, and a custom resource pack.

The project must support:

- **Paper 1.21.11** as a server plugin.
- **Fabric** as a separate server-side mod for the same Minecraft version where the selected toolchain supports it.
- One shared gameplay core used by both platforms.
- Gradle with the complete Gradle Wrapper.
- A separate custom resource-pack ZIP.

Do not create a demonstration, mock-up, incomplete prototype, or collection of placeholder files. Implement the actual gameplay.

## 2. REQUIRED OUTPUT FILES

Deliver the complete source project, including:

- `gradlew`
- `gradlew.bat`
- `gradle/wrapper/gradle-wrapper.jar`
- `gradle/wrapper/gradle-wrapper.properties`
- `settings.gradle`
- Root `build.gradle`
- `common/build.gradle`
- `paper/build.gradle`
- `fabric/build.gradle`
- All Java source files
- All configuration files
- `plugin.yml` for Paper
- `fabric.mod.json` for Fabric
- Any required Fabric mixin configuration
- Complete resource-pack source files
- Compiled Paper plugin JAR
- Compiled Fabric mod JAR
- Resource-pack ZIP
- README with installation, configuration, commands, permissions, and build instructions

Expected build outputs:

`paper/build/libs/LifestealSMP-Paper.jar`

`fabric/build/libs/LifestealSMP-Fabric.jar`

`resource-pack/LifestealSMP-Resource-Pack.zip`

Do not rename one platform's JAR to pretend it works on the other platform.

## 3. PROJECT ARCHITECTURE

Use a Gradle multi-module project:

```text
LifestealSMP/
├── build.gradle
├── settings.gradle
├── gradlew
├── gradlew.bat
├── gradle/
│   └── wrapper/
├── common/
│   └── src/main/java/
├── paper/
│   └── src/main/java/
│   └── src/main/resources/plugin.yml
├── fabric/
│   └── src/main/java/
│   └── src/main/resources/fabric.mod.json
├── resource-pack/
├── config-examples/
└── README.md
```

### Shared core

Place the platform-independent gameplay logic in `common`.

It must contain the heart system, abilities, cooldown calculations, Lifesteal rules, progression, player data, event rules, ability definitions, and configuration models.

Create platform abstractions for players, entities, worlds, inventories, commands, effects, particles, sounds, scheduling, and other platform-dependent behaviour.

Implement real adapters for both Paper and Fabric.

Do not let Paper-only dependencies leak into Fabric or Fabric-only dependencies leak into Paper.

## 4. GRADLE WRAPPER AND BUILDING

The Gradle Wrapper is REQUIRED. Include both wrapper scripts and the complete wrapper directory.

The following must work from the project root:

Linux/macOS:

```bash
./gradlew build
./gradlew clean
./gradlew paper:build
./gradlew fabric:build
```

Windows:

```bat
gradlew.bat build
gradlew.bat clean
gradlew.bat paper:build
gradlew.bat fabric:build
```

The root `build` task must compile both platform implementations.

Use compatible Gradle, Java, Paper API, Fabric Loader, Fabric API, and Minecraft mappings for the chosen target versions. Configure the correct Java toolchain and document the required Java installation.

Do not claim the project builds successfully unless it has actually been compiled and checked. Fix compilation errors rather than leaving the user to repair the project.

## 5. PAPER IMPLEMENTATION

Create a genuine Paper 1.21.11 plugin.

Implement the required gameplay using the Paper API, including:

- Commands and permissions
- Player join/quit and death handling
- Damage and Lifesteal
- Heart changes and heart storage
- Ability activation and cooldowns
- Potion effects and custom damage
- Teleportation and safe movement
- Particles and sounds
- Boss bars, scoreboards, and inventory GUIs
- TAB/name visibility where supported
- Event handling and world isolation
- Persistent player data
- Configuration reloads
- Resource-pack compatibility

Generate a valid `plugin.yml` with the plugin's metadata, main class, API version, commands, and permissions.

## 6. FABRIC IMPLEMENTATION

Create a genuine Fabric server-side mod for the chosen compatible Minecraft version.

Use the appropriate Fabric Loader, Fabric API, server commands, events/hooks, player and entity APIs, networking where needed, and persistent data mechanisms.

Implement the same gameplay rules as the Paper version, adapting platform-specific behaviour where necessary.

Include a valid `fabric.mod.json` and all required configuration files.

The Fabric build must be independently installable on a compatible Fabric server. Clearly document any differences in functionality caused by platform limitations.

## 7. THIRTY CUSTOM HEARTS

Create **30 distinct custom hearts**. Each heart must have:

- A unique name and identity
- A unique passive ability
- Five unique active abilities
- Individual cooldowns
- Custom activation feedback
- Proper damage, movement, targeting, and effect handling
- A custom GUI icon and resource-pack assets
- A configurable balance profile
- Clear in-game descriptions
- Persistent player ownership and selection data

This means **180 distinct active abilities and 30 passives**.

Do not make all abilities simple reskins of the same attack. Each heart must have a distinctive playstyle. Create and implement the powers yourself; do not ask the user to invent the missing powers.

Use the following five fully designed hearts as the initial implementation specification. Create and implement the remaining 25 hearts to the same standard.

### HEART 1: MACE HEART

**Passive — Crushing Force:** Deal 10% additional melee damage when the player falls at least three blocks before landing a hit.

1. **Seismic Slam**
   - Cooldown: 14 seconds.
   - Deal 4 damage to valid enemies within four blocks and apply knockback.
   - Do not damage the user.

2. **Meteor Drop**
   - Cooldown: 22 seconds.
   - Launch the player upward by approximately five blocks.
   - If they land within five seconds, create a shockwave dealing 5 damage within three blocks.

3. **Staggering Blow**
   - Cooldown: 16 seconds.
   - The next melee hit within four seconds deals 2 additional damage and applies Slowness I for two seconds.

4. **Iron Impact**
   - Cooldown: 28 seconds.
   - For five seconds, reduce incoming damage by 25% and movement speed by 10%.

5. **Worldbreaker**
   - Cooldown: 75 seconds.
   - Charge for one second, then create a five-block shockwave dealing 6 damage and knockback.
   - Never permanently break terrain.

### HEART 2: SPEAR HEART

**Passive — Long Reach:** Increase the effective range of custom spear abilities by 10%.

1. **Piercing Thrust**
   - Cooldown: 8 seconds.
   - Strike the first valid enemy in a four-block line, dealing 4 damage and briefly slowing them.

2. **Spear Vault**
   - Cooldown: 14 seconds.
   - Launch the player forward and upward, granting Slow Falling for two seconds.

3. **Hunting Mark**
   - Cooldown: 20 seconds.
   - Mark the nearest valid enemy within 12 blocks for six seconds, showing tracking particles.

4. **Returning Spear**
   - Cooldown: 18 seconds.
   - Throw a spear-like projectile that deals 4 damage to its first valid target and returns to the user.

5. **Impaler's Line**
   - Cooldown: 65 seconds.
   - Charge for one second, then attack along a six-block line, dealing 5 damage to valid enemies.

### HEART 3: SHADOW HEART

**Passive — Umbral Veil:** After eight seconds out of combat, grant subtle shadow particles and a stealth visual effect.

1. **Shadow Step**
   - Cooldown: 10 seconds.
   - Teleport up to six blocks forward, checking for a safe destination first.

2. **Smoke Veil**
   - Cooldown: 24 seconds.
   - Grant invisibility and hide the user's name for four seconds.
   - Attacking ends the effect early.

3. **Decoy**
   - Cooldown: 22 seconds.
   - Create a stationary visual decoy for four seconds.
   - The decoy cannot attack, use inventory, or imitate the player's private data.

4. **Night Snare**
   - Cooldown: 18 seconds.
   - Place a six-second trap. The first valid enemy entering its three-block radius receives Slowness II for two seconds.

5. **Eclipse Shift**
   - Cooldown: 70 seconds.
   - Grant Speed II and 15% damage reduction for five seconds.
   - Attacking ends the effect early.

### HEART 4: INFERNO HEART

**Passive — Ember Soul:** Reduce incoming fire damage by 25%.

1. **Firebolt**
   - Cooldown: 7 seconds.
   - Launch a projectile dealing 3 damage and briefly igniting the target.

2. **Flame Dash**
   - Cooldown: 14 seconds.
   - Dash up to five blocks and deal 2 damage to valid enemies crossed along the path.

3. **Magma Ring**
   - Cooldown: 22 seconds.
   - Create a three-block-radius ring that deals 2 damage to each valid enemy once.

4. **Cinder Guard**
   - Cooldown: 28 seconds.
   - For five seconds, reduce incoming damage by 20% and deal 1 damage to attackers, with an internal cooldown.

5. **Inferno Burst**
   - Cooldown: 75 seconds.
   - Give a one-second warning, then create a fiery blast within five blocks, dealing 5 damage.
   - Do not create permanent fire or lava.

### HEART 5: FROST HEART

**Passive — Cold Resistance:** Reduce the duration of Slowness effects affecting the user by 25%.

1. **Ice Shard**
   - Cooldown: 7 seconds.
   - Fire a projectile dealing 3 damage and applying Slowness I for two seconds.

2. **Frost Slide**
   - Cooldown: 12 seconds.
   - Move the player forward up to five blocks, with collision and safety checks.

3. **Frozen Ground**
   - Cooldown: 20 seconds.
   - Create a temporary frost zone with a three-block radius for four seconds, applying Slowness I to valid enemies.

4. **Ice Barrier**
   - Cooldown: 28 seconds.
   - For four seconds, reduce incoming damage by 30% and movement speed by 15%.

5. **Absolute Zero**
   - Cooldown: 75 seconds.
   - Release a frost wave within five blocks, dealing 4 damage and applying Slowness II for three seconds.

### REMAINING 25 HEARTS

Design and implement five unique active abilities and one passive for each of the remaining hearts. Do not leave their powers for the user to create.

Use distinct themes such as lightning, wind, earth, ocean, blood, healing, gravity, time, void, celestial energy, nature, poison, storm, crystal, sound, spirit, beast, arcane magic, metal, solar energy, lunar energy, and other suitable concepts.

Choose the final heart roster carefully so the 30 hearts feel different rather than repetitive.

For every remaining heart, specify:

- Heart name and theme
- Passive effect
- Five active ability names
- Exact activation behaviour
- Damage and status effects
- Range and duration
- Cooldown
- Counterplay and limitations
- Particle and sound feedback
- Resource-pack icon
- Implementation in both platform adapters

All 180 active abilities and 30 passives must be real, implemented, and usable in-game.

## 8. ABILITY SYSTEM RULES

Build a reliable central ability system.

- Every ability has its own configurable cooldown.
- Show cooldown information in the GUI and action bar.
- Validate targets, range, line of sight, and player state.
- Prevent abilities from hitting the same target repeatedly every tick unless explicitly designed to do so.
- Use server-side validation; do not trust client requests.
- Prevent self-damage unless an ability explicitly requires it.
- Respect safe teleportation, world borders, and protected regions.
- Prevent abilities from bypassing event rules.
- Use temporary effects and clean them up correctly.
- Avoid permanent terrain damage.
- Prevent unintended stacking of defensive buffs.
- Define how abilities interact with armour, shields, resistance, invulnerability, and Lifesteal.
- Handle disconnects, deaths, reloads, and server restarts without leaving effects or tasks behind.

Treat one point of Minecraft damage as half a heart. Keep all numerical values configurable.

## 9. STARTING HEART ROULETTE

When a player first joins or runs `/start`, show an animated roulette GUI that randomly awards a starting heart.

- Default starting range: 10–20 hearts.
- Make the range configurable.
- Show the roulette animation and final result.
- Persist the result so relogging cannot reroll it.
- Prevent duplicate claims.
- Include a configurable administrator reset.
- Support the 30 custom heart types and their icons.

## 10. LIFESTEAL SYSTEM

Implement a complete Lifesteal system.

- Killing another player grants the configured number of hearts.
- A death removes the configured number of hearts.
- Heart gain and loss must respect configured minimums and maximums.
- Prevent duplicate processing of the same death event.
- Add anti-farming protections against repeated kills between the same players.
- Include configurable kill cooldowns, repeat-kill penalties, and exemptions.
- Persist heart counts across restarts.
- Provide administrator commands for inspecting and modifying hearts.
- Ensure both Paper and Fabric use the same core rules.

## 11. HEART-BASED STRENGTH

Implement configurable strength scaling based on the player's heart count.

- Define a clear scaling formula.
- Prevent extreme damage multiplication.
- Respect the intended balance between high-heart and low-heart players.
- Keep scaling separate from ability damage so effects are not accidentally multiplied twice.
- Make the formula configurable and document the defaults.

## 12. ARMOUR RESTRICTIONS

Diamond armour is the highest permitted armour tier.

- Netherite armour must not be obtainable through the custom gameplay systems.
- Prevent custom rewards, kits, events, and GUIs from granting Netherite armour.
- Provide configurable handling for existing Netherite armour.
- Document whether existing items are blocked, replaced, or left untouched.
- Do not destroy unrelated player items without a configured rule.

## 13. INVISIBILITY AND PLAYER IDENTITY

Implement appropriate invisibility and name-visibility behaviour.

- Support hiding the player's nametag during applicable abilities.
- Hide the player from TAB where the platform supports it.
- Restore visibility reliably when the effect ends.
- Ensure a player cannot permanently disappear by disconnecting, dying, or triggering an error.
- Keep administrator visibility controls available.
- Do not break team, spectator, or event visibility rules.

## 14. XP PROGRESSION

Create a progression system tied to configurable XP sources.

Include:

- XP from configured PvP achievements and activities.
- Level progression.
- Persistent player levels and XP.
- Unlocks and milestone rewards.
- GUI progress bars.
- Notifications for levels and rewards.
- Anti-exploit checks.
- Administrator commands to inspect and modify XP.

Do not reward repeated self-created or farmed actions in ways that can be exploited.

## 15. ENDFIGHT TOURNAMENT

Create a complete EndFight tournament system.

Include:

- Tournament creation and registration.
- Player joining and leaving rules.
- Configurable participant limits.
- Arena setup and validation.
- Countdown and announcements.
- Round management.
- Match progression and elimination.
- Winner detection.
- Rewards and leaderboards.
- Spectator handling.
- Disconnect handling.
- Full player-state restoration.

Provide commands for administrators to create, start, stop, and manage tournaments.

## 16. CAPTURE THE FLAG

Create a Capture the Flag game mode.

Include:

- Configurable teams.
- Configurable team spawn points.
- Flag locations.
- Flag pickup, carrying, dropping, and returning.
- Capture scoring.
- Match timer.
- Team score display.
- Respawn rules.
- Anti-exploit checks.
- Victory conditions.
- Configurable rewards.

Prevent abilities from carrying players or flags outside valid event areas.

## 17. PEACH PARADISE EVENT

Create a complete event named **Peach Paradise**.

Its mechanics must be configurable and clearly explained in the README.

Include:

- Event registration or entry.
- Arena validation.
- Start countdown.
- Event-specific objectives.
- Scoring and winner detection.
- Rewards.
- Spectator handling.
- Player restoration.
- Configurable messages and settings.

Do not leave this as just an arena name or a placeholder command.

## 18. THE FLOOR IS LAVA

Create a playable Floor Is Lava event.

Include:

- Arena setup.
- Player registration.
- Countdown.
- Configurable rising-lava or dangerous-floor mechanics.
- Player elimination rules.
- Safe-area handling.
- Last-player-standing victory detection.
- Rewards.
- Spectator mode.
- Event-specific ability restrictions.
- Cleanup after the event.

Do not permanently alter the original arena. Restore temporary blocks and state safely.

## 19. EVENT ISOLATION AND PLAYER RESTORATION

All events must isolate their gameplay from normal SMP progression.

Save relevant player state before entry, including:

- Inventory and equipment.
- XP and level.
- Health and food.
- Game mode.
- Location.
- Active effects.
- Relevant temporary data.

Restore the saved state on normal exit, elimination, disconnect, event shutdown, and server restart recovery where possible.

Use a reliable event-state system to prevent duplication, item loss, and unintended heart changes. Do not overwrite newer legitimate player progress when restoring snapshots.

## 20. CUSTOM GUIS

Create polished, consistent GUIs for:

- Heart selection and heart information.
- Ability descriptions and cooldowns.
- Player heart statistics.
- XP and level progression.
- Event registration and status.
- Tournament management.
- Capture the Flag teams and scores.
- Administrative controls.

Use clear names, descriptions, status indicators, and error messages.

The GUI must support vanilla fallback icons if the resource pack is not installed. Do not make the entire gameplay system dependent on custom textures.

## 21. COMMANDS

Implement a documented command system. Use permissions and tab completion.

### Main commands

- `/start` — claim the starting-heart roulette if eligible.
- `/smp status` — display server system status.
- `/smp lock` — lock the relevant SMP gameplay systems.
- `/smp unlock` — unlock the relevant SMP gameplay systems.
- `/smp reload` — reload supported configuration files safely.

### Heart commands

Include commands for viewing heart details, checking player hearts, administering heart counts, and resetting starting-heart claims.

Suggested structure:

- `/heart`
- `/heart info`
- `/heart player `
- `/heart give  `
- `/heart remove  `
- `/heart set  `
- `/heart reset `

### Ability commands

Include commands to inspect abilities, view cooldowns, enable or disable specific abilities for testing, and manage player access where appropriate.

### Event commands

Provide complete command groups for EndFight, Capture the Flag, Peach Paradise, and Floor Is Lava.

Each event should support the necessary setup, start, stop, status, join, leave, and administrator operations.

Validate all command arguments, permissions, player names, and event states. Do not expose administrative commands to ordinary players.

## 22. CUSTOM RESOURCE PACK

Create a complete resource pack as a separate ZIP.

Include:

- Custom heart icons.
- Heart selection GUI icons.
- Ability icons.
- Custom item textures.
- Ability state indicators.
- Cooldown visuals where supported.
- Event-related visual assets.
- Custom sounds where appropriate.
- Correct pack metadata for the target Minecraft version.

Design a consistent visual theme with polished icons and clear distinctions between the 30 hearts.

Use vanilla item overrides or other appropriate resource-pack techniques. Do not assume a resource pack can add new server-side gameplay logic by itself.

If a custom item needs to be identified reliably, use server-side item data or another platform-appropriate mechanism rather than relying solely on its displayed name or texture.

The resource pack must be optional for basic gameplay. Document how to install it and how to configure a server resource-pack URL and hash if desired.

## 23. CONFIGURATION

Provide well-organised configuration files for:

- General SMP settings.
- Lifesteal rules.
- Starting roulette.
- Heart limits.
- Heart and ability values.
- Cooldowns.
- Damage and status effects.
- XP and progression.
- Armour restrictions.
- Anti-farming.
- Event settings.
- Arenas and spawn points.
- Rewards.
- Messages.
- Permissions-related settings.
- Resource-pack options.

Changing supported settings should not require editing Java source code.

Validate configuration values and display helpful errors for invalid settings. Reloading must not duplicate listeners, tasks, or event instances.

## 24. DATA STORAGE

Persist player data reliably.

Store the data necessary for:

- Heart counts and selected heart.
- Starting roulette claim.
- XP and level.
- Ability-related progression.
- Tournament statistics.
- Relevant event statistics.
- Any persistent cooldowns that should survive a restart.

Use a reliable storage system such as SQLite or another appropriate persistent backend. Handle missing, corrupted, or outdated data gracefully.

Never rely solely on in-memory data for information that must survive restarts.

## 25. TESTING AND QUALITY CONTROL

Before delivery, check:

- The Gradle Wrapper works on a clean project.
- `./gradlew build` builds both platform modules.
- `gradlew.bat build` is documented for Windows.
- Paper and Fabric artifacts are generated independently.
- Both artifacts have valid platform metadata.
- The plugin/mod loads on the supported target versions.
- All 30 hearts exist.
- All 180 active abilities are implemented.
- All 30 passive abilities work.
- Cooldowns behave correctly.
- Damage and Lifesteal do not process the same event twice.
- Player data persists after restarting.
- Starting roulette cannot be exploited.
- Events correctly isolate and restore player state.
- Temporary effects and tasks are cleaned up.
- Resource-pack assets are included in the ZIP.
- Missing resource packs do not disable basic gameplay.
- Commands and permissions work.
- No critical feature is represented by a TODO or placeholder.

Where runtime testing cannot be performed, clearly state what was compiled, what was tested, and what still needs verification. Do not claim unperformed tests passed.

## 26. FINAL DELIVERY REQUIREMENTS

Deliver a complete, usable project containing:

1. A working Gradle Wrapper.
2. A shared common gameplay module.
3. A real Paper 1.21.11 plugin.
4. A real compatible Fabric server-side mod.
5. Thirty fully designed custom hearts.
6. One passive and five active abilities for each heart.
7. All 180 active abilities implemented.
8. Lifesteal, strength scaling, and progression.
9. Starting-heart roulette.
10. EndFight, Capture the Flag, Peach Paradise, and Floor Is Lava.
11. GUI, commands, permissions, and configuration.
12. Persistent player data.
13. A complete custom resource-pack ZIP.
14. Installation and build instructions.
15. No fake compatibility claims.
16. No empty classes, placeholder abilities, or TODO-only core features.

**The most important requirement:** Do not stop after creating the project structure or the first five hearts. Finish designing and implementing every remaining heart, all abilities, both platform adapters, the resource pack, and the gameplay systems. The finished project must be a real buildable implementation, not merely a description of what could be built.
Kodari AI
KodariOct 31 at 2:11 pm 1
LifestealSMP
A comprehensive Lifesteal SMP plugin/mod for Paper 1.21.11 and Fabric, featuring 30 unique hearts with 180 active abilities and 30 passives. Includes starting-heart roulette, heart-based strength scaling, XP progression, and four events: EndFight tournament, Capture the Flag, Peach Paradise, and Floor Is Lava. Features custom GUIs, persistent SQLite storage, configurable Lifesteal rules with anti-farming, armour restrictions, and a complete custom resource pack. Built as a Gradle multi-module project with a shared common core and platform-specific adapters for Paper and Fabric.

I can’t honestly deliver this as a complete, verified project in one generation. It requires two platform implementations, 180 distinct usable abilities, four event systems with reliable state restoration, persistent storage, and binary deliverables such as the wrapper JAR and resource-pack ZIP. Creating a smaller scaffold would violate your requirement not to leave placeholders or present an incomplete prototype as finished.

No files were created. The reliable path is to build and verify it in stages, starting with the Paper 1.21.11 gameplay core, then adding the remaining systems and a separately verified Fabric adapter.

Kodari can make mistakes. Review important code before using.
Files

No files in this session

Code