📄
pasted-code-1783734944345.txt
txt
146 lines
▶
Act as an expert Minecraft Spigot/Paper Plugin Developer. Write a complete, highly optimized Java plugin for Minecraft 1.20+ named "Aris Weapons". The plugin must implement 17 custom weapons with advanced configurations, complex input-triggered abilities, and a high-stakes world ritual system upon crafting.
### 1. General Architecture & Configuration (`config.yml`)
- All 17 weapons must be defined in a `config.yml` file.
- Each weapon configuration must include: `display-name`, `custom-model-data` (integer), `base-damage`, `base-speed`, a `lore` list, a fully custom `crafting-recipe` (shaped matrix), and an `already-crafted` boolean flag.
- **Global Lock Rule:** By default, each custom weapon can only be successfully crafted **once per server life**. When a player crafts a weapon, the plugin must set `already-crafted: true` in the config, saving it immediately. Further attempts by any player to craft that specific item must be cancelled/blocked unless an admin resets it.
### 2. Admin Commands (Permission: `arisweapons.admin`)
- `/weapons view` - Opens a chest INVENTORY GUI containing all 17 custom weapons for previewing textures and lore.
- `/weapons give [player_name] [weapon_name]` - Gives the target player the specified custom weapon.
- `/weapons reset [weapon_name]` - Changes the `already-crafted` status back to `false` for that weapon in the config, allowing it to be crafted exactly one more time by players.
### 3. Ability Mechanics & Custom Trigger Inputs
Every single one of the 17 custom weapons (Swords, Axes, Maces, Bows, and Crossbows) possesses **1 Passive Ability** and **3 Active Abilities**.
- **Passive Ability:** Permanently active while the weapon is held in the main hand.
- **Ability 1 (Primary):** Activated by pressing **SHIFT + RIGHT-CLICK** (Short/Medium Cooldown).
- **Ability 2 (Primary):** Activated by pressing **SHIFT + LEFT-CLICK** (Short/Medium Cooldown).
- **Ability 3 (Ultimate):** Activated by pressing **SHIFT + OFFHAND SWAP KEY (F)**. Cancel the default client-side offhand item swap event when this triggers. **Must have a hardcoded 1-minute (60 seconds) cooldown.**
### 4. Custom Hover Lore UI Layout
The lore format must visually mirror standard enchantments but detail functionality dynamically. Example formatting required:
&8----------------------------------------
&6&lPASSIVE: &e[Passive Name]
&7[Detailed description of what the passive does]
&8----------------------------------------
&b&l[Ability 1 Name] &7(SHIFT + RIGHT-CLICK)
&7Cooldown: [X]s | [Description of mechanics]
&8----------------------------------------
&b&l[Ability 2 Name] &7(SHIFT + LEFT-CLICK)
&7Cooldown: [Y]s | [Description of mechanics]
&8----------------------------------------
&d&lULTIMATE: [Ability 3 Name] &7(SHIFT + SWAP KEY)
&7Cooldown: 60s | [Description of destructive ultimate mechanic]
&8----------------------------------------
### 5. Full Roster of All 17 Custom Weapons & Mechanics
Implement the following exact configurations, item bases, and ability mechanics:
1. **Err0r Blade** (Netherite Sword | CustomModelData: 10001)
- *Passive (Glitch Step):* Attacks have a 15% chance to inflict Blindness II and Slowness III on targets for **exactly 10 seconds**.
- *Ability 1 (Shift + Right-Click):* Matrix Blink - Teleports the user 8 blocks forward in their looking direction. (10s cooldown)
- *Ability 2 (Shift + Left-Click):* Corrupt Wave - Unleashes a visual particle shockwave knocking back all enemies within a 5-block radius. (15s cooldown)
- *Ability 3 (Shift + F):* System Crash - Forces the target's crosshair to jitter wildly, strips their armor attributes, and deals heavy void damage **continuously over a 15-second duration**. (60s cooldown)
2. **LifeStealer Blade** (Netherite Sword | CustomModelData: 10002)
- *Passive (Blood Feast):* Heals the wielder for 15% of all physical melee damage dealt. Additionally, when the wielder kills a player, they **permanently increase their maximum health attribute by 2.0 (1 heart / 2 HP in game language)**.
- *Ability 1 (Shift + Right-Click):* Siphon Speed - Steals 20% movement speed from the target, slowing them and speeding up the user for 5 seconds. (12s cooldown)
- *Ability 2 (Shift + Left-Click):* Vampiric Aura - Spawns red particles in a 4-block radius; drains 1 heart per second from all nearby entities for 5 seconds. (20s cooldown)
- *Ability 3 (Shift + F):* Heart Squeeze - Instantly executes any target hit who is below 20% maximum health, instantly restoring the wielder's health bar to full. (60s cooldown)
3. **Vortex Mace** (Mace | CustomModelData: 10003)
- *Passive (Heavy Mass):* Attacks deal 20% more knockback naturally.
- *Ability 1 (Shift + Right-Click):* Vacuum Pull - Pulls all enemies within a 10-block radius directly toward the user. (12s cooldown)
- *Ability 2 (Shift + Left-Click):* Ground Slam - Launches the user up, then creates a destructive shockwave when they hit the ground. (18s cooldown)
- *Ability 3 (Shift + F):* Singularity - Spawns a gravitational vortex pulling enemies in and exploding after 4 seconds for massive damage. (60s cooldown)
4. **Shadow Axe** (Netherite Axe | CustomModelData: 10004)
- *Passive (Shrouded):* Permanent Speed I while held during night hours.
- *Ability 1 (Shift + Right-Click):* Shadow Step - Become invisible and completely silent for 4 seconds. (15s cooldown)
- *Ability 2 (Shift + Left-Click):* Eviscerate - A sweeping strike that causes affected enemies to bleed (damage over time) for 6 seconds. (14s cooldown)
- *Ability 3 (Shift + F):* Umbral Execution - Strikes the ground to blind all players within 12 blocks for 6 seconds and increases the axe's attack damage by 50% during that window. (60s cooldown)
5. **Inferno Bow** (Bow | CustomModelData: 10005)
- *Passive (Magma Core):* Automatically sets fired arrows on fire and grants permanent Fire Resistance.
- *Ability 1 (Shift + Right-Click):* Volcanic Shot - The next arrow fired erupts into a 3x3 pool of lava upon impact. (15s cooldown)
- *Ability 2 (Shift + Left-Click):* Flame Burst - Emits a ring of fire particles pushing back and burning all nearby melee attackers. (12s cooldown)
- *Ability 3 (Shift + F):* Meteor Shower - Shoots an arrow into the sky to call down 5 explosive fireballs at the target location. (60s cooldown)
6. **Tidal Crossbow** (Crossbow | CustomModelData: 10006)
- *Passive (Deep Current):* Projectiles deal double damage to targets currently touching water or rain.
- *Ability 1 (Shift + Right-Click):* Water Spout - Fires a high-pressure water stream that traps the target inside a temporary block of water for 3 seconds. (14s cooldown)
- *Ability 2 (Shift + Left-Click):* Undow Surge - Grants the user a burst of Dolphin's Grace and Speed II for 6 seconds. (15s cooldown)
- *Ability 3 (Shift + F):* Tsunami Bolt - Fires a massive piercing wave that knocks back all entities in a long line and deals heavy damage. (60s cooldown)
7. **Void Cleaver** (Netherite Axe | CustomModelData: 10007)
- *Passive (Abyssal Edge):* Melee attacks bypass 20% of the target's armor protection.
- *Ability 1 (Shift + Right-Click):* Rift Slice - Tears open a small portal, damaging all enemies in a 6-block line forward. (10s cooldown)
- *Ability 2 (Shift + Left-Click):* Gravity Well - Distorts space around the user, slowing down all incoming enemy projectiles. (16s cooldown)
- *Ability 3 (Shift + F):* Event Horizon - Creates a localized black hole zone for 5 seconds, trapping and silencing all enemies inside. (60s cooldown)
8. **Storm Mace** (Mace | CustomModelData: 10008)
- *Passive (Conductive):* Gives the user Permanent Resistance I and absolute immunity to lightning damage.
- *Ability 1 (Shift + Right-Click):* Spark Chain - Fires an electric bolt that jumps across up to 4 nearby enemies, shocking them. (12s cooldown)
- *Ability 2 (Shift + Left-Click):* Overcharge - Increases attack speed by 40% for the next 5 seconds. (20s cooldown)
- *Ability 3 (Shift + F):* Tempest Wrath - Strikes the ground to call down 3 devastating lightning bolts around the user, breaking shields. (60s cooldown)
9. **Frostbite Rapier** (Netherite Sword | CustomModelData: 10009)
- *Passive (Chilling Touch):* Striking an enemy applies Slowness I for 2 seconds.
- *Ability 1 (Shift + Right-Click):* Ice Spike - Summons a line of sharp ice structures out of the ground to impale and lift enemies. (12s cooldown)
- *Ability 2 (Shift + Left-Click):* Glacial Shield - Spawns a barrier of ice particles that absorbs the next incoming physical attack entirely. (18s cooldown)
- *Ability 3 (Shift + F):* Flash Freeze - Instantly freezes all players and mobs in an 8-block radius solid in ice for 4 seconds. (60s cooldown)
10. **Soul Reaper** (Netherite Axe | CustomModelData: 10010)
- *Passive (Harvest):* Killing a mob/player grants 1 Soul stack (Max 5). Each stack grants +1 Attack Damage.
- *Ability 1 (Shift + Right-Click):* Soul Projectile - Consumes 1 Soul stack to fire a homing wisp projectile at the nearest enemy. (8s cooldown)
- *Ability 2 (Shift + Left-Click):* Ghastly Veil - Consumes 2 Soul stacks to grant the user a temporary Absorption shield. (15s cooldown)
- *Ability 3 (Shift + F):* Specter Form - Consumes all active Soul stacks to grant complete invincibility and flight for 6 seconds. (60s cooldown)
11. **Venomous Fang** (Netherite Sword | CustomModelData: 10011)
- *Passive (Toxic Coat):* Attacks have a 25% chance to inflict Poison II for 4 seconds.
- *Ability 1 (Shift + Right-Click):* Miasma Cloud - Spawns a green cloud of poison particles that damages anyone who stands inside it. (14s cooldown)
- *Ability 2 (Shift + Left-Click):* Neurotoxin - Striking a target removes their ability to sprint for 4 seconds. (18s cooldown)
- *Ability 3 (Shift + F):* Plague Outbreak - Inflicts a highly lethal infection on a target that spreads to adjacent players if they touch. (60s cooldown)
12. **Skypiercer Bow** (Bow | CustomModelData: 10012)
- *Passive (Zero-G):* Arrows fired ignore all gravity scales and fly perfectly straight forever.
- *Ability 1 (Shift + Right-Click):* Sonic Arrow - Fires a high-velocity arrow that creates a sonic boom, breaking glass and disorienting targets. (10s cooldown)
- *Ability 2 (Shift + Left-Click):* Eagle Eye - Grants the user high-level Zoom capabilities and Glowing vision on all entities. (12s cooldown)
- *Ability 3 (Shift + F):* Celestial Strike - Shoots an arrow straight up; 2 seconds later, a beam of light vaporizes the spot it was shot from. (60s cooldown)
13. **Earthshaker Mace** (Mace | CustomModelData: 10013)
- *Passive (Grounded):* The user takes 50% less knockback from all sources while standing on natural terrain blocks.
- *Ability 1 (Shift + Right-Click):* Rock Wall - Raises a temporary 3x2 wall of cobblestone blocks directly out of the earth. (15s cooldown)
- *Ability 2 (Shift + Left-Click):* Boulder Toss - Launches a stone block projectile forward that explodes on impact, dealing blunt force damage. (12s cooldown)
- *Ability 3 (Shift + F):* Seismic Fracture - Triggers a massive earthquake wave that staggers, disarms, and trips all grounded enemies. (60s cooldown)
14. **Paladin's Bastion** (Netherite Sword | CustomModelData: 10014)
- *Passive (Holy Guard):* When falling below 25% health, instantly gain Regeneration II for 5 seconds.
- *Ability 1 (Shift + Right-Click):* Light Beam - Fires a beam of holy light that heals friendly targets and burns undead enemies. (10s cooldown)
- *Ability 2 (Shift + Left-Click):* Aegis Aura - Grants all players within a 5-block radius Resistance II for 6 seconds. (20s cooldown)
- *Ability 3 (Shift + F):* Sanctuary - Creates a large golden runic zone on the ground; enemies are physically blocked from walking inside it. (60s cooldown)
15. **Windrunner Axe** (Netherite Axe | CustomModelData: 10015)
- *Passive (Zephyr):* Successive melee hits on a target accelerate the user's attack speed by 10% per hit (stacks up to 50%).
- *Ability 1 (Shift + Right-Click):* Gale Blade - Launches a sharp, flying wind crescent projectile that cuts through multiple targets. (8s cooldown)
- *Ability 2 (Shift + Left-Click):* Slipstream - Launches the user forward into the air with a massive aerodynamic burst. (14s cooldown)
- *Ability 3 (Shift + F):* Cyclone Flight - Grants the player full Creative-style flight capabilities and absolute speed boosts for 8 seconds. (60s cooldown)
16. **Sonic Crossbow** (Crossbow | CustomModelData: 10016)
- *Passive (Echo Location):* Holding this weapon reveals invisible entities within a 15-block radius as glowing outlines.
- *Ability 1 (Shift + Right-Click):* Frequency Blast - Fires a sonic pulse that causes the target's screen to shake violently for 4 seconds. (12s cooldown)
- *Ability 2 (Shift + Left-Click):* Sound Barrier - Emits an acoustic wall that deflects incoming arrows directly back to their shooters. (16s cooldown)
- *Ability 3 (Shift + F):* Resonance Rupture - Fires a heavy acoustic charge that detonates, dealing armor-ignoring internal blast damage. (60s cooldown)
17. **Dragon Blade** (Netherite Sword | CustomModelData: 10017)
- *Passive (Dragon Heart):* Total immunity to fire/lava damage; attacks set enemies ablaze with blue fire for 5 seconds.
- *Ability 1 (Shift + Right-Click):* Firebreath Line - Shoots a piercing line of dragon fire particles forward, burning all entities caught in its path. (10s cooldown)
- *Ability 2 (Shift + Left-Click):* Tail Sweep - Performs a rotating spin attack that deals sweeping damage and high horizontal knockback to all surrounding threats. (14s cooldown)
- *Ability 3 (Shift + F):* Dragon Roar - Triggers a massive screen-shaking dragon roar particle field. Launches all nearby enemies 10 blocks into the air while dealing heavy area-of-effect explosion damage. (60s cooldown)
### 6. The World Crafting Ritual System
When a player crafts any of these 17 weapons, intercept the inventory click event. Do **not** put the item into their inventory. Instead, consume the ingredients and trigger a world event:
- **Global BossBar Tracker:** Immediately create a global BossBar visible to all players online. The bar must be purple/blue, steadily draining over a **30-minute duration**. The text must dynamically read: `&d&lCrafting Ritual: [Weapon Display Name] at X: [X], Y: [Y], Z: [Z] | Time Left: [MM:SS]`
- **Visual Magic Circle:** At the exact world coordinates of the crafting table block, generate a wide, perfect geometric circle on the ground made out of **SOUL_FIRE / SOUL flame particles** (creating a bright cyan magic ring exactly as shown in reference documentation).
- **The Floating Artifact:** Spawn the crafted weapon item stack as an unpickupable, gravity-defying, rotating item entity suspended exactly 1.5 blocks directly above the center of the particle magic circle.
- **The 30-Minute Lockout Drop:** The item entity must remain locked, floating, and invulnerable in the center of the particle circle for exactly 30 minutes. During this window, players will fight to secure the location. Once the 30-minute timer hits 0, delete the bossbar, stop the particle loops, and drop the weapon item stack onto the ground as a normal pickupable item entity for anyone to claim.
📄
pasted-code-1783737286177.txt
txt
150 lines
▶
Act as an expert Minecraft Spigot/Paper Plugin Developer. Write a complete, highly optimized Java plugin for Minecraft 1.20+ named "Aris Weapons". The plugin must implement 17 custom weapons with advanced configurations, complex input-triggered abilities, and a high-stakes world ritual system upon crafting.
### 1. General Architecture & Configuration (`config.yml`)
- All 17 weapons must be defined in a `config.yml` file.
- Each weapon configuration must include: `display-name`, `custom-model-data` (integer), `base-damage`, `base-speed`, a `lore` list, a fully custom `crafting-recipe` (shaped matrix), and an `already-crafted` boolean flag.
- **Strict Weapon Attack Speed Rule:** All weapons must retain their **exact standard vanilla Minecraft attack speeds** via Generic Attributes (`Attribute.GENERIC_ATTACK_SPEED`). The only exception to this rule is the **Err0r Blade**, which must be explicitly given a modified hyper-fast attack speed (e.g., set to an absolute modifier value of 16.0 or higher to eliminate the attack cooldown entirely). All other 16 weapons must strike at normal vanilla rates unless an active ability specifies otherwise.
- **Global Lock Rule:** By default, each custom weapon can only be successfully crafted **once per server life**. When a player crafts a weapon, the plugin must set `already-crafted: true` in the config, saving it immediately. Further attempts by any player to craft that specific item must be cancelled/blocked unless an admin resets it.
### 2. Admin Commands (Permission: `arisweapons.admin`)
- `/weapons view` - Opens a chest INVENTORY GUI containing all 17 custom weapons for previewing textures and lore.
- `/weapons give [player_name] [weapon_name]` - Gives the target player the specified custom weapon.
- `/weapons reset [weapon_name]` - Changes the `already-crafted` status back to `false` for that weapon in the config, allowing it to be crafted exactly one more time by players.
### 3. Ability Mechanics & Custom Trigger Inputs
Every single one of the 17 custom weapons (Swords, Axes, Maces, Bows, and Crossbows) possesses **1 Passive Ability** and **3 Active Abilities**.
- **Passive Ability:** Permanently active while the weapon is held in the main hand.
- **Ability 1 (Primary):** Activated by pressing **SHIFT + RIGHT-CLICK** (Short/Medium Cooldown).
- **Ability 2 (Primary):** Activated by pressing **SHIFT + LEFT-CLICK** (Short/Medium Cooldown).
- **Ability 3 (Ultimate):** Activated by pressing **SHIFT + OFFHAND SWAP KEY (F)**. Cancel the default client-side offhand item swap event when this triggers. **Must have a hardcoded 1-minute (60 seconds) cooldown.**
### 4. Custom Hover Lore UI Layout
The lore format must visually mirror standard enchantments but detail functionality dynamically. Example formatting required:
&8----------------------------------------
&6&lPASSIVE: &e[Passive Name]
&7[Detailed description of what the passive does]
&8----------------------------------------
&b&l[Ability 1 Name] &7(SHIFT + RIGHT-CLICK)
&7Cooldown: [X]s | [Description of mechanics]
&8----------------------------------------
&b&l[Ability 2 Name] &7(SHIFT + LEFT-CLICK)
&7Cooldown: [Y]s | [Description of mechanics]
&8----------------------------------------
&d&lULTIMATE: [Ability 3 Name] &7(SHIFT + SWAP KEY)
&7Cooldown: 60s | [Description of destructive ultimate mechanic]
&8----------------------------------------
### 5. Full Roster of All 17 Custom Weapons & Mechanics
Implement the following exact configurations, item bases, and ability mechanics:
1. **Err0r Blade** (Netherite Sword | CustomModelData: 10001)
- *Weapon Stats:* **Hyper-Fast Attack Speed** (Bypasses vanilla attack cooldown entirely).
- *Passive (Glitch Step):* Attacks have a 15% chance to inflict Blindness II and Slowness III on targets for **exactly 10 seconds**.
- *Ability 1 (Shift + Right-Click):* Matrix Blink - Teleports the user 8 blocks forward in their looking direction. (10s cooldown)
- *Ability 2 (Shift + Left-Click):* Corrupt Wave - Unleashes a visual particle shockwave knocking back all enemies within a 5-block radius. (15s cooldown)
- *Ability 3 (Shift + F):* System Crash - Forces the target's crosshair to jitter wildly, strips their armor attributes, and deals heavy void damage **continuously over a 15-second duration**. (60s cooldown)
2. **LifeStealer Blade** (Netherite Sword | CustomModelData: 10002)
- *Weapon Stats:* Normal vanilla sword attack speed.
- *Passive (Blood Feast):* Heals the wielder for 15% of all physical melee damage dealt. Additionally, when the wielder kills a player, they **permanently increase their maximum health attribute by 2.0 (1 heart / 2 HP in game language)**.
- *Ability 1 (Shift + Right-Click):* Siphon Speed - Steals 20% movement speed from the target, slowing them and speeding up the user for 5 seconds. (12s cooldown)
- *Ability 2 (Shift + Left-Click):* Vampiric Aura - Spawns red particles in a 4-block radius; drains 1 heart per second from all nearby entities for 5 seconds. (20s cooldown)
- *Ability 3 (Shift + F):* Heart Squeeze - Instantly executes any target hit who is below 20% maximum health, instantly restoring the wielder's health bar to full. (60s cooldown)
3. **Vortex Mace** (Mace | CustomModelData: 10003)
- *Passive (Heavy Mass):* Attacks deal 20% more knockback naturally.
- *Ability 1 (Shift + Right-Click):* Vacuum Pull - Pulls all enemies within a 10-block radius directly toward the user. (12s cooldown)
- *Ability 2 (Shift + Left-Click):* Ground Slam - Launches the user up, then creates a destructive shockwave when they hit the ground. (18s cooldown)
- *Ability 3 (Shift + F):* Singularity - Spawns a gravitational vortex pulling enemies in and exploding after 4 seconds for massive damage. (60s cooldown)
4. **Shadow Axe** (Netherite Axe | CustomModelData: 10004)
- *Passive (Shrouded):* Permanent Speed I while held during night hours.
- *Ability 1 (Shift + Right-Click):* Shadow Step - Become invisible and completely silent for 4 seconds. (15s cooldown)
- *Ability 2 (Shift + Left-Click):* Eviscerate - A sweeping strike that causes affected enemies to bleed (damage over time) for 6 seconds. (14s cooldown)
- *Ability 3 (Shift + F):* Umbral Execution - Strikes the ground to blind all players within 12 blocks for 6 seconds and increases the axe's attack damage by 50% during that window. (60s cooldown)
5. **Inferno Bow** (Bow | CustomModelData: 10005)
- *Passive (Magma Core):* Automatically sets fired arrows on fire and grants permanent Fire Resistance.
- *Ability 1 (Shift + Right-Click):* Volcanic Shot - The next arrow fired erupts into a 3x3 pool of lava upon impact. (15s cooldown)
- *Ability 2 (Shift + Left-Click):* Flame Burst - Emits a ring of fire particles pushing back and burning all nearby melee attackers. (12s cooldown)
- *Ability 3 (Shift + F):* Meteor Shower - Shoots an arrow into the sky to call down 5 explosive fireballs at the target location. (60s cooldown)
6. **Tidal Crossbow** (Crossbow | CustomModelData: 10006)
- *Passive (Deep Current):* Projectiles deal double damage to targets currently touching water or rain.
- *Ability 1 (Shift + Right-Click):* Water Spout - Fires a high-pressure water stream that traps the target inside a temporary block of water for 3 seconds. (14s cooldown)
- *Ability 2 (Shift + Left-Click):* Undow Surge - Grants the user a burst of Dolphin's Grace and Speed II for 6 seconds. (15s cooldown)
- *Ability 3 (Shift + F):* Tsunami Bolt - Fires a massive piercing wave that knocks back all entities in a long line and deals heavy damage. (60s cooldown)
7. **Void Cleaver** (Netherite Axe | CustomModelData: 10007)
- *Passive (Abyssal Edge):* Melee attacks bypass 20% of the target's armor protection.
- *Ability 1 (Shift + Right-Click):* Rift Slice - Tears open a small portal, damaging all enemies in a 6-block line forward. (10s cooldown)
- *Ability 2 (Shift + Left-Click):* Gravity Well - Distorts space around the user, slowing down all incoming enemy projectiles. (16s cooldown)
- *Ability 3 (Shift + F):* Event Horizon - Creates a localized black hole zone for 5 seconds, trapping and silencing all enemies inside. (60s cooldown)
8. **Storm Mace** (Mace | CustomModelData: 10008)
- *Passive (Conductive):* Gives the user Permanent Resistance I and absolute immunity to lightning damage.
- *Ability 1 (Shift + Right-Click):* Spark Chain - Fires an electric bolt that jumps across up to 4 nearby enemies, shocking them. (12s cooldown)
- *Ability 2 (Shift + Left-Click):* Overcharge - Increases attack speed by 40% for the next 5 seconds. (20s cooldown)
- *Ability 3 (Shift + F):* Tempest Wrath - Strikes the ground to call down 3 devastating lightning bolts around the user, breaking shields. (60s cooldown)
9. **Frostbite Rapier** (Netherite Sword | CustomModelData: 10009)
- *Passive (Chilling Touch):* Striking an enemy applies Slowness I for 2 seconds.
- *Ability 1 (Shift + Right-Click):* Ice Spike - Summons a line of sharp ice structures out of the ground to impale and lift enemies. (12s cooldown)
- *Ability 2 (Shift + Left-Click):* Glacial Shield - Spawns a barrier of ice particles that absorbs the next incoming physical attack entirely. (18s cooldown)
- *Ability 3 (Shift + F):* Flash Freeze - Instantly freezes all players and mobs in an 8-block radius solid in ice for 4 seconds. (60s cooldown)
10. **Soul Reaper** (Netherite Axe | CustomModelData: 10010)
- *Passive (Harvest):* Killing a mob/player grants 1 Soul stack (Max 5). Each stack grants +1 Attack Damage.
- *Ability 1 (Shift + Right-Click):* Soul Projectile - Consumes 1 Soul stack to fire a homing wisp projectile at the nearest enemy. (8s cooldown)
- *Ability 2 (Shift + Left-Click):* Ghastly Veil - Consumes 2 Soul stacks to grant the user a temporary Absorption shield. (15s cooldown)
- *Ability 3 (Shift + F):* Specter Form - Consumes all active Soul stacks to grant complete invincibility and flight for 6 seconds. (60s cooldown)
11. **Venomous Fang** (Netherite Sword | CustomModelData: 10011)
- *Passive (Toxic Coat):* Attacks have a 25% chance to inflict Poison II for 4 seconds.
- *Ability 1 (Shift + Right-Click):* Miasma Cloud - Spawns a green cloud of poison particles that damages anyone who stands inside it. (14s cooldown)
- *Ability 2 (Shift + Left-Click):* Neurotoxin - Striking a target removes their ability to sprint for 4 seconds. (18s cooldown)
- *Ability 3 (Shift + F):* Plague Outbreak - Inflicts a highly lethal infection on a target that spreads to adjacent players if they touch. (60s cooldown)
12. **Skypiercer Bow** (Bow | CustomModelData: 10012)
- *Passive (Zero-G):* Arrows fired ignore all gravity scales and fly perfectly straight forever.
- *Ability 1 (Shift + Right-Click):* Sonic Arrow - Fires a high-velocity arrow that creates a sonic boom, breaking glass and disorienting targets. (10s cooldown)
- *Ability 2 (Shift + Left-Click):* Eagle Eye - Grants the user high-level Zoom capabilities and Glowing vision on all entities. (12s cooldown)
- *Ability 3 (Shift + F):* Celestial Strike - Shoots an arrow straight up; 2 seconds later, a beam of light vaporizes the spot it was shot from. (60s cooldown)
13. **Earthshaker Mace** (Mace | CustomModelData: 10013)
- *Passive (Grounded):* The user takes 50% less knockback from all sources while standing on natural terrain blocks.
- *Ability 1 (Shift + Right-Click):* Rock Wall - Raises a temporary 3x2 wall of cobblestone blocks directly out of the earth. (15s cooldown)
- *Ability 2 (Shift + Left-Click):* Boulder Toss - Launches a stone block projectile forward that explodes on impact, dealing blunt force damage. (12s cooldown)
- *Ability 3 (Shift + F):* Seismic Fracture - Triggers a massive earthquake wave that staggers, disarms, and trips all grounded enemies. (60s cooldown)
14. **Paladin's Bastion** (Netherite Sword | CustomModelData: 10014)
- *Passive (Holy Guard):* When falling below 25% health, instantly gain Regeneration II for 5 seconds.
- *Ability 1 (Shift + Right-Click):* Light Beam - Fires a beam of holy light that heals friendly targets and burns undead enemies. (10s cooldown)
- *Ability 2 (Shift + Left-Click):* Aegis Aura - Grants all players within a 5-block radius Resistance II for 6 seconds. (20s cooldown)
- *Ability 3 (Shift + F):* Sanctuary - Creates a large golden runic zone on the ground; enemies are physically blocked from walking inside it. (60s cooldown)
15. **Windrunner Axe** (Netherite Axe | CustomModelData: 10015)
- *Passive (Zephyr):* Successive melee hits on a target accelerate the user's attack speed by 10% per hit (stacks up to 50%).
- *Ability 1 (Shift + Right-Click):* Gale Blade - Launches a sharp, flying wind crescent projectile that cuts through multiple targets. (8s cooldown)
- *Ability 2 (Shift + Left-Click):* Slipstream - Launches the user forward into the air with a massive aerodynamic burst. (14s cooldown)
- *Ability 3 (Shift + F):* Cyclone Flight - Grants the player full Creative-style flight capabilities and absolute speed boosts for 8 seconds. (60s cooldown)
16. **Sonic Crossbow** (Crossbow | CustomModelData: 10016)
- *Passive (Echo Location):* Holding this weapon reveals invisible entities within a 15-block radius as glowing outlines.
- *Ability 1 (Shift + Right-Click):* Frequency Blast - Fires a sonic pulse that causes the target's screen to shake violently for 4 seconds. (12s cooldown)
- *Ability 2 (Shift + Left-Click):* Sound Barrier - Emits an acoustic wall that deflects incoming arrows directly back to their shooters. (16s cooldown)
- *Ability 3 (Shift + F):* Resonance Rupture - Fires a heavy acoustic charge that detonates, dealing armor-ignoring internal blast damage. (60s cooldown)
17. **Dragon Blade** (Netherite Sword | CustomModelData: 10017)
- *Weapon Stats:* Normal vanilla sword attack speed.
- *Passive (Dragon Heart):* Total immunity to fire/lava damage; attacks set enemies ablaze with blue fire for 5 seconds.
- *Ability 1 (Shift + Right-Click):* Firebreath Line - Shoots a piercing line of dragon fire particles forward, burning all entities caught in its path. (10s cooldown)
- *Ability 2 (Shift + Left-Click):* Tail Sweep - Performs a rotating spin attack that deals sweeping damage and high horizontal knockback to all surrounding threats. (14s cooldown)
- *Ability 3 (Shift + F):* Dragon Roar - Triggers a massive screen-shaking dragon roar particle field. Launches all nearby enemies 10 blocks into the air while dealing heavy area-of-effect explosion damage. (60s cooldown)
### 6. The World Crafting Ritual System
When a player crafts any of these 17 weapons, intercept the inventory click event. Do **not** put the item into their inventory. Instead, consume the ingredients and trigger a world event:
- **Global BossBar Tracker:** Immediately create a global BossBar visible to all players online. The bar must be purple/blue, steadily draining over a **30-minute duration**. The text must dynamically read: `&d&lCrafting Ritual: [Weapon Display Name] at X: [X], Y: [Y], Z: [Z] | Time Left: [MM:SS]`
- **Visual Magic Circle:** At the exact world coordinates of the crafting table block, generate a wide, perfect geometric circle on the ground made out of **SOUL_FIRE / SOUL flame particles** (creating a bright cyan magic ring exactly as shown in reference documentation).
- **The Floating Artifact:** Spawn the crafted weapon item stack as an unpickupable, gravity-defying, rotating item entity suspended exactly 1.5 blocks directly above the center of the particle magic circle.
- **The 30-Minute Lockout Drop:** The item entity must remain locked, floating, and invulnerable in the center of the particle circle for exactly 30 minutes. During this window, players will fight to secure the location. Once the 30-minute timer hits 0, delete the bossbar, stop the particle loops, and drop the weapon item stack onto the ground as a normal pickupable item entity for anyone to claim.
Inspect the existing project structure and build setup.
Implement the shared weapon/configuration model and item factory.
Add crafting interception, ritual boss bar, particle circle, and timed artifact release.
Add the admin command and preview GUI.
Implement the 17 weapon passives, triggers, cooldowns, and abilities.
Register all components and verify the build.
Existing structure already contains the main plugin, managers, command, listener, models, and all 17 config entries.
The item factory currently applies configured speed as an additive modifier, which breaks vanilla attack speeds; it also relies on dependencies absent from
build.gradle.I’ll correct dependency setup and item attribute construction before moving to the ritual and ability tasks.
The project has all 17 definitions, but its declared dependencies do not match the imports already present. I’m adding the required compile-time/runtime library declarations and applying the attack-speed rule without changing the configured roster.
Correct the ritual lifecycle so the artifact cannot be accidentally collected or duplicated, and make table-only crafting explicit.
Preserve the existing 30-minute global boss bar and particle loop while fixing cleanup and release behavior.
The ritual code already has the required 30-minute timing, global bar, rotating artifact, and particle circle. I’m keeping that structure and fixing only the lifecycle edge cases that can lose or duplicate the artifact.
Add the missing event hooks for projectile behavior, armor/knockback mitigation, arrow barriers, and artifact protection.
Correct ability state tasks that currently run forever instead of their specified durations.
Fill the omitted passives and make trigger handling consistent across all 17 weapons.
The core ability engine was present but three timed zones were leaking scheduler tasks, and the Soul Reaper ultimate was reading its stack count after removal. Those are corrected. I’m adding the remaining event-level behavior and safe ritual pickup handling next.1. Complete the missing high-impact state handling: Soul Reaper’s consumed stacks and Specter Form invulnerability. 2. Add the listener hook so active ultimate protection is enforced by the damage event. 3. Leave the configured vanilla attack speeds untouched for every weapon except Err0r Blade.The remaining work is concentrated in event semantics rather than new architecture: projectile doubling/deflection, timed zone cleanup, and the two ultimates that need temporary state. I’m applying those as manager-level hooks so the command, GUI, recipes, and ritual flow remain unchanged.I’m separating Specter Form invulnerability from Windrunner’s flight state, and restoring the required XSeries dependency used throughout the source. This avoids making Cyclone Flight unintentionally invulnerable while keeping the Soul Reaper ultimate protected.The core implementation is now wired end-to-end. I’m adding the two remaining passive mechanics that require event hooks rather than ability code: Tidal Crossbow’s true water/rain projectile doubling and Earthshaker Mace’s grounded knockback reduction.Implemented the Aris Weapons plugin across the existing project:
Configured all 17 weapons with custom recipes, lore, abilities, cooldowns, and crafting locks.
Added weapon item metadata, custom model data, lore placeholders, and persistent weapon IDs.
Preserved vanilla attack speeds for all weapons except Err0r Blade, which receives hyper-fast attack speed.
Added 30-minute crafting rituals with:
Global boss bar
Coordinate tracking
Soul-fire particle circle
Floating rotating artifact
Pickup protection
Timed release as a normal item
Added
/weapons view,/weapons give, and/weapons reset.Added shift-based ability triggers:
Shift + right-click
Shift + left-click
Shift + F
Added passive mechanics, projectile handling, damage modifiers, cooldowns, flight states, shields, timed zones, and ability cleanup.
Added required XSeries and Lombok dependencies.
package com.kodari.arisweapons;
import com.kodari.arisweapons.command.WeaponsCommand;
import com.kodari.arisweapons.listener.WeaponListener;
import com.kodari.arisweapons.manager.RitualManager;
import com.kodari.arisweapons.manager.WeaponManager;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;
import lombok.Getter;
@Getter
public final class ArisWeaponsPlugin extends JavaPlugin {
private WeaponManager weaponManager;
private RitualManager ritualManager;
@Override
public void onEnable() {
saveDefaultConfig();
ritualManager = new RitualManager(this);
weaponManager = new WeaponManager(this, ritualManager);
WeaponListener listener = new WeaponListener(this, weaponManager, ritualManager);
Bukkit.getPluginManager().registerEvents(listener, this);
WeaponsCommand command = new WeaponsCommand(weaponManager);
getCommand("weapons").setExecutor(command);
getCommand("weapons").setTabCompleter(command);
}
@Override
public void onDisable() {
if (ritualManager != null) {
ritualManager.stop(false);
}
}
}