for 26.2 paper
📄
pasted-code-1786875650669.txt
txt
259 lines
▶
LEGENDARY WEAPONS SYSTEM
Server-only Minecraft system. Each legendary weapon has exactly 1 legitimate copy. No client-side mods are required. Every weapon has a unique ability, Charge system and bounty hunt.
FORGING SYSTEM
Every weapon has a unique, difficult 3x3 recipe using all 9 crafting slots. Recipes require rare materials from the Overworld, Nether and End.
Players use `/legendary recipes` to open a INVENTORY GUI showing every weapon. Selecting a weapon shows its exact 3x3 recipe, ability, Charge cost and cooldown.
When the correct recipe is placed in a crafting table, all ingredients are consumed. The weapon appears directly above the crafting table as a floating item, constantly spinning and hovering. It cannot be picked up, moved, pushed, destroyed or duplicated during forging.
A 5-minute Minecraft boss bar appears:
`VOIDBLADE FORGING — 04:59`
The exact X/Y/Z coordinates of the crafting table are announced to everyone. Killing the crafter does not cancel the forge.
At 0:00, the weapon drops onto the crafting table and can be picked up.
If a holder dies, the weapon drops at their death location and the exact coordinates are announced to everyone.
UNIVERSAL BOUNTY SYSTEM
Every weapon uses the same bounty system to generate Charge. When picked up, the weapon assigns its holder one specific player to hunt. Teams do not matter; teammates can be selected.
Killing the assigned target gives **+25 Charge**. The same player cannot be selected again until every eligible player has been targeted. Once everyone has been hunted, the bounty cycle resets.
When a bounty starts:
Hunter:
`NEW BOUNTY — Target: [Player] — Reward: +25 Charge`
Target:
`YOU HAVE BEEN MARKED`
The hunter can hover over the weapon in their inventory to see:
`Bounty: Steve`
`Charge: 50/100`
`Next Clue: 04:32`
`Ability: Rift`
`Cost: 12 Charge`
`Cooldown: 20s`
Charge has a maximum of 100 and carries between bounties. Every bounty gives +25 Charge, while every ability costs no more than 12 Charge, guaranteeing at least 2 uses per bounty.
BOUNTY TRACKING
The hunter normally receives a tracking clue every **5–10 minutes**. Before the clue, the weapon shows:
`Next Clue: 04:32`
The clue gives approximate distance and direction, never exact coordinates.
Example:
`TRACKING CLUE`
`Target: Steve`
`Direction: NORTH-EAST`
`Distance: ~700 blocks`
Distances are rounded into rough values such as ~100, ~250, ~500, ~750, ~1,000 or ~1,500 blocks.
Clues can also mention general movement, biome/region or whether the target has recently changed direction.
If the target moves a significant distance very quickly, the system can trigger an earlier tracking update instead of waiting for the normal clue timer.
Example:
`TARGET MOVEMENT DETECTED`
`TRACKING UPDATED`
`Direction: SOUTH`
`Distance: ~450 blocks`
Emergency updates have a cooldown so the hunter cannot constantly track a moving target.
The target sees:
`YOUR PURSUER'S TRACKING HAS UPDATED`
but never receives the actual direction or distance.
At 100 blocks:
Hunter: `YOU ARE NEAR YOUR TARGET`
Target: `YOUR HUNTER IS NEARBY`
If the target is moving away from the hunter:
Hunter: `YOUR TARGET IS FLEEING`
At 50 blocks:
Hunter: `YOUR TARGET IS EXTREMELY CLOSE`
Target: `THE TIME HAS COME`
The target receives Glow for **5 seconds**.
If the target escapes, close-range tracking stops and the hunter receives no tracking clues for **30 minutes**. After 30 minutes, the normal 5–10 minute tracking cycle resumes.
WEAPON WELCOME MESSAGES
When a player picks up a legendary weapon, its unique welcome message appears.
VOIDBLADE:
`VOIDBLADE HAS CHOSEN A NEW HUNTER: [Player]`
`THE HUNT SHALL NOW BEGIN.`
GRAVEBREAKER:
`GRAVEBREAKER HAS AWAKENED IN THE HANDS OF [Player]`
`LET THE EARTH TREMBLE.`
STORMBOW:
`STORMBOW HAS FOUND A NEW WIELDER: [Player]`
`THE STORM ANSWERS YOUR CALL.`
AEGIS:
`AEGIS HAS CHOSEN [Player]`
`STAND YOUR GROUND.`
BLOODFANG:
`BLOODFANG HAS AWAKENED: [Player] IS ITS NEW WIELDER`
`LET THE HUNT FEED THE BLADE.`
TIDEBREAKER:
`TIDEBREAKER HAS RISEN WITH [Player]`
`THE TIDE HAS TURNED.`
INFERNO:
`INFERNO HAS FOUND ITS NEW WIELDER: [Player]`
`LET THE WORLD BURN.`
VOIDBLADE
Recipe:
1 Netherite Sword
1 Nether Star
2 Echo Shards
2 Ender Pearls
3 Obsidian
Rift: Teleport forward and briefly apply Slowness to nearby enemy players.
Cost: 12 Charge
Cooldown: 20 seconds
GRAVEBREAKER
Recipe:
1 Netherite Axe
1 Nether Star
2 Ancient Debris
2 Crying Obsidian
1 Heavy Core
1 Netherite Block
1 Respawn Anchor
Quake: Slam the ground and knock back nearby enemy players. The wielder is unaffected.
Cost: 12 Charge
Cooldown: 20 seconds
STORMBOW
Recipe:
1 Bow
1 Nether Star
2 Echo Shards
2 Lightning Rods
1 Trident
1 Amethyst Block
1 Copper Block
Stormshot: A fully charged arrow creates controlled lightning at the impact point. The wielder is immune to their own lightning.
Cost: 10 Charge
Cooldown: 15 seconds
Maximum stored shots: 5
AEGIS
Recipe:
1 Shield
1 Netherite Ingot
1 Nether Star
2 Amethyst Blocks
1 Heavy Core
1 Enchanted Golden Apple
1 Netherite Block
Bastion: Greatly reduces damage and knockback to the wielder for 3 seconds.
Cost: 12 Charge
Cooldown: 45 seconds
BLOODFANG
Recipe:
1 Netherite Sword
1 Nether Star
2 Ghast Tears
2 Redstone Blocks
1 Wither Rose
1 Heavy Core
1 Ancient Debris
Blood Rush: Activate Bloodlust to give the wielder temporary Speed after building it through PvP hits.
Cost: 10 Charge
Cooldown: 25 seconds
TIDEBREAKER
Recipe:
1 Trident
1 Heart of the Sea
1 Nether Star
2 Prismarine Crystals
1 Nautilus Shell
1 Sponge
1 Conduit
Undertow: Pulls nearby enemy players toward the wielder. The wielder is unaffected.
Cost: 12 Charge
Cooldown: 25 seconds
INFERNO
Recipe:
1 Netherite Sword
1 Nether Star
2 Blaze Rods
1 Magma Cream
1 Fire Charge
1 Ancient Debris
1 Heavy Core
1 Crying Obsidian
Flame Step: Dash forward and leave a short-lived fire trail. The wielder is immune to their own trail.
Cost: 10 Charge
Cooldown: 15 seconds
UNIVERSAL RULES
Each weapon has a unique internal ID preventing fake copies, renamed-item exploits and duplication. Each weapon has its own Charge pool.
Every weapon follows:
View Recipe → Gather materials → Complete exact 3x3 recipe → Ingredients consumed → Weapon floats and spins above crafting table → Cannot be picked up → 5-minute forge → Exact coordinates revealed → Players fight over forge → Weapon drops → Player claims it → Welcome message → Bounty assigned → Track target → Kill target → +25 Charge → Use ability → Repeat.
If the holder dies:
Weapon drops → Exact death coordinates announced → Players fight for it → New player claims it → Welcome message → New bounty begins.
Create the Paper/Gradle project and plugin metadata for the legendary weapons system.
Add weapon definitions, unique-item state, persistence, exact 3×3 recipes, and five-minute forging.
Add bounty assignment, charge rewards, tracking clues, and all seven abilities.
Add the recipe/detail inventory GUI, commands, and event wiring.
I found two generation-time issues in the initial files: a Lombok final-setter call and a malformed boss-bar title string. I’m correcting only those compile-blocking lines.Created the Legendary Weapons Paper plugin project with:
Seven unique legendary weapons and persistent internal IDs.
Exact 3×3 crafting recipes with consumed ingredients.
Five-minute floating forge process with boss bars and coordinate announcements.
Recipe and detail inventory GUIs via
/legendary recipes.Bounty selection, charge rewards, target cycling, tracking clues, proximity alerts, and glowing.
Implemented abilities for Voidblade, Gravebreaker, Stormbow, Aegis, Bloodfang, Tidebreaker, and Inferno.
Death drops, pickup claiming, welcome messages, item protection, persistence, and cooldown handling.
Gradle build, plugin metadata, permissions, and configuration files.
can u buff the damage on each weapon and max pre enchantments on the custom weapons and make update the next clue to to constantly update the timer and reduce next clue time to 5 mins and give a admin command to test it and make sure if its in a 25 block radius the prey it instanly trigger the 25 block hunt thing rather than waiting for next clue
Increase each weapon’s base damage and apply maximum compatible enchantments to custom weapon items.
Make the tracking “Next Clue” countdown update continuously and set the normal clue interval to 5 minutes.
Trigger the close-range hunt alerts immediately when hunter and target enter 25 blocks.
Add an admin test command for tracking/proximity behavior and wire the changes into the existing command system.
Implemented:
Buffed weapon damage:
Voidblade: +8
Gravebreaker: +10
Stormbow: +6 arrow damage
Aegis: +4
Bloodfang: +9
Tidebreaker: +8
Inferno: +8
Added maximum-level pre-enchantments appropriate to each weapon.
Added both main-hand and off-hand attack damage modifiers.
Increased Gravebreaker’s Quake damage from 6 to 10.
Reduced normal tracking clue interval to exactly 5 minutes.
Weapon lore timers now refresh every second so
Next Clueconstantly counts down.Targets entering a 25-block radius immediately receive the extreme hunt alert and 5 seconds of Glow without waiting for a clue.
Added admin testing command:
/legendary admin testtracking <target>
Or specify a weapon:
/legendary admin testtracking VOIDBLADE <target>
Requires legendary.admin, granted to operators by default.
also sometimes the bounty on weapons doesnt work and update the charge and item lore (this is if i got more than 1 weapon)
Fix bounty handling so it works reliably when multiple custom weapons are owned.
Keep charge and lore state synchronized for every weapon item, not just one held item.
Fixed intermittent bounty claims by processing the bounty kill before releasing any weapon dropped during the death event.
Bounty lore now refreshes immediately when a new target is assigned or a bounty is claimed.
Charge and
Next Cluelore now refreshes across all weapon types and every matching weapon in inventories.Dropped custom weapons are also updated so their lore stays current.
Proximity checks now still trigger the 25-block alert even while normal clue tracking is suppressed.
add visual affects for each ability also make a testing admin command to instantly craft weapon also abilites stop working after a few uses and charge stops function like gaining or losing
Add visual effects to each weapon ability using the existing ability architecture.
Add an admin command to instantly craft/give any custom weapon.
Fix ability-use and charge state so repeated uses continue working and charge still gains/loses correctly.
For the ability effects, I’ll keep the existing mechanics unchanged and add cross-version XSeries particle bursts/trails at each ability’s activation, impact, or movement points.
Add an admin-only
/legendary admin craft <weapon>command that gives the requested custom weapon directly, reusing the normal weapon item builder and supporting tab completion.
Trace the shared weapon state, charge tick, bounty/kill paths, and ability cooldown handling to identify why state stops updating after several uses, then repair the root cause across all weapon types.
The lockout has two concrete causes: ability charge deductions were only live in memory, and Stormbow’s five-shot counter was never replenished. Bounty completion also returned after the first matching weapon, so a player holding multiple weapon types could charge only one of them. I’m fixing all three paths and persisting each state change.
Implemented:
Added visual effects for every ability:
Rift: portal effects at departure/arrival
Quake: shockwave, cloud, and impact particles
Stormshot: firing sparks and lightning impact
Bastion: totem protection effect
Blood Rush: damage/speed effect
Undertow: water pull effects
Flame Step: flame trail and arrival burst
Added admin command:
/legendary admin craft <weapon> [player]
Examples:
/legendary admin craft VOIDBLADE
/legendary admin craft STORMBOW Steve
The command gives the weapon with full charge, starts its bounty, and works from console when a player is specified.
Fixed ability state issues:
Charge deductions now save immediately.
Bounty kills now reward every matching weapon instead of only the first one.
Stormbow shots reset when a bounty is completed or a weapon is claimed.
Bloodfang hit state resets correctly.
Charge and ability state remain synchronized across multiple custom weapons.
also make a config file that lets me change ability damage, cooldowns, charge cost and crafting recipes
Add configurable ability damage, cooldowns, and charge costs with defaults matching current behavior.
Move crafting recipes into
config.ymland load them for every weapon.Wire config reload/use paths so changes apply consistently to abilities and crafted items.
The current values are hardcoded in WeaponRegistry, AbilityManager, and the recipe definitions. I’m adding a weapon-settings section so persistent weapon state under weapons remains untouched, with startup defaults preserving the current behavior. ability-damage will control the abilities that currently deal damage (Gravebreaker and Stormbow).
Implemented configurable weapon settings in config.yml.
Each weapon now supports:
weapon-settings:
GRAVEBREAKER:
charge-cost: 12
cooldown-seconds: 20
ability-damage: 10
recipe:
- NETHER_STAR
- ANCIENT_DEBRIS
- CRYING_OBSIDIAN
- NETHERITE_AXE
- HEAVY_CORE
- ANCIENT_DEBRIS
- CRYING_OBSIDIAN
- NETHERITE_BLOCK
- RESPAWN_ANCHOR
Changes include:
Configurable charge costs.
Configurable ability cooldowns.
Configurable ability damage:
Gravebreaker’s Quake damage.
Stormbow’s Stormshot arrow damage.
Configurable 3×3 crafting recipes for every weapon.
Defaults preserve the current values.
Weapon item lore now displays configured ability damage.
Existing persistent bounty and weapon state remains under
weapons, separate from the new settings section.
Changes apply after restarting the plugin/server.
add way more vfx so abilities are more obvious. Make bloodfang do lifesteal (make it be able toi change in config) change gravebreaker to use Evoker Fangs and knockback as its attack. increase tidebreakers range give inferno after ability use give fire protection and strength 1 for 10 seconds also give weapon ability description and also make it so the ability button is R
Expand ability VFX and update the ability mechanics/configuration: Bloodfang lifesteal, Evoker Fangs/knockback Gravebreaker, Tidebreaker range, and Inferno’s temporary buffs.
Add clear ability descriptions to weapon lore and update the activation guidance to use the R key where the client/server setup supports it.
The ability changes will use the existing weapon-settings configuration. Bloodfang lifesteal will apply on each successful player hit, Gravebreaker will spawn Evoker Fangs and retain configurable knockback, Tidebreaker will use a configurable radius, and Inferno will grant Fire Resistance plus Strength I for its configured duration.
The server cannot receive a literal keyboard R event from vanilla Minecraft. I’m mapping the ability to the swap-hand event as well, so players can bind Swap Hands to R in Minecraft controls; the item lore will explicitly show R (Swap Hands). Existing right-click activation remains available.
Implemented:
Added much more visible VFX to every ability:
Rings, bursts, trails, sounds, impact particles, flame/water effects, hearts, portals, and explosions.
Bloodfang now has configurable lifesteal on successful PvP hits:
YAMLBLOODFANG: lifesteal-percent: 20Gravebreaker now:
Spawns Evoker Fangs around affected targets.
Applies knockback.
Supports configurable range and knockback:
YAMLGRAVEBREAKER: ability-range: 6 knockback-multiplier: 1.4 knockback-y: 0.7Tidebreaker’s range is increased and configurable:
YAMLTIDEBREAKER: ability-range: 14Inferno now grants Fire Resistance and Strength I for 10 seconds:
YAMLINFERNO: effect-duration-seconds: 10Weapon lore now displays:
Ability description.
Ability button.
Lifesteal percentage for Bloodfang.
Range for Tidebreaker.
Added swap-hand ability activation. Bind Minecraft’s Swap Hands control to
R; the lore now displays:Plain TextAbility Button: R (Swap Hands)Vanilla servers cannot directly detect a literal keyboard
Rpress, so this uses the server-recognized swap-hand event. Right-click activation still works too.
Can u add voidbreakers tp distance a config and also make inferno fire trail last longer and make the path a circle around the player 4 block radius ,ake sure u can change in config
Add configurable Voidbreaker teleport distance and use it in the ability.
Make Inferno’s fire trail configurable for duration and circular radius around the player.
Update weapon settings/lore so the active values are clear and restart-safe.
Implemented:
Added configurable Voidblade teleport distance:
YAMLVOIDBLADE: teleport-distance: 8Inferno now creates a circular fire trail around the player after teleporting.
Added configurable Inferno fire trail settings:
YAMLINFERNO: fire-trail-radius: 4 fire-trail-duration-seconds: 15Fire trail duration is now longer by default than before.
Weapon lore now displays:
Voidblade teleport distance.
Inferno fire circle radius and duration.
Existing Inferno fire-resistance and Strength duration remains controlled by:
YAMLeffect-duration-seconds: 10
gravebraker make it so it spawns evoker fangs (the entity) around the player in a circle that deals damage because currently it does nothing also make the voidblade also apply darkness effect to anyone near after dash except for the user
Replace Gravebreaker’s target-centered placeholder fangs with real
EvokerFangsentities placed in a configurable circle around the caster.Configure fang damage, circle radius, count, and activation delay while preserving the existing knockback.
Apply configurable Darkness to nearby players after Voidblade’s dash, excluding the user.
Keep the existing ability VFX and charge/cooldown flow intact.
Implemented.
Gravebreaker
Spawns actual
EvokerFangsentities in a configurable circle around the player.Fangs now deal the configured ability damage through the entity damage event.
Existing knockback is preserved.
Added VFX around every fang.
Voidblade
Nearby players are now given Darkness after the dash.
The Voidblade user is excluded.
Existing Slowness remains.
New configuration:
weapon-settings:
VOIDBLADE:
darkness-radius: 4
darkness-duration-seconds: 5
GRAVEBREAKER:
fang-radius: 4
fang-count: 16
fang-attack-delay-ticks: 10
ability-damage: 10
Weapon lore now displays the Voidblade Darkness settings and Gravebreaker fang circle settings.
dash doesnt work on the voidblade and also make it so i can config it
Fix Voidblade dash execution and make its distance/behavior read reliably from config.
Preserve the existing darkness effect and update the weapon lore/config defaults for the active dash settings.
Fixed Voidblade dash behavior.
Added reliable horizontal direction fallback when looking straight up/down.
Dash now always uses at least 1 block and rounds the configured distance correctly.
Added the new config option:
weapon-settings:
VOIDBLADE:
dash-distance: 8
Existing
teleport-distanceconfigs are still supported as a fallback.Voidblade lore now displays the configured Dash Distance.
Restart the plugin/server after changing the config.
and grave breaker still doesnt do damage it just farts and does jack shit and you dont even see the evoker fangs
Fix Gravebreaker’s fang spawning so the entities are visibly created at valid locations.
Apply damage directly when the ability fires, rather than relying only on fang entity damage events.
Keep the configurable damage, radius, count, and delay settings intact.
The current code only changes the fang event’s damage value; it does not guarantee a damage event is emitted, and it places fangs at the world surface instead of the player’s arena/cave level. I’m making the fangs visible at the player’s Y level, extending their lifetime, cancelling unreliable automatic fang damage, and applying configured damage at the fang eruption.
Paper’s EvokerFangs API does not expose a setLifeTicks method, so I’m removing that invalid call while retaining the configurable attack delay; the fangs’ normal entity lifetime is sufficient for their visible attack animation.Fixed Gravebreaker:
Evoker Fangs now spawn at the player’s current height instead of the world surface, so they appear correctly in caves and arenas.
Fangs are actual
EvokerFangsentities arranged in the configured circle.Fang damage is now applied manually when they erupt, so it no longer relies on unreliable automatic fang damage events.
Custom fang damage events are cancelled to prevent duplicate damage.
Added eruption particles, explosion effects, critical-hit particles, and fang attack sounds.
Existing config values remain active:
GRAVEBREAKER:
ability-damage: 10
fang-radius: 4
fang-count: 16
fang-attack-delay-ticks: 10
Restart the plugin/server after updating the JAR.
so jew the voidblade dash tp thing still dont work like its meant to tp u where ur camera is facing 10 blocks and the gravebreaker does nothing adnd change the gravebreaker ability to be a aoe shockwave that does damage
Fix Voidblade so it teleports in the player’s facing direction up to the configured distance, stopping safely at blocked locations.
Replace Gravebreaker’s fang ability with a configurable AOE shockwave that visibly damages and knocks back nearby enemies.
Voidblade’s current code deliberately flattens the look vector to horizontal, so looking up/down cannot dash along the camera direction. I’m switching it to the full camera vector, keeping collision checks, and setting the configurable default to 10 blocks.
Gravebreaker is still relying on the old fang implementation and its delayed entity checks. I’m removing that path entirely: the ability will now immediately damage every nearby living enemy inside the configured ability-range, apply knockback, and render an expanding shockwave ring so the activation is unmistakable.
Voidblade dash fixed: now follows the full camera direction, including looking upward or downward, instead of forcing horizontal movement.
Default dash distance is now 10 blocks and remains configurable:
YAMLVOIDBLADE: dash-distance: 10Dash stops safely when it reaches a solid block.
Gravebreaker replaced: Evoker Fangs were removed and replaced with an immediate AOE shockwave.
Damages nearby living entities.
Applies configurable knockback.
Includes expanding sonic/critical particle rings and impact effects.
Gravebreaker settings remain configurable:
YAMLGRAVEBREAKER: ability-damage: 10 ability-range: 6 knockback-multiplier: 1.4 knockback-y: 0.7
Restart or reload the plugin after changing the configuration.
also make sure the voidblade applys the darkness w the slowness
Use the configured Darkness duration for both debuffs.
Force-apply Darkness and Slowness after the Voidblade teleport so existing effects cannot prevent the combo.
Voidblade now reliably applies both effects to nearby players after the dash:
Darkness uses
darkness-duration-seconds.Slowness uses the same configurable duration.
Effects are force-applied so existing effects won’t block them.
The user remains excluded.
Config remains:
VOIDBLADE:
darkness-radius: 4
darkness-duration-seconds: 5
im not sure why but the voidblade tp still dont work and same with the gravebraker maybe make the code from scratch again?
Trace the current ability trigger and execution paths for Voidblade and Gravebreaker.
Rebuild both abilities around the existing listener/manager APIs so they execute reliably.
Keep their behavior configurable and preserve the existing cooldown/permission flow.
The activation chain is wired correctly; the concrete failure is that both abilities are gated by weapon ownership and charge, and the old dash stops at the first blocked probe while using the player’s feet direction. I’m replacing both execution methods with direct, camera-based teleport and direct world-radius damage, while keeping the existing configurable charge/cooldown settings.
Rebuilt both abilities in AbilityManager:
Voidblade
Uses the player’s actual camera direction from eye level.
Teleports up to the configured
dash-distance.Stops safely before walls or solid blocks.
Applies Darkness and Slowness at the destination, excluding the user.
Shows an error if the dash is blocked or teleportation fails.
Gravebreaker
Removed the unreliable fang/entity logic.
Now immediately creates an AOE shockwave.
Directly damages nearby living entities using
ability-damage.Applies configurable knockback.
Uses the full configured
ability-rangevertically and horizontally.Added visible sonic-boom, cloud, critical, and damage particles.
Configuration remains:
weapon-settings:
VOIDBLADE:
charge-cost: 12
dash-distance: 10
darkness-radius: 4
darkness-duration-seconds: 5
GRAVEBREAKER:
charge-cost: 12
ability-damage: 10
ability-range: 6
knockback-multiplier: 1.4
knockback-y: 0.7
Make sure you are using a freshly generated weapon item, are its current owner, and have at least the configured charge cost. For testing, use:
/legendary admin craft VOIDBLADE <player>
/legendary admin craft GRAVEBREAKER <player>
Both abilities activate with R / Swap Hands or right-click.
the voidblade now doesnt apply darkness and slowness if anything u can increase the distance of how far it can apply it to someone
Updated Voidblade debuffs:
Darkness and Slowness now use a reliable online-player scan in the same world instead of nearby-entity lookup.
Both effects are force-applied after the teleport.
The user is still excluded.
The default effect radius is now 10 blocks.
darkness-radiuscontrols the range for both effects.
Configuration:
VOIDBLADE:
darkness-radius: 10
darkness-duration-seconds: 5
Increase darkness-radius further if needed, then restart or reload the plugin and regenerate/refresh the Voidblade item lore.
so why does it still not do it
The code explains it: the ability can exit before the debuff code when the Voidblade has fewer than 12 charge, and the debuff scan only checks other players around the landing point. So a target near your starting position—or any mob—is never affected, and missing potion names are silently ignored. I’m fixing the target scan to cover both sides of the dash, support all living targets, and increasing the default configurable radius.
The main reasons were:
Voidblade never runs unless it has at least 12 Charge.
Effects were only checked around the teleport destination.
Only online players were checked, excluding mobs and targets near the starting position.
Potion effects were silently skipped if no valid target was found.
Fixed:
Darkness and Slowness now apply to all nearby living entities.
Targets are checked around both the dash starting point and destination.
Default effect radius increased from 10 to 20 blocks.
darkness-radiusremains configurable:
VOIDBLADE:
darkness-radius: 20
darkness-duration-seconds: 5
Use /legendary admin craft VOIDBLADE <player> again to reset its Charge to 100, then restart the plugin after updating the JAR.
how about this after the dash it runs the command / effect @e in a certain range
Replace the unreliable debuff scan with a post-dash server-command execution for nearby entities.
Use the configured radius and duration, while excluding the Voidblade user from the command target selector.
Keep direct effect application as a fallback so the ability works even if command syntax differs by server version.
Voidblade now runs these commands immediately after the dash, centered on the player’s landing position:
execute at <player> run effect give @e[distance=..20,name=!<player>] darkness 5 0 true
execute at <player> run effect give @e[distance=..20,name=!<player>] slowness 5 0 true
Radius uses
darkness-radius.Duration uses
darkness-duration-seconds.The Voidblade user is excluded.
Works on nearby valid entities, including players and mobs.
Direct Bukkit effect application remains as a fallback if the command fails.
Current config:
VOIDBLADE:
darkness-radius: 20
darkness-duration-seconds: 5
Rebuild the plugin and restart the server to load the change.
it still doesnt work?
The command is the reason it can appear to succeed while doing nothing: dispatchCommand can return success even when @e selects no valid targets, so the Bukkit fallback never runs. I’m removing that unreliable command path and applying both effects directly to every living entity in the configured radius after the teleport.
There is also a separate activation blocker: the admin craft command sets Charge to 100 only in memory and never saves it. After a restart/reload, the Voidblade returns to 0 Charge, so activate() exits before teleporting or applying effects. I’m fixing that persistence issue too.
The main reason it still appeared not to work was the Charge state:
/legendary admin craftset Charge to100only temporarily.After a restart/reload, Charge became
0.The ability stopped at the Charge check before teleporting or applying effects.
Fixed:
Admin-crafted weapon Charge now saves permanently.
Removed the unreliable
/effect @ecommand execution.Voidblade now directly applies Darkness and Slowness to every nearby living entity within
darkness-radius.The Voidblade user is excluded.
Rebuild and restart the plugin, then run:
/legendary admin craft VOIDBLADE <player>
The current range is:
VOIDBLADE:
dash-distance: 10
darkness-radius: 20
darkness-duration-seconds: 5
Check the weapon lore to confirm it shows Charge: 100/100 before pressing R.
why does it have to be 100/100
It doesn’t need to be 100/100. That represents the Voidblade’s maximum and starting charge.
With the current config:
charge-cost: 12
the ability should activate with any charge of 12 or higher:
100/100— works50/100— works12/100— works11/100— does not activate
The admin craft command sets it to 100/100 so the weapon is immediately ready for testing. If you want Voidblade to work without charge at all, I can remove the charge requirement.
change to voidblade to be a spear with full enchant and make it so when u do the dash on the spear if it hits someone it applys darkness and slowness to them
Update Voidblade’s item definition to use a spear-compatible material with the configured full enchant set.
Change the dash hit detection so only entities struck during the dash receive Darkness and Slowness.
Preserve the existing charge, cooldown, teleport, and configurable effect duration behavior.
Voidblade is now a Trident spear with full trident enchantments:
Impaling V
Loyalty III
Channeling I
Riptide III
Unbreaking III
Mending I
The dash behavior has also changed:
It scans the entire dash path for entities.
Darkness and Slowness apply only to entities the spear dash actually hits.
The Voidblade user is excluded.
Dash hit radius is configurable with:
VOIDBLADE:
dash-hit-radius: 1.25
darkness-duration-seconds: 5
The Voidblade recipe now uses a TRIDENT in the center. You’ll need to forge or create a new Voidblade for the new spear material and enchantments to appear.
not trident i meant a netherite spear
Voidblade is now a netherite sword-based spear instead of a trident.
Changes made:
Base item changed from
TRIDENTtoNETHERITE_SWORD.Recipe center changed to
NETHERITE_SWORD.Added full sword enchantments:
Sharpness V
Looting III
Fire Aspect II
Knockback II
Sweeping Edge III
Unbreaking III
Mending I
Existing Voidblade items are converted to netherite swords when refreshed.
Dash hit detection and Darkness/Slowness behavior remain unchanged.
Paper 1.21.4 does not have a native NETHERITE_SPEAR material. This uses a netherite sword as the base item; a visual spear shape would require a resource pack or ItemsAdder/Oraxen model.
Rebuild and restart the plugin, then create/refresh the Voidblade.
its paper 26.2
Verify the project’s current Voidblade material and compatibility setup.
Switch the weapon and recipe to
NETHERITE_SPEARwhere Paper 26.2 supports it.Preserve the dash-hit Darkness/Slowness behavior and update any item-refresh/config references.
Paper 26.2 does support NETHERITE_SPEAR; the previous change incorrectly used a sword.
Updated Voidblade to:
Use
NETHERITE_SPEARas its base item.Use
NETHERITE_SPEARin the recipe.Convert existing Voidblade items to spears when the plugin starts.
Preserve the existing full enchantment set.
Keep Darkness and Slowness limited to entities hit during the dash.
Support the new material even though the bundled XSeries version may not know it yet.
Rebuild the plugin and restart the server. Existing Voidblades should automatically convert on startup. If the recipe still shows a netherite sword, change the existing server config entry manually:
weapon-settings:
VOIDBLADE:
recipe:
- NETHER_STAR
- OBSIDIAN
- ECHO_SHARD
- ENDER_PEARL
- NETHERITE_SPEAR
- ENDER_PEARL
- OBSIDIAN
- ECHO_SHARD
- OBSIDIAN
make it so its after the spear hits its lunge the enchant
Add the native
LUNGE IIIenchantment to Voidblade.Stop cancelling right-clicks for Voidblade so Paper’s spear lunge can activate.
Track that lunge and apply Darkness/Slowness only after the lunge damages a target.
Voidblade now works with Paper’s native spear lunge:
Added Lunge III to the Netherite Spear.
Right-click is no longer cancelled, so the spear’s native lunge activates.
When the lunge damages an entity, Darkness and Slowness are applied afterward.
Normal spear attacks do not apply the effects.
Existing Voidblades receive the enchant when refreshed.
Rebuild the plugin, restart the server, and refresh or recreate the Voidblade. Use right-click with the spear to lunge into a target.
remove gravebreaker and voidblade
Remove
GRAVEBREAKERandVOIDBLADEfrom the registry and all related behavior.Remove their recipes/config entries and clean any command or refresh references so the plugin loads without dangling weapon IDs.
Removed VOIDBLADE and GRAVEBREAKER completely.
Removed both weapon types and registry definitions.
Removed their abilities, effects, lunge/dash logic, and enchantments.
Removed their recipes and configuration sections.
Removed lore and announcement references.
Recipe menus, admin commands, tracking, and persistence now only use the remaining weapons.
Rebuild and restart the plugin. Existing Voidblades and Gravebreakers will no longer function as legendary weapons.
package com.kodari.legendary;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;
import java.util.Map;
public class LegendaryWeaponsPlugin extends JavaPlugin {
private WeaponManager weaponManager;
private ForgeManager forgeManager;
private BountyManager bountyManager;
private TrackingManager trackingManager;
private AbilityManager abilityManager;
private GUIManager guiManager;
@Override
public void onEnable() {
saveDefaultConfig();
Map<WeaponType, WeaponDefinition> definitions = WeaponRegistry.create(getConfig().getConfigurationSection("weapon-settings"));
weaponManager = new WeaponManager(this, definitions);
weaponManager.refreshAllItems();
forgeManager = new ForgeManager(this, weaponManager);
bountyManager = new BountyManager(weaponManager);
trackingManager = new TrackingManager(weaponManager);
abilityManager = new AbilityManager(this, weaponManager);
guiManager = new GUIManager();
new RecipeManager(this, weaponManager).register();
LegendaryListener listener = new LegendaryListener(this);
Bukkit.getPluginManager().registerEvents(listener, this);
Bukkit.getPluginManager().registerEvents(new GUIListener(guiManager), this);
LegendaryCommand command = new LegendaryCommand(this);
if (getCommand("legendary") != null) {
getCommand("legendary").setExecutor(command);
getCommand("legendary").setTabCompleter(command);
}
Bukkit.getScheduler().runTaskTimer(this, forgeManager::tick, 20L, 20L);
Bukkit.getScheduler().runTaskTimer(this, trackingManager::tick, 20L, 20L);
}
@Override
public void onDisable() {
if (forgeManager != null) forgeManager.stop();
if (weaponManager != null) weaponManager.save();
}
public WeaponManager getWeaponManager() { return weaponManager; }
public ForgeManager getForgeManager() { return forgeManager; }
public BountyManager getBountyManager() { return bountyManager; }
public TrackingManager getTrackingManager() { return trackingManager; }
public AbilityManager getAbilityManager() { return abilityManager; }
public GUIManager getGuiManager() { return guiManager; }
}