📄
pasted-code-1787041019502.txt
txt
2334 lines
▶
# BossPowers — Power Expansion & Cooldown UI Update Specification
## IMPORTANT — THIS IS AN UPDATE TO THE EXISTING BOSSPOWERS SPECIFICATION
This document is an **additional update/extension** to the existing:
**BossPowers SMP — Complete Master Development Specification**
Do NOT remove, rewrite, downgrade, or unnecessarily change any existing BossPowers functionality.
All existing systems must continue working exactly as intended, including:
- Existing Power system
- Existing INVENTORY GUI
- Existing commands
- Existing crafting system
- Existing 2-craft global limit
- Existing 5-minute forging event
- Existing targeting architecture
- Existing 60-second targeting window
- Existing ring system
- Existing protection system
- Existing WorldGuard integration
- Existing land-claim integrations
- Existing permissions
- Existing storage
- Existing configuration
- Existing cooldown architecture
- Existing Power binding
- Existing combination detection
- Existing Paper/Spigot/Folia compatibility
Only implement the changes and additions described below.
The existing plugin is already working correctly. Treat this as a **feature expansion and bug-fix update**, not a complete rewrite.
---
# 0. COMPLETE RECIPES COMMAND REMOVAL
The player-facing Recipes command must be completely removed from BossPowers.
Remove these commands entirely:
```text
/bp recipes
/bosspowers recipes
```
This is a complete command removal, not merely hiding the commands from help.
The following must be removed wherever they exist:
- `/bp recipes` command registration
- `/bosspowers recipes` command registration
- Recipes command aliases
- Recipes command handlers
- Recipes command permissions
- Recipes command tab-completion entries
- Recipes command help entries
- Any command-to-recipe-INVENTORY GUI connection
- Any messages specifically used by the Recipes command
After this change:
```text
/bp recipes
```
must behave as an unknown/invalid subcommand.
```text
/bosspowers recipes
```
must behave as an unknown/invalid subcommand.
IMPORTANT:
Removing the Recipes command does NOT mean removing the internal BossPowers crafting/recipe system.
Keep the existing:
- Internal Power recipes
- Power crafting system
- 2-craft global limit
- 5-minute forging event
- Crafting validation
- Crafting storage
- Crafting mechanics
Only the player-facing `/bp recipes` and `/bosspowers recipes` commands are being removed.
Do NOT replace the removed Recipes command with another command unless explicitly requested.
# 0.1 VOID POWER ITEM CHANGE
The current Void Power item is **Eye of Ender**.
Remove Eye of Ender completely as the Void Power item.
Replace it with:
**Echo Shard**
Therefore:
```text
VOID POWER
Old Item: Eye of Ender
New Item: Echo Shard
```
The Eye of Ender must no longer be used as the Void Power's identifying/binding item.
Do not change the Void Power's existing abilities or identity just because its item is being changed.
The Echo Shard should be used everywhere the Void Power item is referenced, including:
- Power identification
- Power binding
- INVENTORY GUI display
- Give commands
- Crafting requirements where the Void Power item itself is referenced
- Item checks
- Ability activation checks
- Existing storage/data handling where applicable
Do not leave an alternative Eye of Ender route that can still activate Void Power.
---
# 0.2 AIR-CLICK / AIR-SHIFT ACTIVATION
All BossPowers ability activation must work even when the player is looking at **air**.
The player must NOT be forced to look down at a block or entity just to activate an ability.
These inputs must work while looking at air:
```text
RIGHT CLICK
SHIFT + RIGHT CLICK
```
The ability activation check must therefore NOT require the player's crosshair to be pointing at:
- A block
- An entity
- The ground
unless the specific ability's targeting phase intentionally requires a target.
Example:
```text
Player looking at air
↓
RIGHT CLICK
↓
Ability 1 activates / targeting mode starts
```
and:
```text
Player looking at air
↓
SHIFT + RIGHT CLICK
↓
Ability 2 activates / targeting mode starts
```
For abilities that require a target, the activation should still begin normally while looking at air, then use the existing targeting system to allow the player to select the target afterward.
Do NOT make the player repeatedly look down and click the ground.
This requirement applies to:
- Ability 1
- Ability 2
- Combined activation
- Blood
- Phantom
- Void
- Storm
- Gravity
- Time
- Chaos
- Titan
- All newly added abilities
The only exception is when a specific ability explicitly requires a target/location and its targeting phase has already begun.
---
# 0.3 HOTBAR COOLDOWN STATUS UI
Add a permanent, clean cooldown status display immediately **above the player's hotbar**, inspired by the simple readability of modern SMP power systems, but with an original BossPowers design.
The display must show the status of all three ability slots:
```text
1 READY | 2 READY | COMBINE READY
```
When all abilities are ready:
```text
1 READY | 2 READY | COMBINE READY
```
When Ability 1 is used and receives a 100-second cooldown:
```text
1 100s | 2 READY | COMBINE READY
```
As the cooldown decreases:
```text
1 73s | 2 READY | COMBINE READY
```
Then:
```text
1 1s | 2 READY | COMBINE READY
```
When the cooldown reaches zero:
```text
1 READY | 2 READY | COMBINE READY
```
The same system must work independently for Ability 2 and the Combined Ability.
Example:
```text
1 READY | 2 45s | COMBINE READY
```
and:
```text
1 READY | 2 READY | COMBINE 120s
```
If multiple abilities are on cooldown at the same time:
```text
1 73s | 2 24s | COMBINE 120s
```
The display must update in real time.
Use the existing ActionBar system if available, or implement a dedicated ActionBar manager.
Do NOT create separate independent timers for the visual display.
All cooldown values must come from the same central `CooldownManager` timestamps used by the actual ability cooldown logic.
---
# 0.4 READY STATE
When an ability's cooldown finishes, its status MUST automatically return to:
```text
READY
```
The player should immediately see:
```text
1 READY
```
or:
```text
2 READY
```
or:
```text
COMBINE READY
```
Do not leave stale cooldown numbers on screen.
Do not require the player to use the ability again before the UI changes to READY.
Optional configurable ready feedback may also be sent once when a cooldown finishes:
```text
✦ Blood Mark READY!
```
However, the hotbar status is mandatory.
---
# 0.5 COOLDOWN BOSSBAR
In addition to the hotbar status display, keep the dedicated BossBar cooldown system.
When an ability is on cooldown, show a BossBar such as:
```text
✦ BLOOD MARK — COOLDOWN: 100s
```
or:
```text
✦ PHANTOM — COOLDOWN: 42s
```
The BossBar progress must decrease continuously with the same central cooldown timestamp.
When the cooldown reaches zero:
```text
BossBar disappears
```
and the hotbar status changes to:
```text
READY
```
The BossBar and hotbar status MUST always remain synchronized.
---
# 0.6 ABILITY SLOT MAPPING
The three visible cooldown slots must map consistently to the existing BossPowers controls:
```text
1 = Ability 1
2 = Ability 2
COMBINE = Combined Ability
```
Example:
```text
1 READY | 2 READY | COMBINE READY
```
If Ability 1 is triggered:
```text
1 100s | 2 READY | COMBINE READY
```
If Ability 2 is triggered:
```text
1 READY | 2 60s | COMBINE READY
```
If the Combined Ability is triggered:
```text
1 READY | 2 READY | COMBINE 180s
```
Do not change the existing keybinds just to implement this UI.
The UI represents the existing ability slots.
---
# 0.7 COOLDOWN UI CONFIGURATION
Make the hotbar cooldown display configurable.
Example:
```yaml
cooldown:
hotbar:
enabled: true
format: "&f1 {ability1} &7| &f2 {ability2} &7| &fCombine {combine}"
ready-text: "READY"
separator: " &7| "
```
Supported placeholders should include:
```text
{ability1}
{ability2}
{combine}
{time1}
{time2}
{combinetime}
```
The developer may use a cleaner placeholder structure if the existing configuration architecture requires it, but the final result MUST support the three visible states:
```text
1 READY | 2 READY | COMBINE READY
```
and:
```text
1 100s | 2 READY | COMBINE READY
```
---
# 0.8 COOLDOWN EXAMPLE
If Ability 1 has a configured cooldown of:
```text
100 seconds
```
then after successful use:
```text
1 100s | 2 READY | COMBINE READY
```
After 10 seconds:
```text
1 90s | 2 READY | COMBINE READY
```
After 99 seconds:
```text
1 1s | 2 READY | COMBINE READY
```
After 100 seconds:
```text
1 READY | 2 READY | COMBINE READY
```
The BossBar must follow the same countdown.
---
# 0.9 COOLDOWN UI MUST NOT REPLACE TARGETING UI
The existing Targeting BossBar and the new Cooldown BossBar remain separate systems.
Targeting:
```text
ABILITY 1 | TARGET: 60s
```
Cooldown:
```text
ABILITY 1 | COOLDOWN: 100s
```
Hotbar:
```text
1 100s | 2 READY | COMBINE READY
```
They must not corrupt or overwrite each other's state.
The targeting BossBar disappears when targeting ends.
The cooldown BossBar begins only after successful ability execution.
The hotbar cooldown display remains available throughout the cooldown.
# 1. CRITICAL COOLDOWN DISPLAY FIX
There is currently an issue where the Power cooldown is working internally but the player cannot properly SEE the cooldown.
This MUST be fixed.
Whenever a player successfully uses any BossPowers ability, the cooldown must become clearly visible to the player.
The cooldown display must work for:
- Ability 1
- Ability 2
- Combined Ability
- Any newly added Power ability
- Any existing Power ability
Do NOT only store the cooldown internally.
The player must receive a visible cooldown UI.
---
# 2. COOLDOWN BOSSBAR
Add a dedicated cooldown BossBar system.
When an ability enters cooldown:
```
ABILITY USED
↓
COOLDOWN STARTS
↓
COOLDOWN BOSSBAR APPEARS
↓
COUNTDOWN UPDATES
↓
COOLDOWN REACHES 0
↓
BOSSBAR DISAPPEARS
```
The BossBar should display information such as:
```
✦ BLOOD MARK — COOLDOWN: 42s
```
or:
```
✦ PHANTOM — COOLDOWN: 31s
```
The exact text must be configurable.
Example configuration:
```
cooldown:
bossbar:
enabled: true
format: "&c✦ {ability} &7— &fCooldown: &e{time}s"
```
Supported placeholders:
```
{power}
{ability}
{time}
{seconds}
{progress}
```
The progress bar should decrease smoothly as the cooldown approaches zero.
---
# 3. IMPORTANT — COOLDOWN UI LOCATION
A Minecraft BossBar normally appears at the top of the screen.
Because the player also needs immediate feedback while playing, the cooldown system should additionally support an ActionBar display.
Example:
```
✦ Blood Mark | Cooldown: 42s
```
The ActionBar should appear above the player's hotbar.
Therefore:
### BossBar
Shows the active cooldown clearly.
### ActionBar
Shows the remaining cooldown immediately above the hotbar.
Both should use the SAME cooldown timestamp.
Do NOT create two independent timers.
Example:
```
CooldownManager
↓
Timestamp
↓
BossBar
+
ActionBar
```
Both displays must remain synchronized.
---
# 4. MULTIPLE COOLDOWNS
If the player has multiple abilities with independent cooldowns, the system must not overwrite one cooldown with another.
Example:
```
Blood Mark
Cooldown: 20s
Blood Burst
Cooldown: 45s
Blood Eclipse
Cooldown: 120s
```
The UI system must handle this safely.
If only one BossBar can be displayed at a time, create a clean rotating/priority display system.
Priority:
```
Combined Ability
↓
Ability 2
↓
Ability 1
```
Alternatively, allow multiple cooldown BossBars if the implementation is stable.
Do NOT break the existing independent cooldown system.
---
# 5. COOLDOWN MUST ONLY START AFTER SUCCESSFUL EXECUTION
The cooldown must NOT accidentally start when:
- Player clicks air
- Player misses target
- Target is invalid
- Protection blocks the ability
- Ability is cancelled
- Targeting expires
unless the existing configuration explicitly defines a timeout cooldown.
Normal successful use:
```
Target selected
↓
Protection check
↓
Ability executes successfully
↓
Cooldown starts
↓
Cooldown UI appears
```
Protected/denied use:
```
Protection check
↓
DENIED
↓
Ability does not execute
↓
No normal ability cooldown
```
Existing timeout behavior remains:
```
60-second targeting window expires
↓
Targeting fails
↓
70-second timeout cooldown
```
---
# 6. BLOOD POWER — NEW ABILITIES
The Blood Power must be updated with the following exact mechanics.
Existing Blood Power functionality should remain unless specifically replaced by the mechanics below.
---
## BLOOD — PASSIVE
Keep the existing Blood passive unless the implementation requires adjustment.
Do not unnecessarily remove existing passive behavior.
---
# 7. BLOOD — RIGHT CLICK: BLOOD MARK
Input:
```
RIGHT CLICK
```
The player enters the existing targeting system.
Flow:
```
RIGHT CLICK
↓
BLOOD MARK ARMED
↓
RING APPEARS
↓
60 SECOND TARGETING WINDOW
↓
LEFT CLICK PLAYER OR MOB
↓
FINAL PROTECTION CHECK
↓
BLOOD MARK APPLIED
```
After the target is selected, that target receives a Blood Mark.
The Blood Mark lasts:
**10 seconds**
While marked:
**0.5 hearts of damage** are dealt according to the configured damage interval.
Important:
```
0.5 hearts = 1.0 Minecraft damage point
```
The ability should use the proper Minecraft damage API rather than directly manipulating health.
The damage must continue for the full 10 seconds according to the configured tick/interval.
Example:
```
Blood Mark
Duration: 10 seconds
Damage: 0.5 hearts
```
---
# 8. BLOOD MARK TARGETING WINDOW
After using:
```
RIGHT CLICK
```
the player has the existing:
**60-second targeting window**
During those 60 seconds:
```
LEFT CLICK ENTITY
```
selects the target.
If no valid target is selected:
```
60s expires
↓
Targeting cancelled
↓
Ring disappears
↓
Targeting BossBar disappears
↓
70s timeout cooldown
```
---
# 9. BLOOD — SHIFT + RIGHT CLICK: BLOOD BURST
Input:
```
SHIFT + RIGHT CLICK
```
Use the existing targeting architecture.
Flow:
```
SHIFT + RIGHT CLICK
↓
BLOOD BURST ARMED
↓
RING
↓
60 SECOND TARGET WINDOW
↓
LEFT CLICK TARGET
↓
PROTECTION CHECK
↓
EXECUTE
```
Blood Burst deals:
**1 heart of damage**
to the selected target.
The target also receives the configured Blood effect for:
**10 seconds**
The ability should work on configured:
- Players
- Mobs
according to the existing targeting configuration.
---
# 10. BLOOD — SHIFT + RIGHT CLICK AREA EFFECT
Blood Burst must also support its intended area effect.
When activated, search for valid targets within:
**5 blocks**
of the caster.
Every valid player inside the 5-block radius receives:
**1 heart of damage**
and the Blood effect for:
**10 seconds**
Do NOT affect players outside the 5-block range.
The caster should not damage themselves unless explicitly configured.
Example:
```
Caster
↓
5 block radius
↓
Players inside radius
↓
1 heart damage
↓
10 second effect
```
All targets must pass the final protection check.
---
# 11. BLOOD — COMBINED POWER
Combined input:
```
SHIFT + RIGHT CLICK + RIGHT CLICK
```
Use the existing CombinationManager.
The combined Blood ability is:
**Blood Eclipse**
If a valid player is within:
**5 blocks**
the combined ability affects them.
Effects:
```
5 blocks knockback
+
1 heart damage
+
10 second Blood effect
```
The knockback should be strong and clearly noticeable.
Use proper velocity/knockback mechanics rather than teleporting the player.
The combined ability must have its own cooldown.
The cooldown must also appear in the new cooldown BossBar/ActionBar system.
---
# 12. BLOOD PROTECTION
Every Blood ability must respect:
- WorldGuard
- GriefPrevention
- Residence
- Lands
- Towny
- Plot systems
- Other claim systems
- PvP restrictions
- Entity protection
Do NOT bypass protection.
For area abilities, perform protection checks individually for each affected entity where required.
Example:
```
Blood Eclipse
↓
Find players in 5 blocks
↓
Check each target
↓
Allowed → affect target
Denied → skip target
```
Do NOT bypass protection just because the ability is an area/combined ability.
---
# 13. PHANTOM POWER — NEW ABILITIES
Update Phantom Power with the following mechanics.
Keep existing Phantom functionality where it does not conflict with this specification.
---
# 14. PHANTOM — RIGHT CLICK
Input:
```
RIGHT CLICK
```
The player receives:
**Feather Falling**
for a configurable duration.
Default:
```
Feather Falling
```
The effect should provide meaningful protection against fall damage.
Use the existing Power ability architecture.
If the existing system requires targeting for this ability, preserve the existing architecture where appropriate.
Cooldown must be visible through the cooldown UI.
---
# 15. PHANTOM — SHIFT + RIGHT CLICK
Input:
```
SHIFT + RIGHT CLICK
```
The player enters the existing targeting system.
After:
```
LEFT CLICK TARGET
```
the Phantom user teleports to the target.
However:
**DO NOT teleport directly into the target's body.**
The player must teleport to a safe position:
**behind the target**
Example:
```
TARGET
↑
|
PLAYER TELEPORTS HERE
```
The exact distance behind the target should be configurable.
Example:
```
phantom:
teleport:
behind-distance: 2.0
```
The system must calculate the target's facing direction and place the Phantom player behind them.
Before teleporting:
- Check target protection
- Check destination protection
- Check safe destination
- Check for blocks
- Prevent suffocation
- Prevent teleporting into dangerous locations
If the destination is unsafe, find the nearest safe location behind the target.
If no safe location exists:
```
Teleport cancelled
```
---
# 16. PHANTOM — COMBINED POWER
Combined input:
```
SHIFT + RIGHT CLICK + RIGHT CLICK
```
Activates the Phantom combined ability.
The Phantom player receives:
**Feather Falling**
and the selected/affected target is launched approximately:
**10 blocks into the air**
The target should:
```
↓
Launch upward
↓
Reach approximately 10 blocks height
↓
Fall back down naturally
```
The target should NOT be teleported 10 blocks upward instantly.
Use strong upward velocity/launch mechanics.
The Phantom user receives Feather Falling so they are protected from the resulting fall where applicable.
The ability should have:
- Unique Phantom particles
- Sound effect
- Impact effect
- Combined cooldown
The combined cooldown must appear in the cooldown BossBar and ActionBar.
---
# 17. PHANTOM PROTECTION
Phantom teleportation and launch abilities must respect protection.
Before teleporting:
```
Check caster
Check target
Check destination
```
Before affecting target:
```
Check whether target can be affected
```
Never use Phantom abilities to bypass WorldGuard or land claims.
---
# 18. NEW SPECIAL POWER EFFECTS
The following effects/mechanics must be available and distributed across the remaining Powers.
Required mechanics:
- 7-block Knockback
- Meteor Shower
- Blindness
- Slowness
- Weakness
These should be integrated naturally into the remaining Power designs rather than added as random generic abilities.
---
# 19. 7-BLOCK KNOCKBACK
At least one ability must have a powerful:
**7-block knockback**
effect.
The target should be pushed approximately 7 blocks depending on terrain and physics.
Do NOT simply teleport the target.
Use velocity/knockback mechanics.
The knockback should respect:
- Protection
- Safe movement
- World boundaries
- Existing server mechanics
The exact strength should be configurable.
---
# 20. METEOR SHOWER
Add a cinematic:
**Meteor Shower**
ability.
This should feel like an anime-style meteor attack.
The ability should:
- Spawn visual meteors
- Create falling meteor particles
- Play impact sounds
- Create explosion/impact visual effects
- Damage players/mobs
- Apply knockback where configured
- Create a dramatic area effect
BUT:
**METEOR SHOWER MUST NEVER BREAK BLOCKS.**
It must not:
- Destroy terrain
- Break buildings
- Remove blocks
- Modify terrain
- Create permanent craters
- Destroy player structures
Configuration:
```
meteor:
block-break: false
block-damage: false
terrain-modification: false
```
The meteors should be purely visual/entity-damage based.
---
# 21. METEOR SHOWER PROTECTION
Meteor Shower does NOT bypass WorldGuard.
Meteor Shower does NOT bypass land claims.
Every affected target must be checked through the existing ProtectionManager.
If a player is protected from PvP/entity damage:
```
Skip that player
```
If a mob/entity cannot be affected in that protected location:
```
Skip that entity
```
No protection plugin should be disabled or bypassed.
The visual meteor effect may still be displayed if configured, but actual damage must respect protection.
---
# 22. BLINDNESS
Add an ability/effect that applies:
**Blindness**
Default duration:
**10 seconds**
The duration must be configurable.
Example:
```
effects:
blindness:
duration: 10
```
The effect must only apply to valid targets.
Protection checks are mandatory.
---
# 23. SLOWNESS
Add an ability/effect that applies:
**Slowness**
Default duration:
**10 seconds**
The amplifier should be configurable.
Example:
```
effects:
slowness:
duration: 10
amplifier: 1
```
Do not permanently slow players.
Remove/expire the effect correctly after the configured duration.
---
# 24. WEAKNESS
Add an ability/effect that applies:
**Weakness**
The duration and amplifier must be configurable.
Example:
```
effects:
weakness:
duration: 10
amplifier: 1
```
All target protection rules apply.
---
# 25. SAITAMA-INSPIRED POWER EXPANSION
The remaining five Powers should receive additional abilities inspired by the **general fighting style and visual fantasy of Saitama from One Punch Man**.
IMPORTANT:
Do NOT copy anime assets, copyrighted textures, proprietary code, dialogue, animation files, or exact implementation from another plugin.
Create original Minecraft mechanics that evoke:
- Extreme physical strength
- One-punch-style impact
- Shockwaves
- Massive knockback
- Meteor-like punches
- Ground impact
- Air pressure
- High-speed movement
- Overwhelming melee force
These should feel like anime-inspired abilities while remaining original BossPowers mechanics.
---
# 26. SAITAMA-STYLE MECHANICS
Distribute these mechanics among the remaining five Powers.
Possible abilities include:
### Heroic Punch
A massive melee impact that deals high damage and strong knockback.
### Serious Impact
A powerful forward shockwave that damages targets in a cone.
### Consecutive Punches
A rapid sequence of visual hit effects against a target.
### Ground Impact
The player strikes the ground and creates a circular shockwave.
The terrain must NOT be destroyed.
### Air Pressure
A ranged invisible/particle shockwave that pushes enemies away.
### Meteoric Strike
A high-speed movement/impact ability.
### One-Punch Impact
An extremely powerful single-target attack with a long cooldown.
### Serious Knockback
A very powerful knockback ability, configurable around the requested 7-block range.
These are examples.
The final implementation should distribute the mechanics intelligently across the five remaining Powers.
---
# 27. SAITAMA-STYLE ANIME FEEL
The new abilities should feel visually powerful.
Use combinations of:
- Critical particles
- Explosion particles
- Cloud particles
- Sweep effects
- Shockwave rings
- Sound effects
- Camera-independent particle effects
- Ground impact particles
- Lightning-like visual effects where appropriate
- High-speed movement effects
Do not destroy terrain simply to make the effects look powerful.
The goal is:
```
High visual impact
+
High gameplay impact
+
No unnecessary terrain destruction
```
---
# 28. GAROU-INSPIRED MECHANICS
Some of the five remaining Powers may also receive mechanics inspired by Garou's martial-arts/combat style.
Keep them original.
Possible mechanics:
- Rapid counterattack
- Combat stance
- Evasive dash
- Combo attack
- Counter strike
- Shockwave punches
- Target tracking
- High-speed movement
- Multi-hit melee
- Temporary damage resistance
- Momentum-based attacks
Do not copy exact anime implementations.
These should be original BossPowers abilities.
---
# 29. FIVE REMAINING POWERS
The existing Powers are:
```
VOID
STORM
GRAVITY
TIME
BLOOD
PHANTOM
CHAOS
TITAN
```
Blood and Phantom have now been specifically redesigned above.
For the remaining Powers, distribute the requested new mechanics intelligently.
Recommended distribution:
### VOID
Anime-style:
**Void Impact**
A powerful shockwave punch/impact that sends targets flying.
Additional effect:
- 7-block knockback
---
### STORM
Anime-style:
**Meteor Barrage**
A visual meteor-style attack that damages entities but never breaks blocks.
Additional effects:
- Knockback
- Area damage
---
### GRAVITY
Anime-style:
**Serious Ground Impact**
A powerful ground shockwave.
Effects:
- Area damage
- Knockback
- Slowness
No terrain destruction.
---
### TIME
Anime-style:
**Serious Counter**
Temporarily enters a combat stance.
If a target attacks during the active window, trigger a powerful counterattack.
Additional effect:
- Weakness
- Knockback
---
### CHAOS
Anime-style:
**Consecutive Impact**
Rapid multi-hit visual attack.
Additional effects:
- Blindness
- Weakness
- Knockback
---
### TITAN
Titan should retain its existing strength identity and may receive:
**Titan Serious Punch**
A very powerful single-target strike.
Effects:
- High damage
- 7-block knockback
- Impact particles
- Long cooldown
---
# 30. POWER IDENTITY
Do NOT make all Powers feel identical.
Each Power should have a distinct gameplay identity.
Example:
```
VOID
→ spatial / destructive force
STORM
→ lightning / meteor / ranged damage
GRAVITY
→ pull / crush / knockback
TIME
→ slow / counter / temporal control
BLOOD
→ damage-over-time / marks / area blood effects
PHANTOM
→ mobility / teleport / aerial attacks
CHAOS
→ unpredictable combat / curses / multi-hit
TITAN
→ raw strength / heavy impact / massive knockback
```
The anime-inspired mechanics should enhance each Power's identity instead of making every Power a copy of Saitama.
---
# 31. DAMAGE VALUES
Damage values must be configurable.
Do NOT hard-code every value directly inside ability classes.
Example:
```
powers:
blood:
blood-mark:
duration: 10
damage-hearts: 0.5
blood-burst:
damage-hearts: 1
duration: 10
radius: 5
blood-eclipse:
damage-hearts: 1
radius: 5
knockback-blocks: 5
duration: 10
```
Use the same configuration philosophy for the new Powers.
---
# 32. COMBINED ABILITY PRIORITY
Every Power must continue using:
```
SHIFT + RIGHT CLICK + RIGHT CLICK
```
for its Combined Ability.
The CombinationManager must always have priority over normal Shift + Right Click.
Example:
```
First SHIFT + RIGHT CLICK
↓
Combination window
↓
Second RIGHT CLICK
↓
COMBINED ABILITY
```
Do NOT accidentally trigger:
```
Ability 2
```
before the combination is detected.
---
# 33. COOLDOWN FOR ALL NEW ABILITIES
Every newly added ability MUST have:
- Configurable cooldown
- Timestamp-based cooldown
- Cooldown BossBar
- Cooldown ActionBar
- Correct cooldown cleanup
- Restart-safe behavior where applicable
- No duplicate timers
Example:
```
cooldown:
blood-mark: 45
blood-burst: 60
blood-eclipse: 180
phantom-feather-falling: 30
phantom-teleport: 60
phantom-launch: 150
```
Exact values may be balanced during implementation, but they must remain configurable.
---
# 34. COOLDOWN MESSAGE EXAMPLES
When cooldown starts:
```
&c✦ Blood Mark is now on cooldown: &e45s
```
When cooldown ends:
```
&a✦ Blood Mark is ready!
```
When player attempts to use an ability during cooldown:
```
&c✦ Ability is on cooldown for &e23s&c.
```
All messages must be configurable in:
```
messages.yml
```
---
# 35. TARGETING BOSSBAR VS COOLDOWN BOSSBAR
Do NOT confuse:
### Targeting BossBar
Example:
```
BLOOD MARK | TARGET: 47s
```
This exists while waiting for:
```
LEFT CLICK TARGET
```
### Cooldown BossBar
Example:
```
BLOOD MARK | COOLDOWN: 42s
```
This exists after successful ability execution.
They are two different systems.
They must never overwrite each other incorrectly.
---
# 36. TARGETING UI FLOW
The final player experience should be:
```
RIGHT CLICK
↓
ABILITY ARMED
↓
TARGETING RING
↓
TARGETING BOSSBAR
↓
60 SECOND COUNTDOWN
↓
LEFT CLICK TARGET
↓
PROTECTION CHECK
↓
TARGETING UI REMOVED
↓
ABILITY EXECUTES
↓
COOLDOWN STARTS
↓
COOLDOWN BOSSBAR APPEARS
↓
COOLDOWN ACTIONBAR APPEARS
↓
COOLDOWN FINISHES
↓
UI DISAPPEARS
↓
ABILITY READY
```
---
# 37. PROTECTION REMAINS HIGHEST PRIORITY
Nothing in this expansion changes the existing protection requirements.
BossPowers MUST continue to respect:
- WorldGuard
- GriefPrevention
- Residence
- Lands
- Towny
- PlotSquared
- GriefDefender
- Factions claim systems
- Other region systems
- PvP protection
- Entity protection
- Build protection
No new ability may bypass protection.
This includes:
- Blood damage
- Blood area effects
- Blood knockback
- Phantom teleportation
- Phantom launch
- Meteor Shower
- Shockwaves
- Saitama-style punches
- Garou-style combat
- Blindness
- Slowness
- Weakness
- Knockback
- Combined abilities
---
# 38. NO TERRAIN DESTRUCTION FOR ANIME ABILITIES
Anime-style powers may look extremely destructive, but BossPowers should avoid unnecessary terrain destruction.
Default:
```
anime-effects:
block-break: false
terrain-damage: false
```
Visual impact should be achieved using:
- Particles
- Sounds
- Knockback
- Damage
- Effects
- Shockwaves
- Rings
- Animation
- Velocity
rather than destroying the SMP world.
---
# 39. PERFORMANCE REQUIREMENT
Do not create expensive repeating tasks for every player unnecessarily.
Especially for:
- Blood Mark
- Meteor Shower
- Targeting ring
- Cooldown BossBar
- ActionBar countdown
- Phantom effects
Use centralized schedulers/managers where practical.
Cancel tasks immediately when:
- Target dies
- Player disconnects
- Targeting ends
- Ability ends
- Cooldown ends
- Plugin disables
- Player changes world where necessary
No scheduler leaks.
---
# 40. DISCONNECT HANDLING
If a player disconnects while:
```
Targeting
```
then:
- Remove ring
- Remove targeting BossBar
- Cancel targeting
- Clear targeting state
If they disconnect during:
```
Cooldown
```
the cooldown timestamp should remain correct after reconnect.
If they reconnect before cooldown expires:
```
Cooldown BossBar
+
ActionBar
```
should resume correctly.
---
# 41. DEATH HANDLING
If the caster dies while targeting:
```
Cancel targeting
Remove ring
Remove targeting BossBar
Reset state
```
If the caster dies while an ability effect is active:
Handle the effect safely according to its configured behavior.
No ghost effects.
No permanent damage tasks.
No permanent potion effects.
---
# 42. FINAL ABILITY QUALITY
Every new ability must have:
- Unique name
- Unique mechanics
- Configurable damage
- Configurable duration
- Configurable cooldown
- Proper targeting
- Proper protection checks
- Proper cooldown UI
- Particles
- Sounds
- Cleanup
- Duplicate activation protection
- Death/disconnect handling
Do not create placeholder abilities.
Do not create abilities that only send messages without real gameplay mechanics.
---
# 43. FINAL TESTING REQUIREMENTS
After implementing this expansion, test all of the following.
## Cooldown UI
```
Use ability
↓
Ability executes
↓
Cooldown starts
↓
BossBar appears
↓
ActionBar appears above hotbar
↓
Timer decreases
↓
Cooldown reaches 0
↓
Both UI elements disappear
```
---
## Blood Mark
```
RIGHT CLICK
↓
60s targeting
↓
LEFT CLICK PLAYER/MOB
↓
Protection check
↓
10-second Blood Mark
↓
0.5 hearts damage
↓
Cooldown UI
```
---
## Blood Burst
```
SHIFT + RIGHT CLICK
↓
Targeting
↓
LEFT CLICK
↓
Protection
↓
1 heart damage
↓
10 second Blood effect
↓
Cooldown UI
```
---
## Blood Eclipse
```
SHIFT + RIGHT CLICK + RIGHT CLICK
↓
5-block range
↓
Players inside range
↓
Protection check
↓
5-block knockback
↓
1 heart damage
↓
10 second effect
↓
Combined cooldown
↓
Cooldown UI
```
---
## Phantom
```
RIGHT CLICK
↓
Feather Falling
↓
Cooldown
```
```
SHIFT + RIGHT CLICK
↓
Targeting
↓
LEFT CLICK target
↓
Teleport behind target
↓
Safe destination check
↓
Cooldown
```
```
COMBINED
↓
Target/area
↓
Target launched approximately 10 blocks upward
↓
Target falls
↓
Phantom gets Feather Falling
↓
Combined cooldown
```
---
## Meteor Shower
```
Activate
↓
Meteor visuals
↓
Impact effects
↓
Entity damage
↓
No block breaking
↓
No terrain destruction
↓
Protection respected
```
---
## Protection
Test every new ability inside:
- WorldGuard protected region
- GriefPrevention claim
- Other supported claims
Verify:
```
No protection bypass
No unauthorized damage
No unauthorized teleport
No unauthorized knockback
No unauthorized effects
No block modification
```
---
# 44. FINAL REQUIREMENT
The existing BossPowers plugin is already considered functional.
Therefore:
**DO NOT rewrite the entire plugin.**
Instead:
1. Inspect the existing architecture.
2. Identify the existing Power implementations.
3. Preserve working systems.
4. Fix the cooldown display.
5. Add the cooldown BossBar + ActionBar system.
6. Update Blood.
7. Update Phantom.
8. Add the requested special effects.
9. Add anime-inspired original abilities to the remaining Powers.
10. Preserve the existing protection architecture.
11. Preserve existing commands and permissions EXCEPT the removed `/bp recipes` and `/bosspowers recipes` commands.
12. Preserve existing crafting/event systems.
13. Preserve existing INVENTORY GUI.
14. Compile the project.
15. Test the new abilities.
16. Fix all compilation/runtime errors.
17. Fix duplicate activation.
18. Fix cooldown UI cleanup.
19. Fix targeting cleanup.
20. Fix protection checks.
The final plugin should feel like the same polished BossPowers plugin, but with:
```
BETTER COOLDOWN UI
+
HOTBAR 1/2/COMBINE READY STATUS
+
COOLDOWN BOSSBAR
+
AIR RIGHT-CLICK / AIR SHIFT-RIGHT-CLICK SUPPORT
+
VOID ITEM CHANGED FROM EYE OF ENDER TO ECHO SHARD
+
NEW BLOOD POWER
+
NEW PHANTOM POWER
+
SAITAMA-INSPIRED ANIME COMBAT
+
GAROU-INSPIRED COMBAT
+
METEOR SHOWER
+
7-BLOCK KNOCKBACK
+
BLINDNESS
+
SLOWNESS
+
WEAKNESS
+
STRONGER COMBINED ABILITIES
```
while keeping **all existing functionality intact**.
Most importantly:
```
DO NOT BREAK EXISTING SYSTEMS.
DO NOT BYPASS WORLDGUARD.
DO NOT BYPASS LAND CLAIMS.
DO NOT DESTROY TERRAIN WITH METEOR SHOWER.
DO NOT ALLOW DUPLICATE ABILITY EXECUTION.
DO NOT HIDE COOLDOWNS FROM PLAYERS.
DO NOT MAKE ALL POWERS IDENTICAL.
KEEP THE POWERS UNIQUE.
KEEP THE ANIME FEEL.
KEEP THE EXISTING BOSSPOWERS ARCHITECTURE.
REMOVE EYE OF ENDER AS THE VOID POWER ITEM.
USE ECHO SHARD FOR VOID POWER.
RIGHT CLICK AND SHIFT + RIGHT CLICK MUST WORK WHILE LOOKING AT AIR.
SHOW 1 READY | 2 READY | COMBINE READY ABOVE THE HOTBAR.
WHEN AN ABILITY IS ON COOLDOWN, SHOW ITS REMAINING SECONDS IN THAT SLOT.
WHEN THE COOLDOWN ENDS, AUTOMATICALLY SHOW READY.
KEEP THE COOLDOWN HOTBAR UI AND COOLDOWN BOSSBAR SYNCHRONIZED.
```
Create the BossPowers plugin foundation with item binding, targeting, protection hooks, commands, and centralized cooldown state.
Add synchronized ActionBar/BossBar cooldown UI and targeting cleanup.
Implement Blood, Phantom, and distinct Void/Storm/Gravity/Time/Chaos/Titan abilities with configurable, terrain-safe effects.
Created the BossPowers project foundation:
Added Gradle/Paper setup, plugin manifest, and configurable power/cooldown settings.
Implemented Echo Shard as the Void Power binding item; Eye of Ender is not used.
Added centralized timestamp-based cooldowns with synchronized ActionBar slot status and priority cooldown BossBar.
Added air right-click / sneak-right-click ability activation and combination priority.
Added targeting state, cooldown timeout behavior, disconnect/death cleanup, extensible protection events, and admin
/bp give//bp reloadcommands.Implemented configurable Blood, Phantom, Void, Storm Meteor, Gravity, Time, Chaos, and Titan ability mechanics without terrain-breaking effects.
No
/bp recipesor/bosspowers recipescommand was registered.
package com.kodari.bosspowers;
import org.bukkit.command.CommandSender;
import org.bukkit.plugin.java.JavaPlugin;
public class BossPowersPlugin extends JavaPlugin {
private PowerItemService powerItemService;
private CooldownManager cooldownManager;
private ProtectionManager protectionManager;
private TargetingManager targetingManager;
private AbilityManager abilityManager;
private CooldownDisplayManager cooldownDisplayManager;
@Override
public void onEnable() {
saveDefaultConfig();
powerItemService = new PowerItemService(this);
cooldownManager = new CooldownManager();
protectionManager = new ProtectionManager();
abilityManager = new AbilityManager(this);
targetingManager = new TargetingManager(this);
cooldownDisplayManager = new CooldownDisplayManager(this);
getServer().getPluginManager().registerEvents(new BossPowersListener(this), this);
BossPowersCommand command = new BossPowersCommand(this);
getCommand("bosspowers").setExecutor(command);
getCommand("bosspowers").setTabCompleter(command);
getServer().getScheduler().runTaskTimer(this, () -> {
targetingManager.tick();
abilityManager.tick();
cooldownDisplayManager.tick();
}, 1L, 20L);
}
@Override
public void onDisable() {
if (cooldownDisplayManager != null) {
cooldownDisplayManager.shutdown();
}
}
public void message(CommandSender sender, String key, String... replacements) {
String message = getConfig().getString("messages." + key, "");
for (int index = 0; index + 1 < replacements.length; index += 2) {
message = message.replace(replacements[index], replacements[index + 1]);
}
sender.sendMessage(ColorUtil.color(message));
}
public PowerItemService getPowerItemService() {
return powerItemService;
}
public CooldownManager getCooldownManager() {
return cooldownManager;
}
public ProtectionManager getProtectionManager() {
return protectionManager;
}
public TargetingManager getTargetingManager() {
return targetingManager;
}
public AbilityManager getAbilityManager() {
return abilityManager;
}
public CooldownDisplayManager getCooldownDisplayManager() {
return cooldownDisplayManager;
}
}