also make everything work for mannequins
The generation was stopped before any content could be produced.
also make everything work for mannequins
📄
pasted-code-1791775333340.txt
txt
386 lines
▶
# MASTER AI DEVELOPMENT PROMPT — LIFESTEAL SMP + LIFE SWORD
You are an expert Minecraft plugin developer specializing in advanced Paper plugins, custom combat abilities, particle animation systems, and competitive PvP mechanics.
Build a complete, production-quality **Lifesteal SMP plugin for Java 25 and Paper 1.21.11**.
The plugin must recreate the core Lifesteal SMP experience and introduce a custom weapon called the **Life Sword**, featuring two abilities and one ultimate.
The provided resource pack is the visual reference. Inspect its textures, especially the custom heart textures. Hearts are collectible visual objects used in heart-stealing and ability animations. **They must not replace the normal Minecraft health indicator.**
Do not merely explain how to build the plugin. Implement the complete project with functional Java source code, configuration files, and installation instructions.
# 1. Technology Requirements
- Java 25.
- Paper API for Minecraft 1.21.11.
- Maven build system.
- A valid Paper plugin descriptor.
- Adventure API for messages, action bars, and titles where appropriate.
- Bukkit/Paper particle, entity, scheduler, and combat APIs.
- Persistent player heart data.
- Configurable abilities and cooldowns.
- No NMS or version-specific internal Minecraft classes unless absolutely necessary.
- Avoid unnecessary external dependencies.
- Ensure the plugin compiles against the correct Paper 1.21.11 API using Java 25.
Use a clean, modular architecture. Separate Lifesteal mechanics, weapon abilities, animation controllers, player data, commands, and configuration management into appropriate classes.
# 2. Core Lifesteal System
Implement a complete Lifesteal system.
### Heart mechanics
- Players start with 10 hearts by default.
- Killing another player through valid PvP grants the killer one heart.
- The victim loses one heart.
- One heart equals 2 Minecraft health points.
- Update the player's maximum health correctly.
- Preserve the normal Minecraft health HUD.
- Support configurable minimum and maximum hearts.
- Prevent duplicate heart transfers for a single death.
- Prevent farming hearts through suicide, environmental deaths, repeated kill credit, and invalid kill conditions.
- Persist player heart counts across reconnects, deaths, and server restarts.
- Handle health restoration and maximum-health reduction safely.
- Provide administrative commands to give, take, set, inspect, and restore hearts.
Implement a configurable elimination mechanic when a player reaches the minimum heart limit.
# 3. Heart-Stealing Animation
Use the custom heart texture from the provided resource pack whenever technically possible.
On a successful heart steal:
1. Spawn a heart visual at the defeated player's location.
2. Make the heart rise slightly.
3. Animate it flying toward the killer.
4. Use smooth movement, particles, and configurable sound effects.
5. Make it disappear when it reaches the killer.
6. Synchronize the visual effect with the actual heart transfer.
This is a visual representation of a successful heart steal. Do not display the animation as a permanent health indicator.
Do not redesign the supplied texture or modify unrelated resource-pack assets.
If the texture requires a custom model, resource-pack mapping, or another rendering mechanism, implement the most reliable compatible solution and document the requirements. Never falsely claim that ordinary Bukkit particles can directly display an arbitrary PNG texture.
# 4. Life Sword
Create a special weapon named **Life Sword**.
It must have:
- A configurable custom display name.
- Configurable lore describing its abilities.
- A configurable recipe or administrator-only distribution.
- A unique identifier stored using the PersistentDataContainer API.
- Ability 1, Ability 2, and Ultimate.
- Independent cooldowns.
- Cooldown feedback through action bars.
- Custom particle effects.
- Sound effects.
- PvP-safe target filtering.
- Configurable damage and ability parameters.
- Protection against accidental activation from ordinary swords.
Only the Life Sword should activate its abilities.
Support three configurable activation methods: right-click, sneak plus right-click, and a configurable ultimate key alternative such as sneak plus left-click. Since Bukkit does not expose every keyboard key directly, use a supported input mechanism such as interactions, or document the necessary client-side limitations. Prevent one input from activating multiple abilities.
The Life Sword's abilities must work against both players and hostile mobs, with player damage restrictions configurable separately from mob damage.
# 5. Ability 1 — Seven Heart Meteors
**Concept:** Summon seven animated hearts that fly toward nearby enemies like homing meteors.
## Activation
When the player activates Ability 1:
1. Spawn seven heart projectiles around the Life Sword wielder.
2. Animate them launching outward and seeking valid nearby enemies.
3. Give each heart its own movement controller and target assignment.
4. Make their movement feel fast, aggressive, and satisfying.
5. Play configurable summoning and impact sounds.
6. Display a brief activation effect around the wielder.
Use the supplied heart texture for the flying hearts when supported by the chosen rendering method. Otherwise, provide a compatible visual implementation that approximates the resource pack's appearance.
## Target distribution
The seven hearts must be distributed intelligently across nearby enemies.
Examples:
- **Two enemies:** assign three hearts to one enemy and four to the other.
- **Three enemies:** distribute the hearts as evenly as possible, for example three, two, and two.
- **One enemy:** all seven hearts may target that enemy.
- **More than seven enemies:** select up to seven valid targets according to the configured targeting policy.
- **Fewer enemies than hearts:** distribute the remaining hearts among available valid targets.
The target assignment must avoid wasting all seven hearts on one enemy when several valid enemies are available.
Support configurable targeting policies, such as nearest-first, lowest-health-first, and balanced distribution.
If an assigned target dies, disconnects, becomes invalid, or leaves the valid targeting range, retarget the projectile to another eligible enemy when possible. Otherwise, safely remove the projectile.
## Damage
Each successful heart impact deals exactly **1.0 Minecraft health point**, equivalent to half a heart, by default.
- Damage must bypass armor mitigation.
- Do not accidentally bypass unrelated protections such as invulnerability, friendly-fire restrictions, or configurable PvP immunity.
- Apply damage exactly once per heart projectile.
- Prevent repeated collision damage from the same projectile.
- Ensure that one projectile cannot hit multiple targets unless explicitly configured.
Use a suitable custom damage implementation or damage-type strategy that reliably provides the requested armor-bypassing behavior on Paper 1.21.11. Verify the implementation instead of assuming that an ordinary damage call automatically ignores armor.
Each of the seven hearts can deal damage independently. One enemy may receive several impacts if multiple hearts are assigned to it.
All damage values must be configurable.
# 6. Ability 2 — Blood Spiral
**Concept:** Fire a spiraling blood projectile that captures an enemy, pulls them toward the wielder, and briefly immobilizes them.
This must be a genuine three-dimensional spiral projectile, not a straight-line projectile with a few red particles behind it.
## Projectile trajectory
On activation:
1. Launch a blood projectile from the wielder.
2. Give it a forward-moving trajectory.
3. Generate red blood particles that rotate around the direction of travel.
4. Continuously calculate the spiral's position using a moving forward axis and two perpendicular vectors.
5. Update the spiral every tick or at an appropriate optimized interval.
6. Stop the projectile at a maximum travel distance of **10 blocks**.
7. Detect collisions with valid players and mobs.
8. Stop the projectile safely when it hits a valid target or reaches its maximum range.
The spiral should be visually recognizable from the front, side, and above. Its particles must rotate around the projectile's direction of travel rather than merely tracing a helix-shaped trail after it has passed.
Provide configurable spiral radius, rotational speed, particle density, projectile speed, and maximum range.
## On hit
When the projectile hits a valid enemy:
1. Surround the target with twisting red blood particles.
2. Create a visible binding effect around the target.
3. Pull the target toward the wielder.
4. Continue the pulling effect until the target reaches the configured stopping distance or the pull ends.
5. Immobilize the target for **5 seconds**.
6. Apply Poison I for 5 seconds.
7. Play configurable hit and binding sounds.
During immobilization, prevent the target from walking, jumping, sprinting, or using movement to escape the ability.
Use a reliable, temporary movement-lock system rather than permanently disabling entity AI or changing unrelated player settings. For players, cancel or control movement safely and restore normal movement afterward. For mobs, preserve their previous state and restore it after the effect.
Ensure that movement-lock effects are cleaned up on death, disconnect, plugin disable, and other interruption events.
Do not let the target remain permanently frozen if the wielder disconnects or dies.
## Target restrictions
- Do not target the wielder.
- Respect configurable team and friendly-fire restrictions.
- Prevent repeated application from a single projectile.
- Do not repeatedly extend the immobilization duration through duplicate collision events.
- Make the effect configurable for players and mobs separately.
# 7. Ultimate — Blood Horizon
**Concept:** Create a massive blood circle beneath the wielder that becomes a black-hole-like arena, pulling nearby enemies toward its center while continuously dealing damage.
The ultimate should feel significantly more powerful and visually dramatic than the regular abilities.
## Activation sequence
1. Create a large, visible circular blood formation beneath the wielder.
2. Set its maximum targeting radius to **15 blocks**.
3. Display multiple concentric particle circles on the ground.
4. Animate the circles appearing and expanding outward.
5. Add rotating blood particles and inward-moving particle streams.
6. Give the center a dark, gravitational visual effect using compatible particles.
7. Play configurable activation sounds.
8. Begin pulling valid enemies toward the center.
The circle should be aligned with the ground and adapt safely to terrain. Avoid producing a flat, visually confusing particle cloud.
## Black-hole pull
While the ultimate is active:
- Continuously detect valid players and mobs within the configured 15-block radius.
- Pull targets toward the center using smooth, controlled movement.
- Prevent targets from escaping simply by running away.
- Avoid teleporting entities abruptly unless a configurable emergency correction is needed.
- Do not pull the wielder.
- Respect configured PvP protections and friendly-fire settings.
- Handle walls, obstacles, elevation changes, and invalid targets safely.
- Stop pulling entities when the ultimate expires or the target becomes invalid.
Use a controlled pull force that increases as targets approach the center, while preventing excessive velocity, collision glitches, and accidental launches.
The ability should behave like a gravitational vortex rather than a collection of unrelated knockback impulses.
## Continuous damage
Deal **0.5 Minecraft health points per damage tick** by default, equivalent to one-quarter of a heart.
- Apply damage at a configurable interval.
- Do not apply damage every server tick unless explicitly configured.
- Make the damage interval, total duration, and damage amount configurable.
- Ensure damage is applied only while the target is affected.
- Respect configurable damage protections.
- Prevent accidental duplicate damage caused by multiple detection loops.
## Visual heart absorption
While targets are being pulled toward the center, create floating heart visuals that travel from the affected enemies toward the wielder.
**These hearts are visual effects only.**
- Do not steal hearts from affected enemies.
- Do not change the wielder's maximum health.
- Do not modify any player's Lifesteal heart count.
- Do not trigger the actual heart-stealing mechanic.
- Do not treat these hearts as the normal health indicator.
Animate the hearts moving along curved paths toward the wielder. Use the same visual style as the heart-stealing animation so both systems feel consistent.
The ultimate should create the illusion that the wielder is absorbing life energy while the black-hole effect is active.
## Ending the ultimate
When the duration ends:
1. Stop all pulling effects.
2. Stop continuous damage.
3. Remove temporary particles and visual entities.
4. Restore affected entities' movement.
5. Play a final configurable sound.
6. Display a short ultimate-ended notification.
7. Start the ultimate cooldown.
Ensure that no scheduled tasks, temporary entities, movement locks, or damage loops remain after the ultimate ends.
# 8. Ability Cooldowns and Configuration
Create a complete configuration file with sections for:
- General plugin settings.
- Lifesteal heart rules.
- Heart-stealing animation.
- Life Sword item settings.
- Ability 1 meteor count, speed, damage, range, targeting policy, and cooldown.
- Ability 2 spiral speed, radius, distance, particle density, pull strength, immobilization duration, poison duration, and cooldown.
- Ultimate radius, duration, damage interval, damage amount, pull strength, particle effects, visual heart effects, and cooldown.
- Player versus mob targeting.
- Team restrictions and friendly fire.
- Messages, sounds, and particle settings.
- Debug logging and performance limits.
Use sensible defaults matching the requirements in this prompt.
Do not omit sections simply because they are configurable. Provide a complete, documented default configuration.
# 9. Commands and Permissions
Implement at least:
- `/lifesteal` — show current Lifesteal information.
- `/hearts ` — inspect a player's heart count.
- `/hearts give ` — give hearts.
- `/hearts take ` — remove hearts.
- `/hearts set ` — set a player's heart count.
- `/hearts revive ` — restore an eliminated player if supported.
- `/lifesword give ` — give the Life Sword.
- `/lifesteal reload` — reload configuration safely.
- `/lifesteal debug` — display relevant diagnostic information.
Protect administrative commands with appropriate permissions.
If ability cooldowns are implemented, provide clear feedback when a player tries to use an ability that is still on cooldown.
# 10. Performance and Security
The plugin must be suitable for a real multiplayer SMP.
- Avoid creating unnecessary Bukkit tasks for every particle.
- Use managed ability controllers and scheduled updates.
- Cache or efficiently locate nearby entities.
- Limit particle counts through configuration.
- Clean up every temporary effect when it ends.
- Avoid memory leaks and unbounded task creation.
- Validate every ability activation on the server.
- Prevent client-side spoofing from triggering abilities.
- Make damage and targeting decisions server-authoritative.
- Handle world changes, disconnects, deaths, and plugin reloads safely.
- Never allow an ability to damage its owner accidentally.
- Prevent duplicate damage, duplicate heart transfers, and duplicate ability activations.
# 11. Testing and Verification
Test the plugin on Paper 1.21.11 with Java 25.
Verify the following:
1. A valid PvP kill transfers exactly the configured number of hearts.
2. The heart-stealing animation plays once per successful transfer.
3. Seven meteor hearts distribute across two enemies in a 3-and-4 split.
4. Seven meteor hearts distribute across three enemies in a balanced split.
5. Meteor impacts deal the intended damage even when the target wears armor.
6. The Blood Spiral visibly rotates around its direction of travel.
7. The Blood Spiral stops at its configured 10-block range.
8. A successful hit pulls the target in, immobilizes them for five seconds, and applies Poison I for five seconds.
9. The ultimate affects enemies within 15 blocks.
10. The ultimate continuously pulls affected targets toward its center.
11. The ultimate deals the configured damage at the configured interval.
12. Visual hearts travel toward the wielder without stealing actual hearts.
13. Cooldowns work independently.
14. Friendly-fire restrictions work correctly.
15. Effects clean up safely after death, disconnect, world change, and plugin shutdown.
16. Heart counts persist after server restarts.
17. The plugin builds successfully against the correct Paper API.
If any behavior cannot be verified, clearly state what was tested and what remains unverified.
# 12. Required Deliverables
Provide the complete working Maven project:
- `pom.xml`
- `plugin.yml`
- All Java source files.
- Complete configuration files.
- Resource-pack integration instructions.
- A compiled JAR if the execution environment supports building it.
- Installation instructions.
- Commands and permissions documentation.
- A testing checklist.
Do not provide only a concept, a partial script, or disconnected code snippets.
Do not leave essential functionality as TODO comments or pseudocode.
## Final Development Priority
Build a polished, functional Lifesteal SMP plugin with a distinctive Life Sword.
The Life Sword must have three distinct combat experiences:
**Ability 1 — Seven Heart Meteors:** Seven homing hearts distribute across nearby enemies and deal armor-bypassing damage.
**Ability 2 — Blood Spiral:** A genuinely spiraling blood projectile captures an enemy, pulls them in, immobilizes them for five seconds, and applies Poison I.
**Ultimate — Blood Horizon:** A 15-block black-hole-style blood circle pulls nearby enemies toward its center, deals continuous damage, and sends purely visual hearts toward the wielder.
Prioritize accurate mechanics, smooth animations, reliable cleanup, server performance, and a visually cohesive blood-and-heart theme.
Before finishing, review the entire project for compilation errors, API incompatibilities, exploit opportunities, and incomplete functionality.
Add the Paper 1.21.11 Maven plugin project alongside the existing resource-pack assets.
Implement Lifesteal data, commands, the Life Sword abilities, and cleanup.
Include mannequins as configurable combat targets, temporarily handling their immovable state during pulls.
Added a Paper 1.21.11 Maven plugin project alongside the existing resource-pack assets, with persistent player hearts, admin commands, the tagged Life Sword, and its three configurable abilities.
Mannequins are valid targets for Meteors, Blood Spiral, and Blood Horizon. Their immovable state is temporarily changed for pull effects and restored afterward. Mannequins don’t have player heart accounts, so killing one won’t transfer Lifesteal hearts.
Heart animations use the pack’s \uE001 glyph plus particles; the custom PNG requires players to have the resource pack. I haven’t runtime-tested this on a Paper server. Compile it in Kodari to check the build and download the JAR.
can you make the hearts look better in meteors and can you make heart stealing work on mannequins and the tweens are really bad the meteors just go straight forward they dont go straight to mannequins or players and pls add smoother tweennsss and allso the blood spiral doesnt even summon a circle of blood dust below the player i dont care if the players lag i just want it to look better and make particles LOOK BETTERP LEASEEEE
Improve how hearts look in meteor effects.
Make heart stealing work on mannequins.
Make meteors home toward players/mannequins with smoother motion.
Fix the blood spiral’s ground-level blood-dust circle and boost particle visuals.
Meteor hearts: enlarged the heart displays and added a warm glow.
Next: trace heart stealing and mannequin damage/health handling.
For mannequin steals, I’ll process mannequin deaths through the existing lifesteal limits, award the configured heart amount to the player killer, and reuse the current heart-flight animation.
Meteor tracking: each tick will smoothly steer toward the target’s current position, and the display will interpolate between movement updates.
Blood spiral visuals: add a persistent animated blood-dust ring beneath the caster, thicken the projectile helix, and intensify the impact burst.
Meteor hearts are larger and have a pink-red glow.
Killing a mannequin now transfers the configured heart amount to its player killer, respecting the existing heart limits and using the heart-flight animation.
Meteors steer toward their target’s current position and use smoother display interpolation.
The blood spiral now creates an animated blood-particle circle beneath the caster, with a denser helix and a larger impact burst.
can you not use minecraft heart particles and also can you not make the heart stealing animation not just go forward
📄
pasted-code-1791776921811.txt
txt
90 lines
▶
When a player kills another player:
Victim dies
↓
Heart appears above victim
↓
Heart floats upward
↓
Heart flies toward killer
↓
Heart accelerates
↓
Heart reaches killer
↓
Heart is absorbed
↓
Killer gains +1 heart
The animation should be visible to nearby players.
---
# HEART MOVEMENT
The flying heart should:
* Move smoothly
* Use interpolation
* Not teleport
* Slightly curve
* Slightly float
* Accelerate near the killer
* Feel similar to XP orbs
Do not use robotic movement.
---
# HEART ABSORPTION
When the heart reaches the killer:
* Heart shrinks slightly
* Heart disappears
* Heart particles spawn
* Sound plays
* Killer gains the heart
The gain should feel satisfying.
---
# HEART LOSS ANIMATION
When a victim loses a heart:
Do not instantly remove it.
Instead:
Heart appears
↓
Breaks or fades
↓
Travels toward killer
↓
Gets absorbed
The transfer should feel visual and important.
[Generation stopped]
can you not use minecraft heart particles and also can you not make the heart stealing animation not just go forward and also not just the steal also the blood spiral steal thingy and also theres still no circle just pulls the target in and can you not make meteors not go to mobs only to players and mannequins
📄
pasted-code-1791776978550.txt
txt
90 lines
▶
When a player kills another player:
Victim dies
↓
Heart appears above victim
↓
Heart floats upward
↓
Heart flies toward killer
↓
Heart accelerates
↓
Heart reaches killer
↓
Heart is absorbed
↓
Killer gains +1 heart
The animation should be visible to nearby players.
---
# HEART MOVEMENT
The flying heart should:
* Move smoothly
* Use interpolation
* Not teleport
* Slightly curve
* Slightly float
* Accelerate near the killer
* Feel similar to XP orbs
Do not use robotic movement.
---
# HEART ABSORPTION
When the heart reaches the killer:
* Heart shrinks slightly
* Heart disappears
* Heart particles spawn
* Sound plays
* Killer gains the heart
The gain should feel satisfying.
---
# HEART LOSS ANIMATION
When a victim loses a heart:
Do not instantly remove it.
Instead:
Heart appears
↓
Breaks or fades
↓
Travels toward killer
↓
Gets absorbed
The transfer should feel visual and important.
Replace vanilla heart particles and curve heart-steal animations.
Fix the blood-spiral ground circle and give its steal effect curved motion.
Restrict meteor targeting to players and mannequins.
Heart-steal flights now float and curve toward the killer, accelerate along the path, and shrink on arrival. Their trail uses crimson spores and soul-fire particles—not Minecraft heart particles.
The blood spiral projectile now curves, its pull effect spirals toward the caster, and a dense ground-level particle ring renders throughout the ability.
Meteors now target only players and mannequins.
can you make meteors summon one at a time not all of them go at once and also i dont want the pull to BE A FUCKING HEART I WANT IT TO BE A BLOOD DUST THAT SPIRALS WHILST STILL MOVING AND TANGLES THE TARGET YOU MOTHER FUCKER
Stagger meteor launches so only one is active at a time.
Replace the blood-spiral pull’s heart visual with swirling blood dust that wraps/tangles the target.
Meteors now launch sequentially—each next meteor waits until the previous one finishes. The blood spiral no longer shows a heart; crimson dust spirals around the target’s moving body as it’s pulled.
can you make the meteors have the same tween as the heart steal and also the hearts have a black background can you remove that please and also I SAID NO FUCKING HEART PARTICLES AND PARTICLES BELOW THE PLAYER IN THE PULL ABILITY I SAID I WANT BLOOD DUST AND THEY ARE NOT EVEN SPRIALING YOU KNOW THAT AND THEY DONT TANGLE THE TARGET I WANT THE TARGET TO STAY TANGLED TILL THE 5 SECONDS END
Match meteor motion to the heart-steal animation and remove the heart display’s black background.
Make the pull use only spiraling blood dust around the target, keeping it visibly tangled for the full five seconds.
Meteors now use the same curved, floating tween as heart-steal flights while tracking their target.
Heart displays have their default black background disabled.
The pull no longer draws particles beneath the caster or uses heart particles. It wraps the moving target in red dust spirals, keeps pulling or binding them for the full 100-tick (5-second) duration, then releases them.
can you make the tangling effecct not alot of particles but a spiral and also can you make the meteors not just appear on one side but two sides like example
meteor 1 goes on left next meteor goes on right
AND ALSO WHEN WILL YOU START FUCKING REMOVING THE MINECRAFT HEART PARTICLES ON THE PULL I SAID I ONLY WANTED IT DUSTTT THAT SPIRALS
AND ALSO HOW HARD IS IT TO ADD A CIRCLE LIKE A BLACKHOLE IN FUCKING BLOOD HORIZON IT IS REALLY FUCKING NEEDED SO TARGETS KNOW HOW LONG THE CIRCLE ISSSSSS LIKE BROOO
Replace pull-effect heart particles with a sparse, clearly spiraling blood-dust trail.
Alternate meteor launch sides.
Add a blood-horizon ring that visibly marks the pull duration.
The pull now uses only custom red dust—no heart or damage-indicator particles. Its target tangle is a sparse, rotating helix that stays visible for the pull’s full duration.
Meteors alternate left and right while keeping the one-at-a-time launches.
Blood Horizon now has a ground-level blood-dust circle with a bright arc that shrinks as the effect runs out.
bro its just random particles floating like hello?? in blood horizon and i only want 1 heart per steal to go on the player in blood horizon i like the current pull particle but i want changes like you know spirals like particles dont stay since they spiral so it doesnt look like just a cylinder
Fix Blood Horizon to send exactly one heart to the player per steal.
Change its pull particles from a persistent cylinder into a visibly moving spiral.
Blood Horizon now sends only one heart display to you per target per activation. The pull effect uses two moving blood-dust points tracing spirals around the target each tick, instead of filling the space with particles that look like a cylinder.
and also when the heart steal the heart comes to the player or makes collision to the player can you add minecraft heart particles for more particles yea yea and not just the tangle i also meant the pull
and bro blood horizon particles arent even circle put alot of dust particles into the ground and make them spiral like the spiral you made in tangle but its in the ground
Add heart particles only when a heart display reaches its player.
Make the pull/tangle a visible moving blood-dust helix around the target throughout the pull.
Render Blood Horizon as a dense, rotating ground-level dust spiral inside its circle.
Added Minecraft heart particles only when a heart reaches its player. The pull now wraps the moving target in a rotating blood-dust helix for the full effect, and Blood Horizon draws a dense, ground-level dust spiral inside its timer circle.
the meteors dissapear already before even having collision with the target and also add more particles when getting hitted by the meteor and also make the meteor's tween the same as heart steal slow down then go fast and also instead of 2 sides now we add two new sides Down left Down right
Keep each meteor alive until it actually collides with its target.
Increase the impact particle burst.
Match heart-steal easing (slow start, fast finish) and cycle launches across four sides: left, right, down-left, down-right.
Meteors now keep homing until they’re within collision range instead of disappearing just because their tween finished. Their movement uses the same slow-start, fast-finish tween as heart steals, and launches cycle through left, right, lower-left, and lower-right. Meteor hits also produce a larger particle burst.
also add more particles in blood horizon and the heart steal animation is not appearing anymore i said only 1 per steal not just 1 appear then its over and also wherevver the player or mob is standing a tangle spiral like the same as ability 2 will go on where the player or mannequin is at
and also can you make it so when you kill someone it plays these sounds minecraft:entity.zombie.break_wooden_door after 1 second this minecraft:entity.allay.ambient_with_item after 0.5 this minecraft:entity.allay.death
Restore the heart-steal animation so each steal reliably shows one heart traveling to the killer.
Increase Blood Horizon’s dust, and add a ground-level tangle spiral at each affected target.
Play the three requested sounds on a player kill with the specified delays.
Blood Horizon now sends one heart display per target at the start and again at each configured visual interval throughout the ability.
Its ground circle and spiral are denser blood dust; affected players, mobs, and mannequins also get a moving tangle spiral.
Player kills play the zombie wooden-door sound immediately, the Allay ambient sound after 1 second, then the Allay death sound 0.5 seconds later.
does it play on mannequins?
No. The sound sequence only runs for player deaths; the mannequin-death handler doesn’t play those sounds.
can you make it?
Add the existing three-sound sequence to mannequin deaths with a player killer.
Keep the current timing and play it at the mannequin’s death location.
Mannequin kills by a player now play the same sound sequence at the mannequin’s death location: zombie door-break immediately, Allay ambient after 1 second, and Allay death 0.5 seconds later.
can you also make red dust splatter around that dissapear after 2 seconds and also can you use /particle damageindicator instead of /particle heart
Add a red-dust splatter effect at player and mannequin kill locations that emits for two seconds.
Replace the heart particle burst when the steal animation arrives with damage-indicator particles, keeping the single traveling heart display.
Added a red-dust splatter that emits around player and mannequin kill locations for two seconds. The heart-steal animation still sends its single traveling heart, but the arrival burst now uses damage-indicator particles instead of heart particles.
can you remove the heart steal in blood horizon
and also ability 1 feels really bland can you do anything to make it not bland
Remove Blood Horizon’s heart-steal display without changing its other effects.
Check Ability 1’s implementation, then give it a more distinctive visual effect.
Removed the traveling heart displays from Blood Horizon; its other effects are unchanged.
Made Ability 1’s meteors more distinct with a swirling blood-dust and soul-flame trail, plus an expanding ground-level dust ring on impact.
by the way you dont need a target for ability 2 and ultimate
Remove Ability 2 and Ultimate’s nearby-target checks so both can activate without an enemy nearby.
Keep their current projectile direction and player-centered area behavior.
Ability 2 and the Ultimate no longer require a nearby target to activate. Ability 2 still fires in the direction you’re looking, and the Ultimate still centers on you.
make the custommodelldata 1001
Set both custom item model mappings to custom model data
1001in the legacy and current item definitions.
Updated both custom item mappings to use custom model data 1001.
i meant only the life sword
The Life Sword now receives custom model data 1001. I left the other item mappings unchanged.
make this new weapon
📄
pasted-code-1791798550201.txt
txt
418 lines
▶
# LIFE REAPER — COMPLETE MINECRAFT PLUGIN IMPLEMENTATION PROMPT
You are an expert Minecraft plugin developer. Create a complete, polished, production-ready **Life Reaper** weapon ability system for my Lifesteal SMP.
## 1. Technical Requirements
- **Minecraft Version:** Paper 1.21.11
- **Java Version:** Java 25
- **Build System:** Maven
- **API:** Paper API compatible with Minecraft 1.21.11
- **Language:** Java
- **Plugin Name:** LifeReaper
- **Main Weapon:** Life Reaper
- **Design Theme:** Dark crimson, blood, death, and reaping souls
- **Gameplay Focus:** PvP combat, burst damage, mobility, and aggressive attacks
Create a complete, functional plugin—not pseudocode, incomplete snippets, or a tutorial that leaves major implementation steps unfinished.
The plugin must include the main Java classes, `plugin.yml`, `config.yml`, Maven `pom.xml`, resource-pack integration instructions, and any additional files required to build and run it.
All code must compile using Java 25 and the correct Paper 1.21.11 API.
## 2. Life Reaper Weapon
Create a custom weapon called **Life Reaper**.
The weapon must have:
- A custom display name: `&4&lLIFE REAPER`
- Dark crimson and red visual effects.
- A custom item model or resource-pack model when supported.
- Configurable base damage.
- Configurable ability cooldowns.
- Three abilities: two normal abilities and one ultimate.
The plugin must reliably identify the Life Reaper using a persistent custom item identifier, not only its display name or lore.
Do not allow ordinary renamed items to activate the abilities.
If the weapon uses a custom texture from my resource pack, use the correct texture/model mapping and explain how to configure it. Do not invent texture paths or pretend that Bukkit particles can directly display an arbitrary PNG texture.
The weapon must not be consumed or destroyed when abilities are activated.
## 3. Ability One — Reaper's Throw
**Concept:** Throw a spinning spectral scythe toward enemies, dealing exactly 5 damage points when it hits.
### Activation
- The player activates Ability One using a configurable input, such as right-clicking while holding Life Reaper.
- The plugin launches a temporary visual scythe projectile in the direction the player is looking.
- The projectile should rotate or spin while traveling.
- It must look like an actual flying scythe rather than a generic particle projectile.
- Use a suitable temporary item display, item entity, or other reliable Paper-compatible visual implementation.
- The projectile must not drop a real item or allow players to collect it.
### Damage and collision
- **Damage: 5.0 Minecraft health points**, equivalent to 2.5 hearts before other applicable effects.
- The projectile travels forward and damages the first valid target it hits.
- A single throw must not damage the same target multiple times.
- The owner must never be damaged by their own projectile.
- Walls and solid blocks must stop the projectile.
- Configure projectile speed, maximum range, collision size, cooldown, and visual effects.
- Handle collision detection consistently, including fast-moving projectiles that could otherwise pass through targets between ticks.
- Prevent projectile duplication, lingering displays, and damage after the projectile has been removed.
### Visual effects
When the scythe is thrown:
- Spawn a dark crimson trail behind it.
- Add red particles around the spinning scythe.
- Play an appropriate throwing sound.
- On a successful hit, spawn a compact crimson slash effect and play a hit sound.
- On a block collision, remove the projectile cleanly and optionally spawn a small impact effect.
The projectile is a temporary visual effect. It must never become a permanent inventory item.
## 4. Ability Two — Dual Reaper
**Concept:** A spectral copy of Life Reaper appears in the player's offhand, temporarily allowing the player to wield two scythes and deal double damage.
### Activation
When the player activates Ability Two:
1. Save the player's original offhand item and all its data.
2. Create a temporary copy of Life Reaper in the offhand.
3. Activate the dual-wield effect for a configurable duration.
4. Restore the original offhand item exactly when the effect ends.
The temporary copy must be identified as a plugin-managed temporary item, not a second permanent Life Reaper.
### Exact damage behavior
The intended damage values are:
- Normal Life Reaper base damage: **2.0 Minecraft health points**.
- During Dual Reaper: **4.0 Minecraft health points**.
The plugin must implement this intentionally and consistently.
Do not accidentally multiply damage twice because both the main-hand and offhand items trigger damage handlers. If vanilla attack damage, weapon attributes, or event-based damage modification are used, ensure the resulting damage is exactly the intended configured value before other applicable modifiers.
Do not let the temporary offhand copy independently activate another Life Reaper ability unless explicitly enabled in the configuration.
### Offhand restoration — critical requirement
The original offhand item must return exactly as it was before activation.
Preserve all applicable item information, including:
- Item type and amount.
- Durability or damage value.
- Enchantments.
- Custom name and lore.
- Item flags.
- Attribute modifiers.
- Custom model data or item-model properties.
- Persistent data and custom plugin metadata.
- Any other supported item metadata.
If the player's offhand was empty, it must be empty again after the ability ends.
If the player originally held a damaged enchanted sword, for example, that exact sword must be restored—not a newly created replacement with missing data.
### Inventory safety
While Dual Reaper is active:
- Prevent the temporary offhand copy from being dropped, moved, transferred, or duplicated.
- Handle inventory clicks, number-key swaps, offhand swaps, and other relevant inventory interactions safely.
- Handle player death, disconnection, world changes, and plugin shutdown.
- Restore the original item safely when the effect is interrupted.
- Never overwrite an unrelated item that the player legitimately obtained or moved during the effect.
- Prevent item loss and duplication when restoration conflicts occur.
Use a reliable inventory-locking or temporary-item management strategy. If restoration cannot safely happen in the original slot, preserve the original item and use a safe fallback rather than deleting either item.
The temporary item must not be tradable, storable, droppable, or usable to bypass normal weapon restrictions.
### Visual effects
- Spawn a dark red activation effect around the player.
- Add crimson particles around the offhand.
- Optionally display a subtle spectral scythe effect.
- Play an activation sound.
- Remove all temporary visual effects when the ability ends.
The duration and cooldown must be configurable.
## 5. Ultimate — Triple Reaper Dash
**Concept:** The player performs three consecutive forward dashes, each accompanied by a dramatic crimson slash that resembles a scar being carved through the air.
The ultimate is a fast, aggressive attack designed for PvP. The three dashes must execute in the exact order described below.
### Activation sequence
When the ultimate is activated:
1. Immediately perform Dash One.
2. Wait exactly 1 second.
3. Perform Dash Two.
4. Wait exactly 1 second.
5. Perform Dash Three.
6. Finish the ultimate and begin or continue the configured cooldown.
Use a reliable scheduled sequence. Do not run all three dashes in one tick.
The player should move forward in the direction they are facing at the start of each dash, unless a configurable option explicitly enables another targeting behavior.
### Exact dash configuration
| Stage | Slash position | Damage |
|---|---|---:|
| Dash One | Left-bottom side | 2.0 health points |
| Dash Two | Right-bottom side | 3.0 health points |
| Dash Three | Left-bottom side | 2.0 health points |
**Damage must be exactly 2.0, 3.0, and 2.0 Minecraft health points respectively**, before other applicable damage modifiers.
If the same valid enemy is hit by all three dashes, the intended total is 7.0 health points before other applicable modifiers.
Do not accidentally apply the damage twice through overlapping hitboxes or duplicate event handlers.
### Dash movement
Each dash must:
- Propel the player forward quickly.
- Use configurable dash distance, speed, and duration.
- Feel responsive and powerful.
- Produce a short burst of dark crimson particles.
- Include a suitable dash sound.
- Avoid teleporting the player through solid walls.
- Handle obstacles and collisions safely.
- Avoid launching the player into unloaded chunks or unsafe locations.
Do not forcibly move players through walls, protected regions, or other prohibited areas.
If a dash encounters a solid obstacle, stop or shorten that dash safely rather than allowing the player to clip through blocks.
### Slash particle design
Each dash must generate a visible **scar-like slash made from crimson dust particles**.
The slash must not look like a generic cloud, simple particle trail, or random red explosion.
The visual should resemble a sharp diagonal cut across the air, with particles arranged along the slash's shape.
#### Dash One — Left-bottom slash
- Position the slash toward the player's lower-left side relative to their facing direction.
- Use dark crimson and bright red dust particles.
- Deal exactly 2.0 health points to each valid target hit by this dash.
#### Dash Two — Right-bottom slash
- Position the slash toward the player's lower-right side.
- Use a slightly more intense slash effect.
- Deal exactly 3.0 health points to each valid target hit by this dash.
#### Dash Three — Left-bottom final slash
- Return the slash to the lower-left side.
- Use the strongest visual effect of the three dashes.
- Add a brief burst of crimson particles at the end of the slash.
- Deal exactly 2.0 health points to each valid target hit by this dash.
Calculate the left and right positions relative to the player's facing direction. Do not use fixed world coordinates, because the effect must rotate correctly when the player turns.
Use configurable particle counts, dust colors, slash width, and visual intensity.
### Dash hit detection
During each dash:
- Detect valid targets intersecting the dash's attack area.
- Allow one dash to hit multiple valid enemies if they intersect its hitbox.
- Each target can take damage at most once per individual dash.
- A target may be hit again by a later dash.
- Do not damage the player performing the ultimate.
- Respect configurable PvP restrictions, team protection, safe zones, region protection, and invulnerability.
- Make the hitbox configurable.
- Prevent damage through walls unless explicitly enabled in configuration.
The damage must be associated with the correct dash stage. Dash Two must never accidentally use Dash One's damage, and Dash Three must not reuse Dash Two's damage.
### Ultimate interruption and cleanup
Handle these situations safely:
- The player dies.
- The player disconnects.
- The player changes worlds.
- The player becomes invalid or unavailable.
- The plugin is disabled or the server shuts down.
- Another ability attempts to start while the ultimate is running.
Cancel scheduled tasks, remove temporary displays, clear hit tracking, and stop leftover particles or movement effects where applicable.
Do not leave the player stuck in a dash state. Do not allow multiple ultimate sequences to overlap for the same player.
## 6. Cooldowns and Configuration
Put all important values in `config.yml`, including:
- Ability One cooldown.
- Ability One projectile speed and maximum range.
- Ability One damage.
- Ability Two cooldown and duration.
- Ability Two normal and boosted damage.
- Ultimate cooldown.
- Time between dashes.
- Dash distance, speed, and hitbox width.
- Damage for each dash stage.
- Particle counts, colors, and visual settings.
- Sound effects.
- PvP restrictions.
- Whether mobs can be damaged.
- Whether abilities work in protected regions.
- Whether abilities can hit multiple targets.
- Messages shown to players.
- Permission nodes.
- Debug logging.
Use sensible defaults matching this specification.
Changing configuration values must not require modifying Java source code.
Validate configuration values on startup and log clear warnings for invalid values. Reloading the configuration must not corrupt active ability sequences.
## 7. Input and Ability Activation
Implement a reliable ability activation system.
Use configurable activation methods where possible, such as:
- Right-click for Ability One.
- A separate supported input or configurable trigger for Ability Two.
- A configurable trigger for the ultimate.
Paper does not provide a universal dedicated keybind for arbitrary custom abilities. If a dedicated key is not available through the server API, implement a reliable alternative, such as a configurable sneak-plus-right-click combination, an inventory selection system, or another documented trigger.
Prevent one click from activating multiple abilities accidentally.
Cancel only the vanilla interactions that must be cancelled to prevent unwanted behavior. Do not unnecessarily disable ordinary weapon use, block interaction, or inventory functionality.
Send clear cooldown messages when an ability is unavailable.
## 8. Lifesteal SMP Compatibility
The Life Reaper plugin must be designed to coexist with a Lifesteal SMP and other common server plugins.
- Do not directly change a player's permanent heart count when an ability deals damage.
- Normal damage and ability damage must not accidentally trigger additional heart stealing.
- Do not bypass server protections unless explicitly configured.
- Avoid conflicts with combat tagging, claims, teams, and region-protection plugins.
- Make integration points configurable or clearly documented.
- Use the Bukkit/Paper damage system appropriately so compatible protection plugins can process damage events.
- Do not use unsafe reflection or NMS unless absolutely necessary and clearly justified.
All ability damage values refer to Minecraft health points, not hearts. Two health points equal one full heart.
## 9. Permissions and Commands
Implement useful administrative commands, including:
- `/lifereaper give ` — Give the designated Life Reaper item.
- `/lifereaper reload` — Reload configuration safely.
- `/lifereaper cooldown ` — Adjust an ability cooldown when appropriate.
- `/lifereaper info` — Show plugin and ability information.
Use appropriate permission nodes, for example:
- `lifereaper.admin`
- `lifereaper.give`
- `lifereaper.reload`
Players should not be able to obtain the custom weapon through unintended item exploits.
Include command validation, tab completion where appropriate, clear error messages, and permission checks.
## 10. Performance and Code Quality
The plugin must be suitable for a live multiplayer server.
- Avoid expensive operations every tick when unnecessary.
- Use efficient entity and collision checks.
- Track active projectiles and ability sequences.
- Cancel scheduled tasks when they are no longer needed.
- Avoid memory leaks and stale player references.
- Avoid duplicate event listeners and duplicate damage handling.
- Use safe entity validity checks.
- Avoid unnecessary synchronous disk access during combat.
- Persist any required long-term data safely.
- Use clean object-oriented code with separate classes for abilities, cooldowns, projectiles, and shared utilities where appropriate.
- Add comments for complex mechanics.
All configurable damage values must be applied consistently, and every temporary entity, display, task, and state entry must have a reliable cleanup path.
## 11. Resource Pack and Visual Integration
If a resource pack is supplied:
1. Inspect its actual files and model definitions.
2. Identify the correct Life Reaper texture and model, if one exists.
3. Reuse the existing assets where appropriate.
4. If no suitable asset exists, explain what additional texture or model is required.
5. Configure the custom item model using the mechanism supported by the target Minecraft version.
6. Ensure the item displays correctly in first-person, third-person, inventory, and dropped-item views where applicable.
7. Do not claim an existing texture is integrated unless the model and item mapping are actually implemented.
The flying scythe and dual-wield visual must be implemented with a real supported visual representation. Do not create fake functionality by merely naming an ordinary item or spawning random particles.
## 12. Deliverables
Provide the complete project in a clear directory structure, including:
- `pom.xml`
- `plugin.yml`
- `config.yml`
- Every required Java source file
- Ability implementation classes
- Projectile and dash handling
- Cooldown and temporary-item management
- Command and permission handling
- Resource-pack setup instructions
- Build and installation instructions
- A list of any required dependencies
Include the full contents of every required file. Do not use placeholders such as `// implement this later`, `TODO`, omitted methods, or ellipses in place of working code.
If a technical limitation prevents an exact implementation, explain the limitation and provide the closest reliable Paper 1.21.11-compatible solution rather than pretending the feature works.
## 13. Testing Checklist
Before considering the plugin complete, verify the following:
- Life Reaper is correctly identified even if ordinary items have matching names.
- Reaper's Throw deals exactly 5.0 health points per valid hit.
- A thrown scythe cannot hit the same target repeatedly.
- Dual Reaper temporarily creates the offhand copy.
- Dual Reaper produces the intended 4.0 health-point damage instead of accidentally multiplying damage twice.
- The original offhand item returns with all its metadata and durability intact.
- Empty offhands return to being empty.
- Inventory swapping, dropping, death, disconnect, and shutdown do not cause item loss or duplication.
- Triple Reaper Dash executes left-bottom, right-bottom, left-bottom.
- The dash damage sequence is exactly 2.0, 3.0, 2.0.
- There is a one-second interval between consecutive dash activations.
- Each dash can hit multiple valid targets but cannot hit the same target twice during that individual dash.
- The ultimate cannot overlap with itself.
- All active projectiles, scheduled tasks, temporary items, and visual effects are cleaned up properly.
- The project compiles successfully on Java 25 for Paper 1.21.11.
**Final objective:** Deliver a complete, reliable, visually impressive Life Reaper ability system for a Lifesteal SMP. The weapon should feel like a dark crimson reaper's weapon, with a spinning scythe throw, temporary dual wielding, and a precise three-stage dash ultimate. Prioritize correct damage, safe inventory restoration, responsive PvP mechanics, clean visuals, and exploit prevention.
Inspect the existing weapon, ability flow, configuration, and commands to integrate this without replacing the Lifesteal plugin.
Add Life Reaper item identification and implement its three abilities within the current project structure.
Wire configuration, input, cooldowns, and cleanup into the existing plugin lifecycle, then verify the changes.
Added the Life Reaper to the existing Lifesteal plugin, with a persistent item ID so renamed ordinary items can’t use its abilities.
Reaper’s Throw: spinning scythe display with continuous collision checks, wall stopping, and configurable 5-damage hits.
Dual Reaper: temporarily places a tagged copy in the offhand for 4-damage attacks, then safely restores the original item—including its metadata. Inventory transfers and drops are blocked while active.
Triple Reaper Dash: starts immediately, then repeats at one-second intervals; its left/right/left stages deal 2/3/2 damage and stop at obstacles.
Added configuration, cooldown/admin commands, cleanup, and a crimson resource-pack texture/model. Controls: right-click to throw, sneak + right-click to dual wield, sneak + left-click for the ultimate.
The resource-pack setup is documented in LIFE_REAPER_RESOURCE_PACK.md. Compile in Kodari using Compile in the top bar, then download the jar and distribute the updated pack to players.
i made a custom 3d model texture for the scythe the model data is 1003
Set the scythe’s configured custom model data to
1003.Update the bundled resource-pack model threshold to match.
Updated the scythe to use custom model data 1003 in both the plugin config and the resource-pack model mapping.
can you make it so when you hold the scythe it gives you strength 3 for 1 second not infinite so when you unequip the scythe the effect dissapears and also the throwing scythe or the scythe model is not horizontal
Add Strength III while the scythe is held, refreshed for one second and removed when unequipped.
Fix the scythe’s horizontal orientation, including the thrown scythe if it uses a separate model.
[Generation stopped]
can you make it so when you hold the scythe it gives you strength 3 for 1 second not infinite so when you unequip the scythe the effect dissapears and also the throwing scythe model its not horizontal and theres also a chance the dash will just stop mid way like first dash and it stops maybe change 1 second to 0.5 and also can you make it so when you hit a mannequin or target it will do a blood splatter when you hit a mannequin or target or mob with the scythe
Add a short, refreshed Strength III effect while holding the scythe; remove it when unequipped.
Correct the thrown scythe model’s horizontal orientation.
Shorten the dash timing from 1 second to 0.5 seconds and address it stopping early.
Add a blood-splatter hit effect for targets, mannequins, and mobs.
The scythe now refreshes Strength III for 1 second while held and removes the effect when unequipped.
Rotated the thrown scythe model horizontally while preserving its spin.
Set the dash duration to 0.5 seconds (10 ticks). It can still end early if it hits a block or reaches its distance limit.
Added a red splatter effect when the scythe hits valid targets, including mannequins and hostile mobs.
If your server already has a config file, set life-reaper.ultimate.dash-duration-ticks: 10 there too.
And also can you make the scythe throwing model more horizontal like the head of the scythe is still standing up
I’ll keep the thrown scythe’s horizontal rotation fixed during flight; its per-tick spin was repeatedly turning the head upright.
Fixed the thrown scythe’s rotation so it stays at the horizontal angle throughout its flight instead of spinning and turning its head upright.
the collision thing doesnt even work plus its still the same angle llike 150 degrees or smth and also can you give strength 5 instead instead of 3 and reaper dash is still the same YOU DIDNT FUCKING CHANGE ANYTHING YOU UJST SAID IT U DIDNT DO ANYTHING
Fix the scythe hit/collision effect.
Correct the thrown scythe’s actual model orientation.
Change held-scythe Strength to V.
Make the Reaper Dash timing change take effect.
The thrown scythe relied on a single entity ray trace, which can miss targets between ticks. I’m replacing that with a swept hit check along each movement step.
You were right: the dash’s interval was still 1 second, and an existing server config could override the duration. I changed both to 10 ticks (0.5 seconds) and clamp older config values so they take effect.
Thrown scythe hits: Replaced the single ray check with a swept collision check along its path. It checks mannequins and valid mobs, stops the search at a blocking wall, and triggers the red hit effect on contact.
Throw angle: Changed the display rotation from 90° to 120°—an additional 30° toward horizontal, held consistently during flight.
Held scythe: Changed the refreshed effect to Strength V; it is still removed when you unequip the scythe.
The model file currently in the project uses a generated flat item model, not a 3D mesh, so this rotates the displayed item; it can’t change the mesh’s internal pose if your separate 3D model isn’t included here. These source changes also need to be compiled, installed, and the server restarted before they affect a running plugin.
When the throwing scythe model or whatever appears when you throw your scythe when it goes collision on something it doesnt dissapear it just keeps going it will wait till the block is below it then go can you fix that please? and theres also a chance it wont just throw the scythe and the throwing scythe will just stand in the air
and also theres a chance the dash ability will just stop midway one dash then it stops it doesnt do the rest can you fix that please?
and also when you activate the offhand scythe ability YOU CANT move any item in your inventory including the scythe this error still happens even though the offhand abiliy is not activated
Fix the thrown scythe’s collision handling and occasional mid-air freeze.
Fix Reaper Dash stopping before it completes.
Make sure inventory locking only applies while the offhand ability is active.
For the thrown scythe, I’m widening block checks to cover the displayed model instead of tracing only its centerline, and removing the display if movement fails or the projectile outlives its range-based timeout.
The dash timer incorrectly used interval-ticks as a second cutoff, so a shorter interval could end a dash before its configured duration. It also counted vertical movement against forward dash distance; I’m correcting both so one dash doesn’t consume its travel early.
I found the inactive lock: click, drag, swap, and drop handlers also cancelled actions whenever an item had the temporary-scythe marker, even without an active Dual Reaper. I’m making the active ability state the gate for those restrictions.
Thrown scythe: Block collision now checks around the displayed model, not just its centerline. Invalid displays, failed movement teleports, and projectiles that exceed their range-based timeout are cleaned up.
Reaper Dash: Removed the interval timer as a second dash cutoff and now counts forward travel only, so falling or other vertical movement won’t use up the dash distance. Solid blocks still stop a dash; the interval no longer ends one early.
Inventory: Click, drag, swap, drop, and temporary-item pickup restrictions now apply only while Dual Reaper is active, so a stale temporary-item marker won’t lock your inventory while the ability is inactive.
i made protocollib as a dependencie maybe that can help you
I’ll check whether ProtocolLib is actually declared and how the scythe projectile and dash currently work, then use it only if it addresses the reported behavior.
ProtocolLib can help change how the thrown display is sent to clients, but it won’t fix server-side collision or dash movement. In the project snapshot I can access, pom.xml still only declares Paper and XSeries, so ProtocolLib isn’t available to import yet. The scythe’s movement and collision are handled server-side in LifeReaperController; I’d fix those there rather than add ProtocolLib unnecessarily.
BRO PLS FIX THE COLLISION THHING IM BEGGING YOU WANT ME TO EXPLAIN CLEARLY
[Generation stopped]
bro pls fix the collision thing but what if instead of just going loopeditly you throw the scythe you lose the scythe after 5 seconds the scythe comes back to the host then the scythe item comes back and when hits a player
I’ll make the throw consume one scythe from the player’s hand, deal its hit on player collision, and send the display back on a hit, block collision, max range, or five-second timeout. The exact item returns to the player when the display reaches them, with recovery on death, logout, or shutdown too.
The scythe now leaves your hand when thrown. A player hit deals the configured damage and sends it back; hitting a block, reaching max range, or flying for 5 seconds also starts its return. When it reaches you, the same scythe item is restored, and it’s recovered on death, logout, or plugin shutdown too.
and also i think you're struggling with the dash biut hwat if instead of the dash
a huge model of the scythe comes up with a smooth tween animation and slams down repeatedly 4 times deals 3 times ignores armor i want the slam tween to be like go up slowly
go down fast
go up slowy go down fast
and the showing up tween appears out of the ground small after 1 second grows big then does the slamming sequence
I’ll replace Reaper Dash with the four-hit scythe slam, using a small-from-ground entrance, a one-second rise, then two slow-up/fast-down cycles.
Plan:
Replace the dash movement with a large, animated scythe display at the player’s aimed ground position.
Animate a one-second emergence, then four slow-rise/fast-fall slams; each impact deals 3 magic damage, which bypasses armor.
Clean up the display and active state on completion, death, logout, world change, or shutdown; update the ultimate’s config and labels.
Replaced Reaper Dash with the scythe slam ultimate. The custom scythe model emerges and grows over one second, then rises slowly and slams down quickly four times. Each impact deals 3 armor-bypassing magic damage to valid targets within range. The display is removed when the animation ends or the ability is interrupted.
The timing, damage, radius, range, and model scale are configurable under life-reaper.ultimate. The ability label and messages now say “Reaper Slam” instead of “Dash.”
ok uh throw is not horizontal and theres no spinning tween horizontally
and the ultimate doesnt rotate down and up and also the model is not vertical and its faced in the wrong way make it follow the target i mean look at the target
Fix the thrown scythe to travel horizontally and spin sideways.
Fix the ultimate’s scythe orientation and make its slam motion rotate down/up while facing the target.
The throw is now flattened to the player’s horizontal facing and spins on each movement tick. I’m updating the slam display separately to stay upright, turn toward the nearest valid target, and tilt back on the rise then forward on each fast slam.
Throw: It now travels horizontally in the direction you’re facing and spins sideways as it moves.
Reaper Slam: The scythe stays upright, turns toward the nearest valid target in range, and tilts back during each slow rise before rotating forward into each fast slam.
can you make it so when the thrown scythe hits a block it comes back to the host the ultimate scythe rotates the wrong way when rotating down its rotating to its right not its front and bro the throw scythe model is not horizontal i want it 0 degrees horizontally then spins not bottomly or abovely spin but horizontally spin 0 degrees and also the ultimate should need a mannequin or player and doesnt work on mobs and also make sure it doesnt look at mobs
Return the thrown scythe on block impact.
Correct the throw’s flat orientation and horizontal spin.
Reverse the slam’s down-rotation and keep the ultimate player-only, including target tracking.
Updated LifeReaperController:
On block impact, the thrown scythe now snaps to the hit point and starts returning to its owner.
The thrown model lies flat and spins around the vertical axis, so its spin stays horizontal.
The ultimate now faces targets using the corrected rotation direction and only tracks or hits players and mannequins—not mobs.
The compilation failed with this error:
Compilation failed with 1 error(s):
ERROR in src/main/java/com/kodari/lifesteal/LifeReaperController.java at line 384: method set in class Location cannot be applied to given types;
projectile.position.set(impact);
^
=== COMPILATION ERROR ANALYSIS ===
FILES TO INVESTIGATE:
- src/main/java/com/kodari/lifesteal/LifeReaperController.java
Please fix this error by creating a new artifact with the corrected code.
I’ll replace the unsupported Location.set(...) call with Bukkit’s coordinate setters, preserving the block-hit return behavior.
Fixed the compilation error by replacing projectile.position.set(impact) with setX, setY, and setZ. The thrown scythe still moves to the block-hit point before returning.
yo the ultimate scythe is rotating the wrong way again
ok look at this i dont know if its correct or not if its not then correct
📄
pasted-code-1791862020287.txt
txt
128 lines
▶
mport org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.Particle;
import org.bukkit.Sound;
import org.bukkit.entity.ArmorStand;
import org.bukkit.entity.Entity;
import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.scheduler.BukkitRunnable;
import org.bukkit.util.EulerAngle;
import org.bukkit.util.Vector;
public class ScytheAbility {
private final JavaPlugin plugin;
public ScytheAbility(JavaPlugin plugin) {
this.plugin = plugin;
}
public void castScytheSpell(Player player) {
// 1. Setup the target location (3 blocks in front of the player)
Location spawnLoc = player.getLocation().add(player.getLocation().getDirection().multiply(3));
spawnLoc.setY(spawnLoc.getY() - 1.0); // Offset to ground level alignment
// 2. Prepare the Scythe Item (Use CustomModelData for a real scythe texture)
ItemStack scytheItem = new ItemStack(Material.NETHERITE_HOE);
ItemMeta meta = scytheItem.getItemMeta();
if (meta != null) {
meta.setCustomModelData(1001); // Matches your Resource Pack ID
scytheItem.setItemMeta(meta);
}
// 3. Spawn the invisible animator ArmorStand
ArmorStand armorStand = spawnLoc.getWorld().spawn(spawnLoc, ArmorStand.class, stand -> {
stand.setVisible(false);
stand.setGravity(false);
stand.setArms(true);
stand.setBasePlate(false);
stand.setMarker(true); // Prevents interaction/hitbox interference
stand.getEquipment().setItemInMainHand(scytheItem);
// Initial arm angle: Pointing straight up/backwards
stand.setRightArmPose(new EulerAngle(Math.toRadians(180), 0, 0));
});
// 4. Run the Animation Thread
new BukkitRunnable() {
int ticks = 0;
int slamsCompleted = 0;
boolean slammingDown = false;
double currentAngle = 180; // Start at 180 degrees (pulled back)
@Override
public void run() {
if (armorStand.isDead() || !armorStand.isValid()) {
cancel();
return;
}
// Phase 1: Emergence / Float up (First 10 ticks)
if (ticks < 10) {
armorStand.teleport(armorStand.getLocation().add(0, 0.15, 0));
// Smoothly rotate the arm forward a little bit during emergence
currentAngle -= 5;
armorStand.setRightArmPose(new EulerAngle(Math.toRadians(currentAngle), 0, 0));
}
// Phase 2: The 3 Slams
else if (slamsCompleted < 3) {
if (!slammingDown) {
// Swing down rapidly
currentAngle -= 25;
if (currentAngle <= 45) { // Impact angle threshold
currentAngle = 45;
slammingDown = true;
triggerImpact(armorStand.getLocation(), player);
slamsCompleted++;
}
} else {
// Retract back up slowly for the next slam
currentAngle += 15;
if (currentAngle >= 160) {
currentAngle = 160;
slammingDown = false; // Reset to strike again
}
}
armorStand.setRightArmPose(new EulerAngle(Math.toRadians(currentAngle), 0, 0));
}
// Phase 3: Despawn and clean up
else {
armorStand.remove();
cancel();
}
ticks++;
}
}.runTaskTimer(plugin, 0L, 1L); // Runs every single Minecraft tick (20 ticks = 1 second)
}
// 5. Impact handling (Particles, Sounds, and AoE Damage)
private void triggerImpact(Location impactLoc, Player caster) {
Location groundZero = impactLoc.clone().add(0, 1.5, 0); // Adjust according to arm offset
// Visual Effects
groundZero.getWorld().spawnParticle(Particle.SWEEP_ATTACK, groundZero, 3, 0.5, 0.2, 0.5, 0.1);
groundZero.getWorld().spawnParticle(Particle.CRIT, groundZero, 15, 1.0, 0.5, 1.0, 0.2);
// Sound Effects
groundZero.getWorld().playSound(groundZero, Sound.ENTITY_PLAYER_ATTACK_SWEEP, 1.0f, 0.6f);
groundZero.getWorld().playSound(groundZero, Sound.ENTITY_ZOMBIE_ATTACK_WOODEN_DOOR, 0.8f, 0.5f);
// AoE Damage Logic
for (Entity entity : groundZero.getWorld().getNearbyEntities(groundZero, 3.0, 2.0, 3.0)) {
if (entity instanceof LivingEntity && !entity.equals(caster)) {
LivingEntity target = (LivingEntity) entity;
target.damage(6.0, caster); // Deals 3 hearts of damage per slam
// Slight knockback away from the impact point
Vector launchDirection = target.getLocation().toVector().subtract(groundZero.toVector()).normalize().setY(0.3);
target.setVelocity(launchDirection.multiply(0.4));
}
}
}
}
The attached animation has the slam angle decrease while rising increases. The project had those directions reversed, so I’m swapping the tilt curves while keeping its four impacts and player/mannequin-only targeting.
Fixed the slam rotation direction. The scythe now tilts back during its slow rise, then rotates forward during the fast slam to match the angle sequence in your example. It still hits four times and only targets players and mannequins; the attached sample’s mob-damage logic is not used.
look at this block collision since thrown scythe model doesnt dcome back when having collision with a block pls correct me if this artifact is wrong
and also the ultimate scythe model is rotating the wrong way can we keep making random rotate angles till i say whats correct ???
📄
pasted-code-1791862173110.txt
txt
33 lines
▶
import org.bukkit.Bukkit;
import org.bukkit.Material;
import org.bukkit.block.Block;
import org.bukkit.entity.Entity;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.scheduler.BukkitRunnable;
public class EntityCollisionPlugin extends JavaPlugin {
@Override
public void onEnable() {
// Run a task every 1 tick (20 ticks = 1 second)
new BukkitRunnable() {
@Override
public void run() {
// Loop through all worlds or a specific world
Bukkit.getWorlds().forEach(world -> {
for (Entity entity : world.getEntities()) {
// Check the block right at the entity's location (feet position)
Block blockAtEntity = entity.getLocation().getBlock();
// Example condition: if the block is a Sponge (or whatever trigger block you want)
if (blockAtEntity.getType() == Material.SPONGE) {
// Trigger disappear action
entity.remove(); // This removes/disappears the entity from the world
}
}
});
}
}.runTaskTimer(this, 0L, 1L); // Delay 0, repeat every 1 tick
}
}
Fix thrown-scythe block collision so it reliably starts returning to its owner.
Try a different ultimate rotation angle for this iteration.
The attached EntityCollisionPlugin snippet is not the right mechanism here: it only removes entities standing inside sponge blocks. I found the actual issue—the throw used a hit point from an offset collision ray, which could put the display inside the block. I’m placing it just before the wall on its travel path before returning it.
For this rotation trial, I’m making the slam tilt axis explicitly perpendicular to the target-facing direction (so it pitches toward the target, not sideways) and reversing the tilt sign. This gives us one controlled angle change to judge rather than random angles changing every cast.
Block collision: The pasted artifact only removes entities standing in sponge blocks; it doesn’t make a thrown scythe return. The projectile now stops just before the block face and starts returning to its owner.
Ultimate rotation trial: The tilt now rotates around an axis perpendicular to the target-facing direction, with the tilt sign reversed. It’s a fixed, repeatable angle change—not random each cast. Tell me whether this one swings toward the front correctly.
wrong way another one again dont do the other other angle since that one is already wrong and the current angle right now is also currently wrong
I’ll try a distinct, fixed rotation variant—not either of the rejected tilt directions: keep the target-facing yaw, but rotate the scythe around its local Z axis during the slam.
Changed the ultimate to a new, repeatable rotation trial: it still faces the player/mannequin target, but now rolls around the scythe model’s local Z axis during the slam. The player/mannequin-only targeting is unchanged. Tell me whether this rotates the right way or which direction it needs to turn.
OK OK THAT ANGLE IS REALLY RIGHT BUT I NEED IT TO ROTATE MORE DOWN
Increase only the falling phase’s final Z-rotation, keeping the same direction you approved.
Leave target-facing, rise motion, and slam timing unchanged.
Increased the ultimate scythe’s downward rotation while keeping the same direction you approved. The tilt now ends at about −0.8 radians instead of −0.35; facing, rise motion, and slam timing are unchanged.
more down and allso is it possible to make blocks move when it slams like an actual slam effect
Increase the approved downward rotation without changing its direction.
Add a block-debris burst on slam impact without breaking or moving actual world blocks.
Increased the approved downward rotation from −0.8 to −1.3 radians. Each slam now kicks up debris particles matching the block beneath the impact point; the terrain itself stays intact.
no i want it to actually move actual world blocks and then the world blocks come back when the slamming is over and also make the down rotate more down
Add a temporary moving-block slam effect that restores the original blocks afterward.
Increase the ultimate scythe’s downward rotation while preserving its approved direction.
The slam now temporarily replaces eligible ground blocks with moving block displays, then restores their original block data. Protected blocks and tile-entity blocks are skipped; I’m moving on to the rotation adjustment.
Actual block slam: Eligible ground blocks now lift and move outward as block displays. Their original block data is restored after the brief effect and on slam cleanup. Protected blocks and tile-entity blocks are skipped.
Rotation: Increased the downward tilt in the same approved direction, from −1.3 to −1.8 radians.
The compilation failed with this error:
Compilation failed with 1 error(s):
ERROR in src/main/java/com/kodari/lifesteal/LifeReaperController.java at line 658: incompatible types: BlockDisplay cannot be converted to ItemDisplay
remove(moved.display);
^
=== COMPILATION ERROR ANALYSIS ===
TYPE MISMATCHES:
- incompatible types: BlockDisplay cannot be converted to ItemDisplay
ACTION: Fix variable types or casting
FILES TO INVESTIGATE:
- src/main/java/com/kodari/lifesteal/LifeReaperController.java
Please fix this error by creating a new artifact with the corrected code.
Replace the wrongly typed cleanup call with
BlockDisplay.remove(), preserving the block restoration logic.
Fixed the compilation error by calling moved.display.remove() directly. The original block restoration logic remains unchanged.
let me know if im correct i found a way to make it happen and make it smooth and if possible add gravity to the blocks like they wont have the same position the others arel oewr the others are higher and also when hitting a target or a mob near it it will launch them upwards
📄
pasted-code-1791863549074.txt
txt
70 lines
▶
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.Particle;
import org.bukkit.Sound;
import org.bukkit.World;
import org.bukkit.block.Block;
import org.bukkit.entity.FallingBlock;
import org.bukkit.entity.Player;
import org.bukkit.util.Vector;
public class SlamEffect {
/**
* Creates a circular slam wave effect expanding outward from the player.
* @param player The player triggering the slam.
* @param radius The distance the slamming effect travels.
*/
public void executeGroundSlam(Player player, int radius) {
Location origin = player.getLocation();
World world = origin.getWorld();
if (world == null) return;
// Play an initial impact sound at the epicenter
world.playSound(origin, Sound.ENTITY_GENERIC_EXPLODE, 1.0f, 0.5f);
// Loop through a grid to find blocks within the radius
for (int x = -radius; x <= radius; x++) {
for (int z = -radius; z <= radius; z++) {
// Calculate distance to create a perfect circular wave
double distance = Math.sqrt(x * x + z * z);
if (distance > radius) continue;
// Target the surface block below the player's level
Location targetLoc = origin.clone().add(x, -1, z);
Block block = targetLoc.getBlock();
// Skip air, liquids, or bedrock to prevent world breaking
if (block.getType().isAir() || block.isLiquid() || block.getType() == Material.BEDROCK) {
continue;
}
// Store the material type and block data before replacing it
Material material = block.getType();
var blockData = block.getBlockData();
// Turn the original block into air temporarily
block.setType(Material.AIR);
// Spawn the FallingBlock slightly above its original spot so it doesn't instantly re-solidify
Location spawnLoc = targetLoc.clone().add(0.5, 0.1, 0.5);
FallingBlock fallingBlock = world.spawnFallingBlock(spawnLoc, blockData);
// Configure entity properties
fallingBlock.setDropItem(false); // Prevents the block from dropping as an item if it breaks
fallingBlock.setHurtEntities(true); // Optional: makes falling blocks damage entities they land on
// Calculate a slamming velocity vector (Upwards launch, slightly outward)
Vector velocity = new Vector(0, 0.4, 0);
// Optional: To make it an expanding wave, delay the launch based on the distance from center
// This requires a BukkitRunnable, but for a direct slam, we apply immediately:
fallingBlock.setVelocity(velocity);
// Spawn impact particles at the block location
world.spawnParticle(Particle.BLOCK, targetLoc.clone().add(0.5, 1.1, 0.5), 10, blockData);
}
}
}
}
📄
pasted-code-1791863556694.txt
txt
70 lines
▶
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.Particle;
import org.bukkit.Sound;
import org.bukkit.World;
import org.bukkit.block.Block;
import org.bukkit.entity.FallingBlock;
import org.bukkit.entity.Player;
import org.bukkit.util.Vector;
public class SlamEffect {
/**
* Creates a circular slam wave effect expanding outward from the player.
* @param player The player triggering the slam.
* @param radius The distance the slamming effect travels.
*/
public void executeGroundSlam(Player player, int radius) {
Location origin = player.getLocation();
World world = origin.getWorld();
if (world == null) return;
// Play an initial impact sound at the epicenter
world.playSound(origin, Sound.ENTITY_GENERIC_EXPLODE, 1.0f, 0.5f);
// Loop through a grid to find blocks within the radius
for (int x = -radius; x <= radius; x++) {
for (int z = -radius; z <= radius; z++) {
// Calculate distance to create a perfect circular wave
double distance = Math.sqrt(x * x + z * z);
if (distance > radius) continue;
// Target the surface block below the player's level
Location targetLoc = origin.clone().add(x, -1, z);
Block block = targetLoc.getBlock();
// Skip air, liquids, or bedrock to prevent world breaking
if (block.getType().isAir() || block.isLiquid() || block.getType() == Material.BEDROCK) {
continue;
}
// Store the material type and block data before replacing it
Material material = block.getType();
var blockData = block.getBlockData();
// Turn the original block into air temporarily
block.setType(Material.AIR);
// Spawn the FallingBlock slightly above its original spot so it doesn't instantly re-solidify
Location spawnLoc = targetLoc.clone().add(0.5, 0.1, 0.5);
FallingBlock fallingBlock = world.spawnFallingBlock(spawnLoc, blockData);
// Configure entity properties
fallingBlock.setDropItem(false); // Prevents the block from dropping as an item if it breaks
fallingBlock.setHurtEntities(true); // Optional: makes falling blocks damage entities they land on
// Calculate a slamming velocity vector (Upwards launch, slightly outward)
Vector velocity = new Vector(0, 0.4, 0);
// Optional: To make it an expanding wave, delay the launch based on the distance from center
// This requires a BukkitRunnable, but for a direct slam, we apply immediately:
fallingBlock.setVelocity(velocity);
// Spawn impact particles at the block location
world.spawnParticle(Particle.BLOCK, targetLoc.clone().add(0.5, 1.1, 0.5), 10, blockData);
}
}
}
}
Your artifact has the right idea for gravity, but as written it sets the source blocks to air and never restores them; all blocks also launch with the same straight-up velocity. I’ll keep the existing restore-safe block effect, give each block a smooth, varied gravity arc, and launch valid nearby players, mannequins, and hostile mobs upward on impact.
Your artifact is on the right track for real FallingBlock gravity, but it doesn’t restore the blocks after setting their original locations to air. FallingBlocks can also land elsewhere and change the terrain.
I updated the slam to keep its restoration-safe block displays, with smoother, varied arcs that rise, move outward, and fall back. Nearby valid players, mannequins, and hostile mobs are now launched upward on impact. The block motion simulates gravity rather than using FallingBlock physics, so the original blocks can be restored safely.
can you make the falling blocks not go back and also it doesnt look at mannequins and players anymore and also its a little bit weak like anyone can jjust walk out dont you think?
Make the block debris fly outward and fall away instead of visibly returning.
Restore the original terrain safely after the effect.
Ensure the slam hits nearby players, mannequins, and mobs, and make its knockback harder to escape.
Slam debris now flies farther outward on a varied gravity arc instead of appearing to return to its starting spot. The original terrain still restores safely.
Expanded the slam’s target search and check entity hitboxes, so nearby players and mannequins are easier to catch.
Strengthened the launch to 1.0 upward and 0.55 outward. Existing target, friendly-fire/team, and wall settings still apply.
NOOO I DONT WANT THE DEBRIS TO COMEE BACCKKK I WANT THEM TO PLACE WHEREEVER THEY FALL AND ALSO CAN YOU MAKE IT SO WHEREEVER YOURE LOOKING AT IS WHERE THE SCYTHE SPAWNS AND ALSO CAN YOU MAKE IT SO PLAYERS OR MANNEQUINS IN THAT RADIUS WILL BE CHAINED SO THEY CANT ESCAPE
Change slam debris to real falling blocks that settle where they land.
Spawn/aim the scythe along the player’s look direction.
Chain players and mannequins in the slam radius so they can’t move until the effect ends.
Updated the slam:
Real FallingBlocks now launch outward and upward with varied velocities, then settle where they land. Their original blocks are not restored; protected blocks and tile-entity blocks remain excluded.
The scythe’s spawn point now follows your full look direction, stopping at the first block hit or using the configured range if nothing is hit.
Valid players and mannequins inside the slam radius are held at their position with visible chain particles until the ultimate ends. Targeting and team settings still apply.
Note: This permanently changes terrain wherever the debris starts and lands.
the block placing doesnt appear accurately and also it doesnt look at targets accurately
Aim the slam ray at the first valid entity or block hit, not just blocks.
Point the scythe toward the target in 3D, including targets above or below it.
Pick each debris block from that column’s ground height, so uneven terrain doesn’t force them to start at one flat level.
Updated the slam aiming and debris placement in LifeReaperController.java:
The scythe now aims at the first valid target or block along your view, whichever is closer, and rotates toward targets above or below it.
Debris now starts from the actual ground height in each terrain column instead of a single flat level; the source block is cleared before the falling block spawns.
Falling blocks still use Minecraft’s physics, so they place where they land when the landing spot allows it.
can you add more different debris position like
the other is HIGher the other is lower and increase the radius to 10
and also why is the scythe model not looking at targets use the angle u used for rotating the scythe down but it doesnt look down its just to help you
Vary debris launch heights so blocks start at visibly different levels.
Increase the slam radius to 10.
Fix scythe pitch so it visibly points downward toward targets below the player.
Fixed in the Life Reaper slam:
Debris now starts at staggered heights and launches with more varied arcs. It only moves once per ultimate, so the repeated slams won’t keep digging deeper.
Set the slam radius to 10 blocks for both debris and target hits.
Fixed the scythe’s vertical aim: its direction was flattening the target vector with
.setY(0), which removed the height difference and prevented it from looking up or down.
Debris still permanently changes terrain where blocks fall; with a radius of 10, that can affect up to about 317 blocks per ultimate.
BRO ARE YOU FUCKING STUPID ITS SLAMMING DOWN THE WRONG WAY
Fixed the downstroke rotation: it now continues from the rising angle instead of swinging back through center and turning the scythe the opposite way.
i only told you to fix the scythe not looking at targets not change the slamming down angle
Restored the original slam-down angle. The scythe still rotates toward targets; I changed only the falling-phase tilt.
and also the throw cant throw wherever you want you can only throw it straight
Fixed the throw direction: it now uses the player’s full eye-level look vector, including vertical aim, instead of flattening it to horizontal.
Slaming the wrong way
Fixed the downstroke direction: the scythe now continues its swing from the raised position instead of reversing through center. I left the target-facing rotation unchanged.
when looking at a target the slamming goes the wrong way
Fixed the target-facing direction to use the slam’s fixed impact point instead of the scythe’s changing position. That stops its aim from flipping as it rises and falls. I left the slam angle unchanged.
does llook at targets correctly it looks at targets rotated slightly to the right and the scythe's position is slighty rotated to the right not straight
Corrected the scythe’s tracking to aim from its current position directly at the target’s center using a 3D rotation. The slam’s impact point and downstroke angle are unchanged.
still slams the wrong angle BRO HOW HARD IS THIS IVE ALREADY WASTED 20 FUCKING CREDITS FOR YOU TO FIX THIS HOW ABOUT INSTEAD IT SPINS TO THE TARGET THE SAME SPIN AS THROW BUT THE SCYTHE MODEL IS BIG IT WILL TWEEN TO THE TARGET FAST THEN STOPS FOR 3 SECOND THEN GOES AGAIN STOPS FOR 3 SECONDS THEN GOES AGAIN THEN KEEPS GOING 4 DAMAGE PER HIT EVEN IF YOU HAVE ARMOR
Replace the slam’s current swing with a fast target-facing spin, then hold for 3 seconds between strikes.
Repeat the strike cycle and deal exactly 4 damage per hit, bypassing armor.
Replaced the old up/down slam with a large scythe that spins like the throw and travels straight from your view to the aimed point in 6 ticks. It hits for 4 damage per strike, pauses 3 seconds between strikes, then repeats for the configured slam count. The damage uses the magic damage source to bypass armor.
package com.kodari.lifesteal;
import com.cryptomorin.xseries.XAttribute;
import com.cryptomorin.xseries.XMaterial;
import com.cryptomorin.xseries.XSound;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.GameMode;
import org.bukkit.OfflinePlayer;
import org.bukkit.NamespacedKey;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.command.TabCompleter;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.entity.Player;
import org.bukkit.entity.Mannequin;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.EntityDeathEvent;
import org.bukkit.event.entity.PlayerDeathEvent;
import org.bukkit.event.player.PlayerInteractEvent;
import org.bukkit.event.player.PlayerChangedWorldEvent;
import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.event.player.PlayerQuitEvent;
import org.bukkit.event.player.PlayerRespawnEvent;
import org.bukkit.inventory.EquipmentSlot;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;
import org.bukkit.persistence.PersistentDataType;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.scheduler.BukkitTask;
import org.bukkit.event.block.Action;
import net.kyori.adventure.text.Component;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.UUID;
public final class LifestealPlugin extends JavaPlugin implements Listener, TabCompleter {
private final Map<UUID, Integer> hearts = new HashMap<>();
private final Set<UUID> eliminated = new HashSet<>();
private final Set<UUID> processedDeaths = new HashSet<>();
private File heartsFile;
private NamespacedKey swordKey;
private NamespacedKey reaperKey;
private NamespacedKey temporaryReaperKey;
private AbilityController abilities;
private LifeReaperController reaper;
@Override
public void onEnable() {
saveDefaultConfig();
swordKey = new NamespacedKey(this, "life_sword");
reaperKey = new NamespacedKey(this, "life_reaper");
temporaryReaperKey = new NamespacedKey(this, "temporary_life_reaper");
heartsFile = new File(getDataFolder(), "hearts.yml");
loadHearts();
abilities = new AbilityController(this);
reaper = new LifeReaperController(this);
reaper.validateConfig();
Bukkit.getPluginManager().registerEvents(this, this);
Bukkit.getPluginManager().registerEvents(abilities, this);
Bukkit.getPluginManager().registerEvents(reaper, this);
getCommand("lifereaper").setTabCompleter(this);
abilities.start();
reaper.start();
for (Player player : Bukkit.getOnlinePlayers()) {
initializePlayer(player);
}
}
@Override
public void onDisable() {
if (abilities != null) {
abilities.stop();
}
if (reaper != null) {
reaper.stop();
}
saveHearts();
}
private void loadHearts() {
if (!getDataFolder().exists() && !getDataFolder().mkdirs()) {
getLogger().warning("Could not create plugin data folder.");
}
YamlConfiguration data = YamlConfiguration.loadConfiguration(heartsFile);
for (String key : data.getKeys(false)) {
try {
hearts.put(UUID.fromString(key), data.getInt(key));
} catch (IllegalArgumentException ignored) {
getLogger().warning("Ignoring invalid heart-data UUID: " + key);
}
}
}
private void saveHearts() {
YamlConfiguration data = new YamlConfiguration();
hearts.forEach((id, amount) -> data.set(id.toString(), amount));
try {
data.save(heartsFile);
} catch (IOException exception) {
getLogger().severe("Could not save hearts.yml: " + exception.getMessage());
}
}
private void initializePlayer(Player player) {
hearts.putIfAbsent(player.getUniqueId(), getConfig().getInt("general.starting-hearts", 10));
applyMaximumHealth(player);
if (getConfig().getBoolean("general.eliminate-at-minimum", true)
&& hearts.get(player.getUniqueId()) <= getConfig().getInt("general.minimum-hearts", 1)) {
eliminated.add(player.getUniqueId());
}
saveHearts();
}
@EventHandler
public void onJoin(PlayerJoinEvent event) {
processedDeaths.remove(event.getPlayer().getUniqueId());
initializePlayer(event.getPlayer());
if (eliminated.contains(event.getPlayer().getUniqueId())) {
Bukkit.getScheduler().runTask(this, () -> event.getPlayer().setGameMode(GameMode.SPECTATOR));
}
}
@EventHandler
public void onQuit(PlayerQuitEvent event) {
abilities.cancelFor(event.getPlayer().getUniqueId());
reaper.cancelFor(event.getPlayer());
saveHearts();
}
@EventHandler
public void onWorldChange(PlayerChangedWorldEvent event) {
reaper.cancelDualWield(event.getPlayer().getUniqueId());
}
@EventHandler
public void onRespawn(PlayerRespawnEvent event) {
processedDeaths.remove(event.getPlayer().getUniqueId());
Bukkit.getScheduler().runTask(this, () -> {
Player player = event.getPlayer();
applyMaximumHealth(player);
if (eliminated.contains(player.getUniqueId())) {
if (getConfig().getString("general.elimination-mode", "SPECTATOR").equalsIgnoreCase("KICK")) {
player.kickPlayer(color(message("messages.eliminated")));
} else {
player.setGameMode(GameMode.SPECTATOR);
}
}
});
}
@EventHandler
public void onDeath(PlayerDeathEvent event) {
Player victim = event.getEntity();
UUID victimId = victim.getUniqueId();
abilities.cancelFor(victimId);
if (!getConfig().getBoolean("lifesteal.enabled", true) || !processedDeaths.add(victimId)) {
return;
}
Player killer = victim.getKiller();
if (killer == null || killer.equals(victim)) {
return;
}
org.bukkit.Location deathLocation = victim.getLocation().clone();
abilities.bloodSplatter(deathLocation);
playSound(deathLocation, "ENTITY_ZOMBIE_BREAK_WOODEN_DOOR");
Bukkit.getScheduler().runTaskLater(this,
() -> playSound(deathLocation, "ENTITY_ALLAY_AMBIENT_WITH_ITEM"), 20L);
Bukkit.getScheduler().runTaskLater(this,
() -> playSound(deathLocation, "ENTITY_ALLAY_DEATH"), 30L);
int min = getConfig().getInt("general.minimum-hearts", 1);
int max = getConfig().getInt("general.maximum-hearts", 40);
int transfer = Math.max(0, getConfig().getInt("general.hearts-per-player-kill", 1));
int victimHearts = getHearts(victim);
int killerHearts = getHearts(killer);
int actual = Math.min(transfer, Math.min(victimHearts - min, max - killerHearts));
if (actual <= 0) {
return;
}
setHearts(victim, victimHearts - actual);
setHearts(killer, killerHearts + actual);
sendMessage(victim, message("messages.lost-heart").replace("{hearts}", String.valueOf(getHearts(victim))));
sendMessage(killer, message("messages.gained-heart").replace("{hearts}", String.valueOf(getHearts(killer))));
if (getConfig().getBoolean("lifesteal.animation.enabled", true)) {
abilities.heartTransfer(victim.getLocation(), killer.getUniqueId(),
getConfig().getInt("lifesteal.animation.duration-ticks", 24));
playSound(victim.getLocation(), getConfig().getString("lifesteal.animation.sound", "ENTITY_PLAYER_LEVELUP"));
}
if (getConfig().getBoolean("general.eliminate-at-minimum", true) && getHearts(victim) <= min) {
eliminated.add(victimId);
sendMessage(victim, message("messages.eliminated"));
}