itzz_deepak
📎 1 file 12,096 chars
📄
pasted-code-1791457413753.txt
txt 581 lines
▶
# CROWNBREAKER — COMPLETE MINECRAFT PLUGIN

Create a complete, production-ready Minecraft Java plugin named **CROWNBREAKER** for **Paper 1.21.1 and Paper 1.21.11**.

The weapon must look exactly like the **normal vanilla Minecraft Mace**. Do NOT create a custom 3D weapon model or custom weapon texture.

---

# 1. CROWNBREAKER WEAPON

The final weapon is based on the normal vanilla **Mace**.

### Item properties

* Base item: `MACE`
* Display name: `&6&lCROWNBREAKER`
* Name must be **bold gold/orange**
* Attack damage: **10**
* Unbreakable: **true**
* Do not display attack damage in the lore.
* Do not display "Unbreakable" in the lore.
* Keep the normal vanilla Mace appearance.
* No custom resource pack required.
* No custom 3D model required.

Give CROWNBREAKER a unique `PersistentDataContainer` identifier so that a normal vanilla Mace cannot activate any CROWNBREAKER abilities.

---

# 2. CROWNBREAKER LORE

The weapon must show its abilities directly in the item lore.

Use:

```text
⚡ ABILITIES

☁ Sky Launcher
   Launches the wielder upward
   Cooldown: 10s

💧 Water Dash
   Dash forward
   Cooldown: 5s

⚡ Ultimate Strike
   Requires 25 Souls
   Shift + Left Click

Souls: 0/25
```

The Souls value must update dynamically.

Do NOT show:

* Attack Damage
* Unbreakable
* PersistentDataContainer information
* Internal plugin information

---

# 3. ONE-TIME CRAFTING RECIPE

The recipe must NOT directly craft the weapon.

It crafts a special item called:

**&6&lCROWNBREAKER HEAD**

### Exact recipe

```text
E E E
T M T
T T T
```

Where:

* `E` = Echo Shard
* `T` = Totem of Undying
* `M` = Mace

### Restrictions

The recipe:

* Works only in a normal Crafting Table.
* MUST NOT work inside a Crafter.
* Can be successfully crafted only once.
* Produces exactly 1 CROWNBREAKER HEAD.
* Consumes all ingredients normally.
* Must not directly produce CROWNBREAKER.

Prevent recipe duplication through:

* Shift-click crafting
* Recipe book
* Crafter
* Repeated crafting
* Any alternative crafting bypass

Persist the one-time crafting state so a server restart cannot reset it.

---

# 4. CROWNBREAKER HEAD

The crafted head is a special item.

Name:

**&6&lCROWNBREAKER HEAD**

It must have its own `PersistentDataContainer` identifier.

A normal block or normal item must never activate the ritual.

Only the special CROWNBREAKER HEAD can start the ritual.

---

# 5. PLACING THE HEAD

When a player places the CROWNBREAKER HEAD:

1. Detect the placement immediately.
2. Consume/remove the CROWNBREAKER HEAD.
3. Start the CROWNBREAKER ritual at the exact placement location.
4. Save:

   * Player UUID
   * Player name
   * World
   * X
   * Y
   * Z
5. The ritual location must remain fixed.

The player who placed the head becomes the **ritual owner**.

---

# 6. SERVER-WIDE START ANNOUNCEMENT

When the ritual starts, send the announcement to **EVERY PLAYER ONLINE**.

Example:

```text
⚡ CROWNBREAKER RITUAL HAS STARTED ⚡
Crafted by: 
Location: X:  Y:  Z: 
```

Replace `` and coordinates with the actual values.

Everyone should see the announcement.

Only the player who placed the head receives the final CROWNBREAKER.

---

# 7. RITUAL DURATION

Ritual duration:

**45 seconds**

The ritual must visibly progress during those 45 seconds.

Do NOT make it a simple static particle effect.

The entire ritual must be animated continuously.

---

# 8. RITUAL VISUAL — BLACK AND RED ANIMATION

Use the uploaded reference videos/images as the visual inspiration for the ritual.

The ritual should have a dramatic:

* Black/dark central area
* Large red energy ring
* Moving red energy
* Rotating particles
* Pulsing effects
* Dark particles
* Energy bursts
* Increasing intensity

The red/black effect must be **continuously animated**.

Do NOT simply spawn a fixed red circle.

---

# 9. RITUAL ANIMATION

### Stage 1 — 0–15 seconds

* Create the initial dark ritual area.
* Create a smaller red energy ring.
* Red particles slowly move around the ring.
* Dark particles rise from the center.
* Low particle intensity.

### Stage 2 — 15–30 seconds

* Increase the size/intensity of the ritual.
* Make the red ring rotate faster.
* Add flowing red energy particles.
* Add occasional energy bursts.
* Increase dark particles.

### Stage 3 — 30–44 seconds

* Strong black/red energy.
* Faster rotating ring.
* Increased particle density.
* Red energy pulses from the center.
* Frequent energy bursts.
* Make the ritual visually feel close to completion.

### Stage 4 — 44–45 seconds

* Maximum energy intensity.
* Large red/black burst.
* Powerful sound effect.
* Final energy pulse.
* Complete the ritual.

The animation should run smoothly using scheduled tasks/ticks rather than creating thousands of permanent entities.

---

# 10. RITUAL COMPLETION

After exactly 45 seconds:

* Stop all ritual effects.
* Remove temporary visual entities/effects.
* Give **exactly 1 CROWNBREAKER** to the player who placed the head.
* Never give the weapon to every player.
* If the player's inventory is full, safely store/drop the reward without deleting it.
* Mark the ritual as completed.
* Prevent the same ritual from rewarding the weapon twice.

Send everyone:

```text
⚡ CROWNBREAKER RITUAL COMPLETE ⚡
CROWNBREAKER has been awakened by: 
Location: X:  Y:  Z: 
```

---

# 11. ☁ SKY LAUNCHER

### Exact trigger

**Right Click while holding CROWNBREAKER.**

Requirements:

* Player must hold CROWNBREAKER in the main hand.
* Right-click activates Sky Launcher.
* Launch the **wielder/player**, NOT the enemy.
* Launch approximately **30 blocks upward**.
* Cooldown: **10 seconds**.
* Cooldown is per player.
* Show cloud particles.
* Play a firework-launch style sound.
* Do not activate while on cooldown.

---

# 12. 💧 WATER DASH

### Exact trigger

**Normal Left Click while holding CROWNBREAKER.**

Requirements:

* Player must hold CROWNBREAKER in the main hand.
* Player must NOT be sneaking.
* Left-click activates Water Dash.
* Dash the wielder forward.
* Strength: **2.4**
* Cooldown: **5 seconds**
* Cooldown is per player.
* Show water/splash particles.
* Play a dolphin-splash style sound.
* Do not activate while on cooldown.

---

# 13. ⚡ SOUL SYSTEM

CROWNBREAKER has a Soul Charge system.

Maximum:

**25 Souls**

Every successful hit using CROWNBREAKER gives:

**1 Soul**

Never allow the Soul count to exceed 25.

Update the weapon lore:

```text
Souls: X/25
```

When the player reaches 25 Souls for the first time:

```text
⚡ ULTIMATE STRIKE READY ⚡
```

Only announce this once when the player reaches full charge.

Do not repeatedly announce it on every hit while already at 25/25.

---

# 14. ⚡ ULTIMATE STRIKE

### Exact trigger

**Shift + Left Click while holding CROWNBREAKER.**

Requirements:

* Player must hold CROWNBREAKER in the main hand.
* Player must be sneaking.
* Player must have 25/25 Souls.

Trigger priority:

```text
1. Sneaking + Left Click + 25 Souls
   = Ultimate Strike

2. Sneaking + Left Click + less than 25 Souls
   = No Ultimate activation

3. Normal Left Click
   = Water Dash

4. Right Click
   = Sky Launcher
```

Never allow one click to activate multiple abilities.

---

# 15. ULTIMATE TARGETING

When Ultimate Strike is activated:

* Search directly along the player's line of sight.
* Maximum range: **20 blocks**.
* Select the **closest valid living entity** in the player's view.
* Do not target the caster.
* Do not target dropped items.
* Do not target armor stands.
* Do not target projectiles.
* Do not target particles.
* Do not target other non-living entities.

If there is no valid target within 20 blocks:

* Do not activate the Ultimate.
* Keep Souls at 25/25.
* Do not spawn the falling Mace.

---

# 16. ☠ SOUL REAPER VISUAL

After finding a valid target:

Display:

```text
☠ SOUL REAPER IS READY ☠
```

Then create a temporary visual copy of the **normal vanilla Mace**.

* Spawn it approximately **15 blocks above the selected target**.
* Make it fall vertically downward.
* The Mace must visually fall toward the target.
* It is ONLY a visual effect.
* It must not become a real dropped item.
* It must not be collectible.

Most importantly:

**NEVER remove, consume, drop, replace, or modify the player's actual CROWNBREAKER.**

The real CROWNBREAKER remains in the player's inventory/hand.

---

# 17. ULTIMATE IMPACT

When the falling visual Mace reaches the selected target:

* Trigger the Ultimate Strike impact.
* Apply the configured Ultimate Strike damage/effect to the selected target.
* By default, affect only the selected target.
* Do not automatically damage every nearby entity.
* Normal Minecraft protection/death mechanics must continue to work.
* Do not bypass normal death-protection mechanics.

After successful activation:

```text
Souls: 0/25
```

The player must charge Souls again.

---

# 18. CONFIG.YML

Create a complete configurable `config.yml`.

Example:

```yaml
weapon:
  name: "&6&lCROWNBREAKER"
  damage: 10
  unbreakable: true

crafting:
  enabled: true
  one-time: true
  allow-crafter: false

ritual:
  enabled: true
  duration-seconds: 45
  reward: true
  visual-radius: 8.0

sky-launcher:
  enabled: true
  launch-strength: 30.0
  cooldown: 10

water-dash:
  enabled: true
  strength: 2.4
  cooldown: 5

souls:
  maximum: 25
  souls-per-hit: 1

ultimate:
  enabled: true
  required-souls: 25
  target-range: 20.0
  visual-height: 15.0

messages:
  ultimate-ready: "&6⚡ ULTIMATE STRIKE READY ⚡"
  soul-reaper-ready: "&c☠ SOUL REAPER IS READY ☠"
```

Make important values configurable.

---

# 19. DUPLICATION PROTECTION

The plugin must prevent:

* Crafting a second CROWNBREAKER HEAD.
* Crafting inside a Crafter.
* Duplicate ritual activation.
* Duplicate ritual rewards.
* Duplicate CROWNBREAKER weapons from the same ritual.
* Using a normal Mace to activate abilities.
* Bypassing the one-time recipe with shift-click.
* Resetting the one-time state by restarting the server.

Persist all important state safely.

---

# 20. VERSION COMPATIBILITY

The SAME plugin JAR must work on:

* **Paper 1.21.1**
* **Paper 1.21.11**

Use standard Bukkit/Paper APIs wherever possible.

Avoid unnecessary NMS/version-specific code.

If version-specific code is absolutely required, create a compatibility layer.

Do not use an API that exists only on 1.21.11 if it prevents the plugin from working on 1.21.1.

Test:

* Crafting
* Crafter prevention
* Head placement
* Ritual
* Particles
* Sounds
* Item creation
* PDC identification
* Soul system
* Ability triggers
* Target detection
* Falling Mace visual
* Reward system

on both versions.

---

# 21. REQUIRED PROJECT FILES

Generate a complete working plugin, NOT pseudocode.

Include:

* `plugin.yml`
* Main Java class
* Event listeners
* CROWNBREAKER item system
* CROWNBREAKER HEAD system
* Custom crafting recipe
* One-time crafting protection
* Crafter prevention
* Ritual manager
* Animated black/red ritual effects
* Ritual persistence
* Soul system
* Dynamic lore
* Sky Launcher
* Water Dash
* Ultimate Strike
* Line-of-sight targeting
* Falling Mace visual
* Cooldown manager
* Configuration system
* Safe inventory/reward handling
* Cleanup of temporary effects
* Error handling

Do not add extra abilities that were not requested.

Do not turn CROWNBREAKER into a custom-looking weapon.

The final weapon must visually remain the **ordinary vanilla Minecraft Mace**, while the ritual, Soul system, abilities and special behavior make it unique.

Final plugin JAR:

**CROWNBREAKER.jar**
Kodari AI
KodariOct 8 at 11:11 am 1
CrownbreakerRitualWeapon
A complete Paper 1.21.1/1.21.11 plugin adding the legendary CROWNBREAKER mace. Features a one-time crafting recipe for a special head item, a 45-second animated black-and-red ritual with three escalating stages, and a persistent soul system. The weapon grants Sky Launcher (right-click, 10s cooldown), Water Dash (left-click, 5s cooldown), and Ultimate Strike (shift-left-click, requires 25 souls) with a falling mace visual. Includes full config.yml, duplication protection, crafter prevention, and safe reward handling.
  1. Set up the Paper 1.21.1-compatible plugin and configuration.

  2. Implement the tagged weapon/head, protected one-time crafting, and persistent ritual.

  3. Add the animated ritual, soul charge, cooldown abilities, and targeted ultimate.

[Generation stopped]

itzz_deepak
📎 1 file 2,277 chars
📄
pasted-code-1791457889110.txt
txt 76 lines
▶
# 22. CROWNBREAKER OWNERSHIP & PICKUP RULE

When the CROWNBREAKER ritual is completed:

* The player who originally crafted the **CROWNBREAKER HEAD** and placed it to start the ritual is the **original owner** of CROWNBREAKER.
* Only this original owner can pick up the CROWNBREAKER when the ritual reward is first created.
* Other players must NOT be able to pick up the newly created CROWNBREAKER during this initial ownership period.
* If another player attempts to pick it up, prevent the pickup.

### IMPORTANT OWNERSHIP CHANGE

The owner restriction must automatically disappear when CROWNBREAKER becomes a normal dropped item.

For example:

**Owner dies → CROWNBREAKER drops → any player can pick it up.**

Also:

**Owner manually drops CROWNBREAKER → any player can pick it up.**

Therefore:

* Initial ritual reward = **owner-only pickup**
* Owner manually drops it = **public pickup**
* Owner dies and it drops = **public pickup**
* Another player drops it after obtaining it = **public pickup**
* Once it has been dropped, do NOT restore the original owner's pickup restriction.

### EXAMPLE

Player **Steve** crafts the CROWNBREAKER HEAD and completes the ritual.

CROWNBREAKER is created for Steve.

```text
Steve → CAN PICK UP
Alex → CANNOT PICK UP
Bob → CANNOT PICK UP
```

Steve then dies and CROWNBREAKER drops on the ground.

```text
Steve → CAN PICK UP
Alex → CAN PICK UP
Bob → CAN PICK UP
```

Steve manually drops CROWNBREAKER:

```text
Steve → CAN PICK UP
Alex → CAN PICK UP
Bob → CAN PICK UP
```

### TECHNICAL REQUIREMENT

Track the initial owner using the item's `PersistentDataContainer` and/or the reward item's unique identity.

The plugin must distinguish between:

1. **Fresh ritual reward** — owner restricted.
2. **CROWNBREAKER that has been dropped** — unrestricted pickup.

When the owner manually drops the weapon or the weapon is dropped because the owner/player dies, permanently mark that specific item as **PUBLIC**.

Do NOT create a new CROWNBREAKER when ownership changes.

Do NOT duplicate the weapon.

Do NOT delete the weapon when a non-owner attempts pickup.

The restriction should only block the pickup until the original owner drops/dies with the item.
Kodari AI
KodariOct 8 at 11:11 am 1

The generation was stopped before any content could be produced.

itzz_deepak
📎 1 file 10,992 chars
📄
pasted-code-1791457948242.txt
txt 481 lines
▶
Create a complete, production-ready Minecraft Java plugin named **CROWNBREAKER** for **Paper 1.21.1 and Paper 1.21.11**.

The weapon must look exactly like the **normal vanilla Minecraft Mace**. Do NOT create a custom 3D weapon model or custom weapon texture.

# 1. CROWNBREAKER WEAPON

Create a special weapon based on the vanilla `MACE`.

* Item: Vanilla Mace
* Display name: `&6&lCROWNBREAKER`
* Name must be bold gold/orange and all capital letters.
* Attack damage: **10**
* Unbreakable: **true**
* Do not show Attack Damage in the lore.
* Do not show Unbreakable in the lore.
* Keep the normal vanilla Mace appearance.
* No custom texture pack required.
* No custom 3D model required.
* Identify CROWNBREAKER using `PersistentDataContainer`.
* A normal vanilla Mace must never activate CROWNBREAKER abilities.

# 2. CROWNBREAKER LORE

Display:

```text id="z3pq1v"
⚡ ABILITIES

☁ Sky Launcher
   Launches the wielder upward
   Cooldown: 10s

💧 Water Dash
   Dash forward
   Cooldown: 5s

⚡ Ultimate Strike
   Requires 25 Souls
   Shift + Left Click

Souls: 0/25
```

Update `Souls: X/25` dynamically.

Do not display Attack Damage, Unbreakable, PDC data, or internal plugin information.

# 3. ONE-TIME CRAFTING RECIPE

The recipe does NOT directly create CROWNBREAKER.

It creates:

**&6&lCROWNBREAKER HEAD**

Exact recipe:

```text id="3f0xli"
E E E
T M T
T T T
```

Where:

* `E` = Echo Shard
* `T` = Totem of Undying
* `M` = Mace

Rules:

* Only works in a normal Crafting Table.
* MUST NOT work in a Crafter.
* Can only be successfully crafted once.
* Produces exactly one CROWNBREAKER HEAD.
* Consumes all ingredients.
* Prevent shift-click, recipe-book, Crafter, or other duplication/bypass methods.
* Persist the one-time crafting state across server restarts.

# 4. CROWNBREAKER HEAD PLACEMENT

When the special CROWNBREAKER HEAD is placed:

* Detect the placement immediately.
* Consume the head.
* Start the CROWNBREAKER ritual at that exact location.
* Save the ritual owner's UUID and player name.
* Save the exact world and X/Y/Z coordinates.
* The player who placed the head becomes the original CROWNBREAKER owner.

Only the special CROWNBREAKER HEAD can start the ritual.

# 5. SERVER-WIDE RITUAL ANNOUNCEMENT

When the ritual starts, announce it to every online player:

```text id="ozxqjm"
⚡ CROWNBREAKER RITUAL HAS STARTED ⚡
Crafted by: 
Location: X:  Y:  Z: 
```

Replace the placeholders dynamically with the actual player and coordinates.

# 6. RITUAL

Duration: **45 seconds**

The ritual must be continuously animated.

Use the uploaded reference image/video as the visual inspiration.

The ritual should contain:

* Large dark/black central area
* Large red energy ring
* Moving red energy
* Rotating particles
* Pulsing energy
* Dark particles
* Red energy bursts
* Increasing intensity over time

Do NOT make it a static particle circle.

### Stage 1 — 0–15 seconds

* Start with a dark ritual area.
* Create a smaller red energy ring.
* Slowly moving red particles.
* Dark particles rising from the center.

### Stage 2 — 15–30 seconds

* Increase the ring size/intensity.
* Increase rotation speed.
* Add flowing red energy.
* Add occasional bursts.

### Stage 3 — 30–44 seconds

* Strong black/red energy.
* Faster rotation.
* Higher particle density.
* More frequent red bursts.
* Stronger center energy.

### Stage 4 — 44–45 seconds

* Maximum intensity.
* Large black/red energy burst.
* Powerful completion sound.
* Final energy pulse.

Use scheduled tasks efficiently. Do not create thousands of permanent entities.

# 7. RITUAL COMPLETION

After 45 seconds:

* Stop and clean up all temporary ritual effects.
* Give exactly one CROWNBREAKER to the player who originally crafted/placed the CROWNBREAKER HEAD.
* Do not give CROWNBREAKER to every player.
* If their inventory is full, safely handle the reward without deleting it.
* Mark the ritual as completed.
* Prevent duplicate rewards.

Announce:

```text id="2j5jkn"
⚡ CROWNBREAKER RITUAL COMPLETE ⚡
CROWNBREAKER has been awakened by: 
Location: X:  Y:  Z: 
```

# 8. CROWNBREAKER OWNER PICKUP SYSTEM

The player who originally crafted the CROWNBREAKER HEAD and placed it to start the ritual is the **original owner** of the resulting CROWNBREAKER.

When the ritual reward is first created:

* Only the original owner can pick it up.
* Other players cannot pick it up.
* If another player tries to pick it up, cancel the pickup.
* Do not delete the item.
* Do not duplicate the item.

### IMPORTANT: DROP MAKES IT PUBLIC

The owner restriction applies ONLY to the freshly created ritual reward.

As soon as CROWNBREAKER is dropped by any player, it becomes **PUBLIC**.

For example:

**Fresh ritual reward:**

```text
Original owner → CAN PICK UP
Other players → CANNOT PICK UP
```

If the original owner dies and CROWNBREAKER drops:

```text
Original owner → CAN PICK UP
Other players → CAN PICK UP
```

If the owner manually drops CROWNBREAKER:

```text
Original owner → CAN PICK UP
Other players → CAN PICK UP
```

Once dropped, the item must remain public permanently.

If another player later picks it up and drops it again, it remains public.

### TECHNICAL IMPLEMENTATION

Use item/entity metadata or `PersistentDataContainer` to track the item's ownership state.

The plugin must distinguish between:

```text
FRESH_RITUAL_REWARD
PUBLIC_DROPPED_WEAPON
```

When the freshly created reward is dropped because of:

* Player death
* Manual dropping
* Any normal item-drop event

change its state permanently to:

`PUBLIC_DROPPED_WEAPON`

Never restore the original owner restriction after it has been dropped.

# 9. SKY LAUNCHER

**Trigger: Right Click while holding CROWNBREAKER.**

* Main-hand CROWNBREAKER required.
* Launch the wielder upward approximately 30 blocks.
* Do NOT launch the enemy.
* Cooldown: 10 seconds per player.
* Cloud particles.
* Firework-launch style sound.
* Do nothing during cooldown.

# 10. WATER DASH

**Trigger: Normal Left Click while holding CROWNBREAKER.**

* Main-hand CROWNBREAKER required.
* Player must NOT be sneaking.
* Dash the wielder forward.
* Strength: 2.4.
* Cooldown: 5 seconds per player.
* Water/splash particles.
* Dolphin-splash style sound.
* Do nothing during cooldown.

# 11. SOUL SYSTEM

Maximum Souls: **25**

Every successful CROWNBREAKER hit gives **1 Soul**.

Never exceed 25.

Display:

`Souls: X/25`

When reaching 25/25 for the first time, announce:

`⚡ ULTIMATE STRIKE READY ⚡`

Do not repeatedly announce it while already at 25/25.

# 12. ULTIMATE STRIKE

**Trigger: Shift + Left Click while holding CROWNBREAKER.**

Requirements:

* Main-hand CROWNBREAKER.
* Player is sneaking.
* Player has 25/25 Souls.

Priority:

```text
Sneaking + Left Click + 25 Souls
→ Ultimate Strike

Sneaking + Left Click + less than 25 Souls
→ No Ultimate

Normal Left Click
→ Water Dash

Right Click
→ Sky Launcher
```

Never allow one click to activate multiple abilities.

# 13. ULTIMATE TARGET

After activation:

* Search along the player's line of sight.
* Maximum range: 20 blocks.
* Select the closest valid living entity in the player's view.
* Do not target the caster.
* Do not target dropped items, armor stands, projectiles, particles, or other non-living entities.

If no valid target exists:

* Do not activate.
* Keep Souls at 25/25.
* Do not spawn the visual Mace.

# 14. SOUL REAPER VISUAL

After a valid target is found:

Display:

`☠ SOUL REAPER IS READY ☠`

Then:

* Spawn a temporary visual copy of the normal vanilla Mace approximately 15 blocks above the target.
* Make it fall vertically downward toward the target.
* It is only a visual effect.
* It must not become a collectible item.
* It must not replace the player's actual CROWNBREAKER.

The player's real CROWNBREAKER must remain in their hand/inventory.

# 15. ULTIMATE IMPACT

When the falling visual Mace reaches the target:

* Trigger the Ultimate Strike impact.
* Apply the configured Ultimate Strike damage/effect to the selected target.
* Only the selected target is affected by default.
* Normal Minecraft protection/death mechanics remain active.
* Do not bypass normal death-protection mechanics.

After successful activation:

`Souls: 0/25`

# 16. CONFIG.YML

Create a complete configurable `config.yml`:

```yaml id="6n1n5s"
weapon:
  name: "&6&lCROWNBREAKER"
  damage: 10
  unbreakable: true

crafting:
  enabled: true
  one-time: true
  allow-crafter: false

ritual:
  enabled: true
  duration-seconds: 45
  reward: true
  visual-radius: 8.0

sky-launcher:
  enabled: true
  launch-strength: 30.0
  cooldown: 10

water-dash:
  enabled: true
  strength: 2.4
  cooldown: 5

souls:
  maximum: 25
  souls-per-hit: 1

ultimate:
  enabled: true
  required-souls: 25
  target-range: 20.0
  visual-height: 15.0

messages:
  ultimate-ready: "&6⚡ ULTIMATE STRIKE READY ⚡"
  soul-reaper-ready: "&c☠ SOUL REAPER IS READY ☠"
```

# 17. DUPLICATION PROTECTION

Prevent:

* Second CROWNBREAKER HEAD.
* Crafter crafting.
* Duplicate ritual.
* Duplicate ritual rewards.
* Duplicate CROWNBREAKER weapons.
* Normal Mace activating abilities.
* Recipe-book bypasses.
* Shift-click bypasses.
* Server-restart reset exploits.
* Owner-pickup duplication exploits.
* Dropping/picking up the weapon creating copies.

Persist all important crafting, ritual and ownership state.

# 18. VERSION COMPATIBILITY

The SAME `.jar` must work on:

* Paper 1.21.1
* Paper 1.21.11

Use standard Bukkit/Paper APIs wherever possible.

Avoid unnecessary NMS/version-specific code.

If version-specific code is absolutely required, create a compatibility layer.

Test crafting, Crafter blocking, ritual, particles, sounds, PDC identification, Soul system, abilities, targeting, falling Mace visual, ownership and pickup behavior on both versions.

# 19. REQUIRED FILES

Generate complete working source code, NOT pseudocode.

Include:

* `plugin.yml`
* Main Java class
* Event listeners
* CROWNBREAKER item creation
* CROWNBREAKER HEAD
* One-time recipe
* Crafter prevention
* Ritual manager
* Animated black/red ritual
* Ritual persistence
* Owner tracking
* Pickup protection
* Public dropped-item state
* Soul system
* Dynamic lore
* Sky Launcher
* Water Dash
* Ultimate Strike
* Target detection
* Falling Mace visual
* Cooldown manager
* Config system
* Safe reward handling
* Cleanup
* Error handling

Do NOT add extra abilities that were not requested.

The final weapon must visually remain the **ordinary vanilla Minecraft Mace**.

Final plugin:

**CROWNBREAKER.jar**
Kodari AI
KodariOct 8 at 11:23 am 2
  1. Add the plugin entry point, item/PDC handling, configuration, and persistent ritual state.

  2. Add crafting, placement, pickup, drop, and soul event handling.

  3. Add animated ritual effects and the three requested abilities, including the falling-mace ultimate.

Implemented the CROWNBREAKER plugin with the vanilla Mace weapon, one-time head recipe, persistent ritual and reward state, animated ritual effects, owner-only fresh reward pickup, and permanent public status after any drop. Added the Sky Launcher, Water Dash, soul tracking, and targeted falling-mace Ultimate Strike.

Added ultimate.damage: 20.0 to config.yml so the ultimate’s damage is configurable.

Kodari can make mistakes. Review important code before using.
Files
src
Code
7 1,043
src/main/java/com/kodari/crownbreaker/CrownBreakerPlugin.java
package com.kodari.crownbreaker;

import org.bukkit.NamespacedKey;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public final class CrownBreakerPlugin extends JavaPlugin {
    private WeaponItems weaponItems;
    private RitualManager ritualManager;
    private AbilityManager abilityManager;
    private CrownBreakerListener listener;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        weaponItems = new WeaponItems(this);
        ritualManager = new RitualManager(this, weaponItems);
        abilityManager = new AbilityManager(this, weaponItems);
        listener = new CrownBreakerListener(this);
        Bukkit.getPluginManager().registerEvents(listener, this);
        Bukkit.getPluginManager().registerEvents(abilityManager, this);
        listener.registerRecipe();
        ritualManager.start();
    }

    @Override
    public void onDisable() {
        if (abilityManager != null) {
            abilityManager.shutdown();
        }
        if (ritualManager != null) {
            ritualManager.shutdown();
        }
        if (listener != null) {
            listener.unregisterRecipe();
        }
    }

    public NamespacedKey key(String value) {
        return new NamespacedKey(this, value);
    }

    public WeaponItems weaponItems() {
        return weaponItems;
    }

    public RitualManager ritualManager() {
        return ritualManager;
    }

    public AbilityManager abilityManager() {
        return abilityManager;
    }
}