Limitty
📎 1 file 32,808 chars
📄
pasted-code-1789618638487.txt
txt 842 lines
▶
Artifacts:

🌊 Aquarius Artifact
A powerful ocean-themed artifact focused on water manipulation, mobility, and aquatic combat.
🐋 Passive 1 Ocean's Blessing
While holding the Aquarius Artifact:
Gain Water Breathing permanently.
Gain Dolphin's Grace I while in water.
Gain Regeneration I while completely submerged.
Your movement speed in water is increased by 5%.

🌊 Passive 2 Tidal Resilience
The ocean protects its wielder.
While in water, gain Resistance I.
Taking damage while submerged creates a small water burst that pushes nearby enemies back 2 blocks.
The burst has a 5-second cooldown.
You take 50% less fall damage when landing in water.

🌪️ Ability 1 Tidal Crash
Activation: Right Click
Summon a massive wave in the direction you're looking.
Range: 15 blocks
Width: 5 blocks
Deals 4 hearts of damage.
Pushes enemies backward up to 8 blocks.
Applies Slowness II for 4 seconds.
Enemies hit are briefly lifted off the ground.
Creates a large wave particle effect.
Cooldown: 30 seconds
Bonus: If activated while standing in water, the wave travels 25 blocks instead.

🐙 Ability 2 Leviathan's Grasp
Activation: 
Summon spectral tentacles from beneath the target, representing a massive sea creature.
Target range: 20 blocks
Creates a 6-block-radius water vortex.
Enemies inside are pulled toward the center.
Deals 1 heart every second for 5 seconds.
Applies Slowness III and Mining Fatigue II.
At the end, the vortex explodes outward, dealing 3 hearts and launching everyone away.
Cooldown: 60 seconds
Combo: Use Leviathan's Grasp to trap enemies, then hit them with Tidal Crash for a massive knockback combo.



Earth Artifact
🪨 Passive 1 Earthen Armor
While holding the Earth Artifact:
Gain Regeneration I.
When you are standing on a solid block, gain 10% damage reduction.
If you fall at least 8 blocks, reduce the fall damage by 50%.
🌱 Passive 2  Nature's Recovery
When you drop below 40% HP:
Gain Regeneration II for 5 seconds.
A ring of small stone particles appears around you.
30-second cooldown.
Only activates once per cooldown.

🪨 Ability 1 Tectonic Slam
Activation: Offhand
Slam the ground, creating a shockwave around you.
Radius: 8 blocks
Deals 4 hearts of damage to nearby enemies.
Launches enemies 4 blocks upward.
Applies Slowness III for 4 seconds.
Creates temporary cracks/stone particles across the ground.
Cooldown: 35 seconds
Extra: Enemies standing directly beside you are launched slightly farther.

🏔️ Ability 2  Earth's Wrath
Activation: Right Click
Summon a massive stone pillar beneath the targeted location.
Range: 20 blocks
Pillar radius: 3 blocks
Pillar rises from the ground, launching enemies upward.
Deals 5 hearts of damage.
Applies Slowness IV for 5 seconds.
The pillar remains for 6 seconds, giving you temporary high ground.
Cooldown: 60 seconds
Combo potential: Use Tectonic Slam to launch someone, then Earth's Wrath to catch them in the air and knock them even higher.



🟦 Echo Artifact — Warden-Themed
Designed around the Warden's sonic attacks, darkness, vibrations, and underground nature.
👁️ Passive 1 Sculk Resonance
While holding the Echo Artifact:
Gain Strength I while underground.
Your footsteps make significantly less sound.
When an enemy within 12 blocks sprints or takes damage, you briefly gain Glowing on them for 1 second.
This passive has a 3-second internal cooldown per target.

💀 Passive 2  Heart of the Deep
The lower your health gets, the stronger you become.
Below 5 Hearts: Gain Strength II
Below 3 Hearts: Gain Resistance II
When you fall below 25% HP, emit a Warden heartbeat sound.
Activates once every 30 seconds.

🔊 Ability 1 Sonic Boom
Activation: Right Click
Charge a devastating sonic blast similar to the Warden's attack.
Range: 30 blocks
Deals 5 hearts of damage.
Ignores shields and most armor protection.
Applies Darkness for 5 seconds.
Knocks the target backward.
Creates a large blue sonic-wave particle effect.
Cooldown: 35 seconds
Bonus: Damage increases to 7 hearts if the target is more than 15 blocks away.

 Ability 2  Warden's Domain
Activation: Crouch + Right Click
Release the power of the Deep Dark, creating a temporary sculk domain around you.
Radius: 15 blocks
 Duration: 10 seconds
 Cooldown: 75 seconds
While inside the domain:
Enemies receive Darkness II.
Enemies receive Slowness II.
Enemies cannot see your name tag.
Every 2 seconds, a Warden heartbeat sound plays.
Moving enemies trigger sculk-like particle waves, revealing their position to you.
At the end of the duration, unleash a Sonic Shockwave that deals 4 hearts of damage and knocks enemies away.
Ultimate effect: If an enemy remains inside the domain for the entire duration, the final shockwave deals 6 hearts instead of 4.



☠️ Toxic Artifact
A poison-based artifact focused on damage-over-time, weakening enemies, and spreading toxins.
🧪 Passive 1 Toxic Blood
Your body is infused with poison.
Gain Poison Immunity while holding the Toxic Artifact.
Enemies that melee attack you have a 25% chance to receive Poison I for 3 seconds.
Poisoned enemies that attack you have their movement speed reduced by 10% for 2 seconds.
Has a 3-second cooldown per attacker.

☣️ Passive 2 Venomous Presence
Your presence slowly poisons nearby enemies.
Enemies within 5 blocks have a chance to receive Poison I for 2 seconds every 4 seconds.
The effect only activates if the enemy has not already been poisoned by this passive.
Poisoned enemies are outlined with green particles for you to track.

🟢 Ability 1 Toxic Burst
Activation: Right Click
Release a cloud of poisonous gas around yourself.
Radius: 8 blocks
Deals 2 hearts of initial damage.
Applies Poison II for 8 seconds.
Applies Weakness I for 5 seconds.
The poison cloud remains for 6 seconds.
Enemies entering the cloud are continuously poisoned.
Cooldown: 35 seconds
Visual: Thick green particles fill the area, with occasional bubbles and smoke-like poison effects.

☠️ Ability 2 Venomous Infection
Activation: 
Fire a concentrated venom projectile at the enemy you're looking at.
Range: 25 blocks
Deals 3 hearts of initial damage.
Applies Poison III for 10 seconds.
Applies Slowness II for 4 seconds.
After 5 seconds, the poison erupts, dealing 3 additional hearts.
If the target dies while infected, the poison spreads to nearby enemies within 5 blocks, infecting them with Poison II for 6 seconds.
Cooldown: 60 seconds
Combo: Use Venomous Infection to infect a target, then Toxic Burst to trap them inside the poison cloud and amplify the damage-over-time pressure.



❄️ Arctic Artifact
A frozen-themed artifact focused on freezing enemies, slowing movement, creating ice, and surviving in harsh environments.
🧊 Passive 1 Frozen Core
Your body is infused with the power of ice.
Gain Slowness Immunity while holding the Arctic Artifact.
Gain Strength I while standing on snow or ice.
You cannot take Powder snow freezing damage.
Enemies that melee attack you have a 20% chance to receive Slowness II for 3 seconds.
This effect has a 4-second cooldown per attacker.

❄️ Passive 2 Permafrost
The ground around you slowly freezes.
Water within 3 blocks of you automatically turns into ice.
Snow particles constantly appear around your feet.
When you stand still for 3 seconds, gain Resistance I for as long as you remain stationary.
Moving for more than 2 seconds removes the Resistance effect.

🌨️ Ability 1 Frozen Wave
Activation: Right Click
Launch a massive wave of freezing energy forward.
Range: 18 blocks
Width: 5 blocks
Deals 4 hearts of damage.
Applies Slowness III for 5 seconds.
Applies Mining Fatigue II for 4 seconds.
Creates a trail of temporary ice behind the wave.
Enemies hit are briefly frozen in place for 1.5 seconds.
Cooldown: 35 seconds
Visual: A giant blue-white wave of ice rushes forward, leaving snowflakes and ice particles behind.

🥶 Ability 2 Absolute Zero
Activation: Crouch + Right Click
Release an enormous freezing field around yourself.
Radius: 10 blocks
Duration: 8 seconds
Enemies inside receive Slowness IV.
Deals 1 heart every 2 seconds.
Every 2 seconds, enemies have a chance to become completely frozen for 1 second.
Creates a thick layer of temporary ice across the ground.
When the ability ends, the ice shatters, dealing 4 hearts of damage and knocking enemies backward.
Cooldown: 70 seconds
❄️ Special Effect: If an enemy is below 25% HP when Absolute Zero ends, they become frozen for an additional 2 seconds.




⚙️ Rigid Artifact — Steel
A heavy, defensive artifact built around steel armor, durability, impact, and raw metallic force.
🛡️ Passive 1 Steel Body
Your body becomes as durable as forged steel.
Gain Resistance I while holding the Rigid Artifact.
Take 20% less knockback.
Reduce incoming melee damage by 10%.
You cannot be knocked into the air by normal melee attacks.

⚙️ Passive 2 Ironclad
The more damage you take, the harder you become.
Every time you take damage, gain 1 stack of Steel.
Each stack gives 2% damage reduction.
Maximum: 5 stacks.
Stacks last 8 seconds and refresh whenever you take damage.
Reaching 5 stacks grants Knockback Resistance.
When the stacks expire, they disappear one at a time.

🔩 Ability 1 Steel Breaker
Activation: Right Click
Charge your weapon with the force of forged steel and unleash a devastating strike.
Your next melee attack deals +4 hearts of damage.
Knocks the enemy backward 6 blocks.
Applies Slowness II for 4 seconds.
The attack deals bonus damage to shields, heavily damaging their durability.
Creates a metallic shockwave on impact.
Cooldown: 30 seconds
Visual: Gray metallic particles explode outward from the player when the attack connects.

🏗️ Ability 2 Iron Fortress
Activation: Crouch + Right Click
Transform yourself into an immovable steel fortress.
Duration: 8 seconds
Cooldown: 70 seconds
While active:
Gain Resistance III.
Gain 75% Knockback Resistance.
Take 40% less projectile damage.
Gain Slowness II because of your immense weight.
Enemies that hit you with melee attacks are knocked backward 3 blocks.
You cannot sprint while the ability is active.
When the ability ends, release a Steel Shockwave:
Radius: 7 blocks
Deals 4 hearts of damage.
Knocks enemies back 7 blocks.
Applies Slowness III for 3 seconds.
⚙️ Special Effect: If you activate Iron Fortress while below 30% HP, the final shockwave deals 6 hearts instead.

⚡ Raikou Artifact Lightning
A lightning-based artifact focused on speed, electrical damage, chain attacks, and devastating bursts of energy.
⚡ Passive 1 Static Charge
Your body constantly generates electricity.
Gain Speed II while holding the Raikou Artifact.
Every melee hit has a 20% chance to apply Static to the enemy.
Static lasts 5 seconds.
Hitting a Static enemy again releases a small lightning strike, dealing 1 heart of bonus damage.
Static has a 3-second cooldown per target.

🌩️ Passive 2 Stormborn
The sky itself empowers you.
Gain Resistance I during thunderstorms.
Your movement speed increases by 15% during thunderstorms.
Lightning strikes within 20 blocks of you have a chance to grant Speed II for 3 seconds.
You take no damage from natural lightning strikes.

⚡ Ability 1 Raikou Strike
Activation: Right Click
Call down a devastating bolt of lightning on the enemy you're looking at.
Range: 25 blocks
Deals 5 hearts of damage.
Applies Glowing for 5 seconds.
Applies Slowness I for 2 seconds.
Creates a small electrical shockwave that knocks nearby enemies back 3 blocks.
Cooldown: 30 seconds
⚡ Special Effect: If the target has Static, the lightning chains to up to 2 additional enemies within 6 blocks, dealing 2 hearts to each.

🌩️ Ability 2 Thunder God's Wrath
Activation: Crouch + Right Click
Charge yourself with an enormous amount of electrical energy before unleashing a storm.
Duration: 6 seconds
 Cooldown: 75 seconds
While charging:
Gain Speed III.
Gain Resistance II.
Emit lightning particles.
Every enemy within 8 blocks is periodically struck by small lightning bolts, dealing 1 heart every 1.5 seconds.
You cannot use other abilities during the charge.
After 6 seconds, unleash a massive lightning explosion:
Radius: 10 blocks
Deals 6 hearts of damage.
Knocks enemies back 8 blocks.
Applies Slowness II for 4 seconds.
Strikes the primary target with three consecutive lightning bolts, dealing an additional 3 hearts total.
⚡ Overcharge: If the primary target has Static, the final attack deals 2 additional hearts and briefly stuns them for 1 second.



🪞 Mimic Artifact Mirror & Mimicry
A deceptive artifact focused on copying abilities, creating reflections, and turning an opponent's own powers against them.
🪞 Passive 1 Mirror Image
Your body creates a faint reflection of yourself.
Every 12 seconds, create a mirror clone when you take damage.
The clone lasts 5 seconds.
The clone copies your movement but cannot deal damage.
Enemies who attack the clone are briefly inflicted with Blindness for 1 second.
Only one clone can exist at a time.

🔄 Passive 2 Mimicry
The Artifact remembers the abilities used against you.
When an enemy activates an ability within 20 blocks, you gain 1 Mimic Charge.
Maximum: 2 charges.
Your next ability can consume a Mimic Charge to gain a 25% bonus effect.
Charges disappear after 30 seconds if unused.
You cannot copy the exact ability itself through the passive, preventing infinite ability chains.

🪞 Ability 1 Mirror Copy
Activation: Right Click
Create a perfect reflection of yourself that fights alongside you.
Clone duration: 8 seconds
The clone follows your target.
It deals 50% of your normal melee damage.
The clone takes 200% damage from attacks.
When the clone is destroyed, it shatters and knocks enemies within 4 blocks backward.
Cooldown: 40 seconds
Special Effect: If an enemy attacks the clone with an ability, the clone briefly takes on the visual effects of that ability.

🔮 Ability 2 Ability Reversal
Activation: Crouch + Right Click
Create a mirror around yourself that can reflect an enemy's ability back at them.
Duration: 5 seconds
 Cooldown: 70 seconds
While active:
The first damaging ability that hits you is copied.
You take 50% reduced damage from that attack.
After absorbing it, you can immediately fire a mirrored version back at the attacker.
The reflected ability deals 75% of its original damage.
The reflected version gains a distinctive glass/mirror particle effect.
Only one ability can be copied per activation.




💎 Crystalline Artifact
A crystal-based artifact focused on crystal generation, sharp shards, defensive barriers, and explosive crystal energy.
💠 Passive 1 Crystal Armor
Your body is covered in a thin layer of magical crystal.
Doubles All Ore Drops When holding Crystalline Artifact
Reduce incoming melee damage by 10%.
Whenever you take melee damage, there is a 20% chance to create a small crystal shard around you.
The shard damages enemies that touch it for 1 heart.
Crystal shards disappear after 5 seconds.

✨ Passive 2 Crystal Resonance
Your crystals become stronger as you fight.
Every time you deal damage, gain 1 Crystal Charge.
Maximum: 5 charges.
Each charge increases your ability damage by 3%.
Charges last 10 seconds and refresh whenever you deal damage.
At 5 charges, your next ability creates an additional burst of crystal particles.

💎 Ability 1 Crystal Barrage
Activation: Right Click
Launch a barrage of razor-sharp crystal shards toward the direction you're looking.
Range: 25 blocks
Fires 5 crystal shards.
Each shard deals 1.5 hearts of damage.
Hitting the same player with multiple shards slightly reduces the damage of subsequent shards.
The final shard knocks the target backward 4 blocks.
Cooldown: 30 seconds
💠 Special Effect: If all 5 shards hit the same target, a crystal explosion occurs, dealing an additional 2 hearts.

🔮 Ability 2 Crystal Prison
Activation: Crouch + Right Click
Summon massive crystals from the ground around a targeted enemy.
Range: 20 blocks
Creates 6 crystal pillars surrounding the target.
The target is trapped for 4 seconds.
Deals 1 heart every second while trapped.
Applies Slowness III.
Enemies outside the prison cannot enter it.
The crystals have 20 durability and can be destroyed by attacking them.
Cooldown: 65 seconds
After 4 seconds, the prison shatters, dealing 4 hearts of damage and knocking the trapped enemy upward.
💎 Special Effect: If the target destroys a crystal pillar, the remaining pillars become stronger, increasing the final shatter damage by 0.5 hearts per destroyed pillar, up to 7 hearts.
—----------------------------------------------------------------------------------------------------------------------------

Mythic Artifacts:

🖥️ Glitch Artifact Mythic
A chaotic Mythic Artifact based around reality corruption, teleportation, duplicated attacks, visual glitches, and breaking the rules of Minecraft.
🟪 Passive 1 Corrupted Reality
The world around you struggles to function normally.
Gain Speed II while holding the Glitch Artifact.
Gain Resistance II.
Every 8 seconds, randomly glitch a nearby enemy within 12 blocks:
Teleports them 2–4 blocks in a random direction.
Applies Nausea I for 2 seconds.
Deals 1 heart of damage.
Your movement occasionally leaves behind glitching particle afterimages.
You have a 10% chance to completely ignore incoming projectile damage.

💾 Passive 2 Error Stack
Every successful attack builds up corruption.
Dealing damage gives you 1 Error Stack.
Maximum: 5 stacks.
Each stack increases your ability damage by 5%.
At 5 stacks, your next ability becomes Overloaded.
An Overloaded ability gains an additional effect depending on which ability you use.
After using an Overloaded ability, all stacks are consumed.

🟪 Ability 1 — Reality Break
Activation: Right Click
Tear a hole through reality and violently corrupt everything around your target.
Range: 30 blocks
Target an enemy or location.
Creates a 10-block corruption zone.
Deals 5 hearts of damage immediately.
Enemies inside are given:
Slowness III
Weakness II
Nausea II
Every 1.5 seconds, enemies inside the zone are randomly teleported 1–3 blocks.
The zone lasts 7 seconds.
When it disappears, reality snaps back into place, dealing another 4 hearts and knocking enemies 8 blocks away.
Cooldown: 55 seconds
💥 Overloaded Version
If you have 5 Error Stacks:
The initial damage becomes 7 hearts.
The final explosion becomes 6 hearts.
The corruption zone expands to 14 blocks.
Enemies inside have a 15% chance every second to be briefly frozen for 0.5 seconds.

🖥️ Ability 2 System Crash
Activation: Crouch + Right Click
Force the world around you to completely malfunction.
Duration: 8 seconds
 Cooldown: 90 seconds
When activated:
Create a 15-block-radius Glitch Domain.
Enemies inside receive Darkness II.
Enemy movement becomes unpredictable as they randomly teleport 1–2 blocks every 2 seconds.
Every 2 seconds, a random enemy inside is struck by a Glitch Bolt, dealing 3 hearts.
You gain:
Speed III
Strength II
Resistance II
Your attacks have a 30% chance to create a duplicate hit, dealing 50% of the original attack's damage.
When the domain ends:
☠️ FATAL ERROR
The entire domain collapses.
Deals 6 hearts of damage to enemies inside.
Launches them 10 blocks into the air.
Applies Glowing for 10 seconds.
Teleports every affected enemy to a random location within 8 blocks of where they were standing.
💥 Overloaded Version
With 5 Error Stacks:
FATAL ERROR becomes SYSTEM FAILURE.
Final explosion deals 12 hearts.
All enemies inside are stunned for 1.5 seconds.
The explosion ignores 50% of armor protection.
Creates 3 additional Glitch Bolts around the domain.
Whenever one of your abilities produces a random glitch effect, there is a 5% chance for it to trigger twice, creating unpredictable moments where the Artifact becomes significantly more powerful.

☠️ Decay Artifact Mythic
☠️ Passive 1 Withered Soul
The Wither has corrupted your very being.
Gain Wither Immunity while holding the Decay Artifact.
Gain Resistance I.
Attacks against you have a 20% chance to inflict Wither I for 4 seconds on the attacker.
Enemies within 6 blocks of you slowly lose health, taking 0.5 hearts every 3 seconds.
Players affected by Wither cannot naturally regenerate health while within your aura.

🖤 Passive 2 Death's Embrace
The closer your enemies are to death, the more powerful you become.
For every enemy within 15 blocks that is below 50% HP, gain +5% ability damage.
Maximum: 20% bonus damage.
If an enemy within 15 blocks drops below 20% HP, gain Strength II for 4 seconds.
Killing a player instantly restores 3 hearts and grants Speed II for 5 seconds.
The Strength effect has a 15-second cooldown.

☠️ Ability 1 Wither Barrage
Activation: Right Click
Summon multiple Wither skulls and launch them toward your target.
Range: 30 blocks
Fires 3 Wither skulls.
Each skull deals 3 hearts of damage.
Applies Wither II for 8 seconds.
The final skull causes a small explosion, knocking enemies back 6 blocks.
Cooldown: 40 seconds
💀 Corrupted Skull
Every third time you use Wither Barrage, the final skull becomes a Corrupted Skull:
Deals 5 hearts instead of 3.
Applies Wither III for 10 seconds.
Creates a 5-block decay cloud that lasts 5 seconds.

☠️ Ability 2 Wither's Domain
Activation: Crouch + Right Click
Unleash a fragment of the Wither's power and corrupt the surrounding area.
Radius: 15 blocks
Duration: 10 seconds
Cooldown: 100 seconds
Upon activation:
The sky around you becomes dark.
Black Wither particles fill the area.
Enemies inside receive:
Wither III
Weakness II
Slowness II
Enemies take 1 heart of damage every second.
Healing received by enemies inside the domain is reduced by 50%.
Every 2 seconds, a random enemy is struck by a Wither explosion for 2 hearts.
You gain Strength III and Resistance II while inside.
☠️ Final Phase Decay
When the domain ends, the entire area erupts.
Deals 8 hearts of damage.
Applies Wither IV for 8 seconds.
Knocks enemies back 10 blocks.
Enemies below 25% HP are instead hit for 12 hearts.
The explosion destroys nearby hostile projectiles.
💀 Mythic Overcharge
If you have killed a player within the previous 30 seconds, Wither's Domain becomes Overcharged:
Radius increases to 20 blocks.
Duration increases to 12 seconds.
Final explosion deals 12 hearts.
Final Wither effect becomes Wither V.
You gain Regeneration II for 5 seconds after the domain ends.
Enemies affected by your Wither effects cannot completely cleanse them using milk; drinking milk only reduces the remaining Wither duration by 50% instead of removing it entirely.

🌌 Starry Artifact  Mythic
A cosmic Mythic Artifact built around gravity, stars, black holes, meteors, and the vacuum of space. This one is meant to feel significantly stronger than the normal artifacts.
🌠 Passive 1  Cosmic Energy
Your body is infused with energy from the stars.
Gain Strength II and Speed II while holding the Starry Artifact.
Gain Resistance I.
Every 10 seconds, gain 1 Star Charge, up to 3.
Each Star Charge increases your ability damage by 5%.
When you reach 3 charges, your next ability becomes Supercharged and consumes all charges.

🪐 Passive 2  Gravitational Field
Space itself bends around you.
Enemies within 6 blocks have their movement speed reduced by 10%.
Enemy projectiles within 4 blocks of you are slightly pulled toward you, making them less accurate.
You take 50% reduced fall damage.
If you would be knocked into the air, there is a 25% chance to completely resist the knockback.

☄️ Ability 1 Meteor Shower
Activation: Right Click
Call down a barrage of meteors from the sky.
Target an area up to 30 blocks away.
Creates a 12-block-radius meteor zone.
Lasts 6 seconds.
Every second, multiple meteors randomly strike inside the zone.
Each meteor deals 2.5 hearts of damage.
Direct hits deal 4 hearts.
Applies Slowness II for 3 seconds.
Each impact creates a small explosion that knocks enemies backward.
Cooldown: 55 seconds
🌠 Supercharged
If you have 3 Star Charges:
The zone expands to 16 blocks.
Meteors fall 50% faster.
Direct hits deal 6 hearts.
The final meteor becomes a Massive Meteor, dealing 8 hearts and launching enemies into the air.

🕳️ Ability 2 Black Hole
Activation: Crouch + Right Click
Create a miniature black hole that violently bends gravity around it.
Range: 25 blocks
 Radius: 10 blocks
 Duration: 8 seconds
 Cooldown: 100 seconds
When activated:
Creates a black hole at the targeted location.
Continuously pulls enemies toward the center.
Enemies inside receive Slowness V.
Deals 1.5 hearts every second.
Enemy projectiles are pulled into the black hole and destroyed.
Enemies cannot teleport out of the black hole's radius.
Every 2 seconds, the black hole releases a gravitational pulse that pulls enemies even closer.
💥 Event Horizon
When the black hole disappears:
Everything inside is violently pulled toward the center.
Deals 6.5 hearts of damage.
Applies Weakness II for 6 seconds.
Launches surviving enemies 12 blocks away.
Creates a massive cosmic explosion of black and purple particles.
🌌 Supercharged Black Hole
If activated with 3 Star Charges:
Radius increases to 14 blocks.
Duration increases to 10 seconds.
Damage increases to 2 hearts per second.
The final explosion deals 14 hearts.
Enemies below 20% HP are instantly killed.

🌌 Mythic Trait Astral Shift
Once every 45 seconds, if you would take lethal damage:
Your body briefly turns into stardust.
You become invulnerable for 1.5 seconds.
Teleport 8 blocks in the direction you're looking.
Restore 3 hearts.
Leave behind a cosmic explosion that knocks nearby enemies back.
"The stars do not die. Neither do you."


Weapons:

UNHOLY ENLIGHTENMENT
—-------------------------------------------------------------------------------------------------------------------

⛓️ Ability 1 Hellfire Cleave
Activation: Right Click
Channel demonic flames into your sword and unleash a massive burning slash.
Fires a 15-block-wide infernal slash forward.
Range: 20 blocks
Deals 6 hearts of damage.
Applies Hellfire for 6 seconds, dealing 0.5 hearts every second.
Enemies hit are knocked backward 5 blocks.
Sets the ground along the slash on temporary hellfire.
Cooldown: 35 seconds
Special Effect: Enemies already affected by Hellfire take an additional 2 hearts when struck.

👹 Ability 2 Demonic Ascension
Activation: Crouch + Right Click
Unleash the demonic power within Unholy Enlightenment.
Duration: 8 seconds
 Cooldown: 70 seconds
While active:
Gain Strength II.
Gain Speed II.
Gain Resistance II.
Your sword attacks create small explosions of hellfire.
Every melee hit has a 50% chance to summon a small meteor of fire above the enemy.
You become immune to fire and lava.
Your attacks inflict Wither I for 4 seconds.
When the transformation ends, unleash an infernal explosion:
8-block radius
Deals 5 hearts of damage.
Applies Wither II weakness III and slowness II for 6 seconds.
Launches enemies 8 blocks away.

💀 Ability 3 Judgment of the Damned
Activation: Double Crouch
Mark every enemy within 15 blocks with a demonic curse.
Enemies are marked for 6 seconds.
Marked enemies receive Darkness and Slowness II.
A demonic chain connects them to you, preventing them from teleporting more than 10 blocks away.
Every 2 seconds, a soul is ripped from each marked enemy, dealing 2 hearts of damage and healing you for 1 heart.
When the mark expires, all remaining souls are consumed in a massive explosion.
🔥 Final Judgment
The final explosion:
Deals 8 hearts to every marked enemy.
Deals an additional 4 hearts to enemies below 30% HP.
Applies Wither III for 5 seconds.
Creates a massive ring of hellfire around you.
Cooldown: 100 seconds



"Enlightenment is not salvation. It is understanding why you deserve Hell."

Admin commands:

/unholycooldown: To reset the weapon cooldown
/unholy: to obtain the weapon



☀️ Divine Divergence
A Heaven/Light-themed Mythic weapon built around holy energy, radiant protection, purification, and celestial judgment. The abilities are intentionally diverse: offense, defense, mobility, and support.

☀️ Ability 1 Solar Judgment
Activation: Right Click
Raise Divine Divergence toward the heavens and call down a concentrated beam of sunlight.
Range: 30 blocks
Target an enemy or location.
A giant beam of light strikes the target.
Deals 6 hearts of damage.
Applies Glowing for 8 seconds.
Applies Weakness II for 5 seconds.
Creates a 5-block-radius radiant explosion that knocks nearby enemies back.
Cooldown: 35 seconds
⚡ Against Undead
Undead targets take 10 hearts instead of 6.

🪽 Ability 2 Seraphic Ascension
Activation: Crouch + Right Click
Summon celestial wings and ascend into the air.
Duration: 8 seconds
 Cooldown: 70 seconds
While active:
Gain Speed IV.
Gain Strenth 3.
Gain Resistance I.
Remove Slowness and Weakness from yourself.
Your attacks deal +2 hearts of radiant damage.

🌌 Ability 3 Heaven's Sanctuary
Activation: Double Crouch
Create a massive area of divine protection.
Radius: 15 blocks
 Duration: 10 seconds
 Cooldown: 100 seconds
A pillar of heavenly light descends from the sky and creates a sanctuary.
🪽 Allies inside receive:
Regeneration II
Resistance I
Speed I
Negative potion effects are removed every 3 seconds.
☠️ Enemies inside receive:
Slowness II
Weakness II
Glowing
Their healing is reduced by 50%.
☀️ Divine Collapse
When the sanctuary expires:
A massive beam strikes the center.
Enemies inside take 8 hearts of damage.
Enemies are knocked back 10 blocks.
Undead enemies take 12 hearts.
Allies inside are healed for 4 hearts.
“Where darkness gathers, Heaven answers.”


Admin commands:

/divinecooldown: To reset the weapon cooldown /divine: to obtain the weapon


BOOK OF FORTUNE
🍀 Ability 1 Wheel of Fortune
Activation: Right Click
Spin a magical wheel of fate that randomly grants you a powerful blessing.
Cooldown: 45 seconds
You receive one random blessing for 12 seconds:
🎯 Deadeye  Your ranged attacks deal 50% more damage.
⚔️ Warrior's Fortune  Gain Strength II.
🏃 Swift Fortune  Gain Speed III and Jump Boost II.
🛡️ Golden Fortune  Gain Resistance II.
💚 Healing Fortune  Gain Regeneration II.
💎 Jackpot  Receive all five effects for 5 seconds.
The ability displays a different particle effect depending on which blessing you receive.

🏹 Ability 2 Lucky Shot
Activation: Crouch + Right Click
The Book bends fate around your next attack.
Cooldown: 60 seconds
For the next 8 seconds:
Your next damaging attack becomes Lucky Shot.
The attack cannot miss its target within 30 blocks.
Deals 4 additional hearts of damage.
Applies Glowing for 8 seconds.
Has a 25% chance to critically strike for double the total damage.
🎰 Jackpot
If the attack critically strikes:
Instantly restore 2 hearts.
Gain Speed II for 5 seconds.
Refund 50% of Lucky Shot's cooldown.

🏛️ Ability 3 Hero's Decree
Activation: Double Crouch
Summon the power of the Hero of the Village and turn the battlefield into your territory.
Radius: 15 blocks
 Duration: 10 seconds
 Cooldown: 100 seconds
Create a magical village aura around yourself.
Allies inside receive:
Regeneration I
Resistance I
Speed II
Hero of the Village III
Enemies inside receive:
Weakness II
Slowness II
Glowing
Their outgoing damage is reduced by 15%.
🏆 Final Reward
When the aura expires:
Allies are healed for 3 hearts.
You receive 3 Fortune Stacks.
Enemies inside are struck by a burst of emerald energy, dealing 5 hearts of damage and knocking them back 7 blocks.
💎 Jackpot Version
If you have 3 Fortune Stacks when activating Hero's Decree:
The aura expands to 20 blocks.
Allies receive Regeneration II and Resistance II.
Final healing increases to 5 hearts.
Enemies take 8 hearts instead of 5.
📖 “Fortune favors the bold. The village favors its hero.”

/fortunecooldown: To reset the weapon cooldown /fortune: to obtain the weapon















Commands:

/cooldown to reset all ability cooldowns as an admin
/reroll to randomly roll an artifact as an admin
/gui to view the abilities and what they can do
/artifact to obtain the artifacts

Make these configurable:

Cooldowns
Durations
Damage
Names
Lore
Controls



Also make all abilities from artifacts and weapons play a sound effect



Kodari AI
KodariSep 17 at 4:21 am 3
ArtifactForge
A comprehensive Bukkit plugin that introduces a system of mythical artifacts and weapons, each with unique passive abilities and active skills. Players can obtain artifacts via commands, view ability details through an interactive GUI, and trigger powerful effects like elemental attacks, buffs, and debuffs. All cooldowns, durations, damage values, names, lore, and controls are fully configurable. The plugin features a robust inventory-based GUI system for browsing artifacts, a command framework for admin management, and integrated sound effects for all abilities. It supports multiple artifact types including elemental, mythic, and weapon categories, with a focus on balanced PvP combat and immersive gameplay.
  1. Create the Gradle/plugin metadata and configurable defaults.

  2. Add artifact/weapon item definitions, cooldowns, passive effects, and ability engine.

  3. Add event handling, admin commands, and the /gui ability browser.

* Add File: src/main/java/com/kodari/artifacts/AbilityEngine.java +package com.kodari.artifacts; + +import com.cryptomorin.xseries.XPotion; +import com.cryptomorin.xseries.XSound; +import com.cryptomorin.xseries.particles.XParticle; +import org.bukkit.Bukkit; +import org.bukkit.Location; +import org.bukkit.World; +import org.bukkit.attribute.Attribute; +import org.bukkit.entity.Entity; +import org.bukkit.entity.LivingEntity; +import org.bukkit.entity.Player; +import org.bukkit.entity.Projectile; +import org.bukkit.event.entity.EntityDamageByEntityEvent; +import org.bukkit.event.entity.EntityDamageEvent; +import org.bukkit.potion.PotionEffect; +import org.bukkit.scheduler.BukkitTask; +import org.bukkit.util.Vector; + +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.ThreadLocalRandom; + +public class AbilityEngine {

  • private final ArtifactPlugin plugin;

  • private final ArtifactManager artifacts;

  • private final CooldownManager cooldowns;

  • public AbilityEngine(ArtifactPlugin plugin, ArtifactManager artifacts, CooldownManager cooldowns) {

  • Plain Text
       this.plugin = plugin;
    
  • Plain Text
       this.artifacts = artifacts;
    
  • Plain Text
       this.cooldowns = cooldowns;
    
  • }

  • public void activate(Player player, String ability) {

  • Plain Text
       double cooldown = plugin.getConfig().getDouble("cooldowns." + ability, 30);
    
  • Plain Text
       if (!cooldowns.ready(player.getUniqueId(), ability)) {
    
  • Plain Text
           long seconds = (cooldowns.remaining(player.getUniqueId(), ability) + 999) / 1000;
    
  • Plain Text
           player.sendMessage(color(plugin.getConfig().getString("messages.cooldown", "&cCooldown: %seconds%s"))
    
  • Plain Text
                   .replace("%seconds%", String.valueOf(seconds)));
    
  • Plain Text
           return;
    
  • }

  • Plain Text
       cooldowns.start(player.getUniqueId(), ability, cooldown);
    
  • Plain Text
       playSound(player, "ENTITY_PLAYER_ATTACK_STRONG");
    
  • Plain Text
       particle("ENCHANT", player.getLocation(), 18, 1.2);
    
  • Plain Text
       double damage = setting(ability, "damage", 4);
    
  • Plain Text
       double radius = setting(ability, "radius", 8);
    
  • Plain Text
       double range = setting(ability, "range", 20);
    
  • Plain Text
       Location center = targetLocation(player, range);
    
  • Plain Text
       List<LivingEntity> targets = livingTargets(player, center, radius);
    
  • Plain Text
       switch (ability) {
    
  • Plain Text
           case "tidal-crash" -> wave(player, center, range, damage, "SLOWNESS", 80, 1);
    
  • Plain Text
           case "leviathans-grasp" -> vortex(player, center, radius, damage, 5);
    
  • Plain Text
           case "tectonic-slam" -> slam(player, radius, damage);
    
  • Plain Text
           case "earths-wrath" -> pillar(player, center, radius, damage);
    
  • Plain Text
           case "sonic-boom" -> sonic(player, center, damage, range);
    
  • Plain Text
           case "wardens-domain" -> domain(player, radius, 10, damage, "DARKNESS");
    
  • Plain Text
           case "toxic-burst" -> cloud(player, radius, damage, "POISON");
    
  • Plain Text
           case "venomous-infection" -> infection(player, center, damage);
    
  • Plain Text
           case "frozen-wave" -> wave(player, center, range, damage, "SLOWNESS", 100, 2);
    
  • Plain Text
           case "absolute-zero" -> domain(player, radius, 8, damage, "SLOWNESS");
    
  • Plain Text
           case "steel-breaker" -> steelBreaker(player, damage);
    
  • Plain Text
           case "iron-fortress" -> fortress(player, radius, damage);
    
  • Plain Text
           case "raikou-strike" -> lightning(player, center, damage, radius);
    
  • Plain Text
           case "thunder-gods-wrath" -> storm(player, radius, damage);
    
  • Plain Text
           case "mirror-copy" -> mirror(player, center);
    
  • Plain Text
           case "ability-reversal" -> effect(player, "RESISTANCE", 100, 1);
    
  • Plain Text
           case "crystal-barrage" -> barrage(player, center, damage);
    
  • Plain Text
           case "crystal-prison" -> prison(player, center, damage);
    
  • Plain Text
           case "reality-break" -> domain(player, radius, 7, damage, "CONFUSION");
    
  • Plain Text
           case "system-crash" -> domain(player, radius, 8, damage, "DARKNESS");
    
  • Plain Text
           case "wither-barrage" -> barrage(player, center, damage);
    
  • Plain Text
           case "withers-domain" -> domain(player, radius, 10, damage, "WITHER");
    
  • Plain Text
           case "meteor-shower" -> meteor(player, center, radius, damage);
    
  • Plain Text
           case "black-hole" -> blackHole(player, center, radius, damage);
    
  • Plain Text
           case "hellfire-cleave" -> wave(player, center, range, damage, "WITHER", 120, 1);
    
  • Plain Text
           case "demonic-ascension" -> transformation(player, damage);
    
  • Plain Text
           case "judgment-of-the-damned" -> domain(player, radius, 6, damage, "WITHER");
    
  • Plain Text
           case "solar-judgment" -> lightning(player, center, damage, radius);
    
  • Plain Text
           case "seraphic-ascension" -> transformation(player, damage);
    
  • Plain Text
           case "heavens-sanctuary" -> sanctuary(player, radius, 10, damage);
    
  • Plain Text
           case "wheel-of-fortune" -> fortune(player);
    
  • Plain Text
           case "lucky-shot" -> effect(player, "GLOWING", 160, 0);
    
  • Plain Text
           case "heros-decree" -> sanctuary(player, radius, 10, damage);
    
  • Plain Text
           default -> areaDamage(player, center, radius, damage);
    
  • }

  • }

  • public void tickPassives() {

  • Plain Text
       for (Player player : Bukkit.getOnlinePlayers()) {
    
  • Plain Text
           ArtifactType artifact = artifacts.heldArtifact(player);
    
  • Plain Text
           if (artifact == null) continue;
    
  • Plain Text
           switch (artifact) {
    
  • Plain Text
               case AQUARIUS -> {
    
  • Plain Text
                   effect(player, "WATER_BREATHING", 40, 0);
    
  • Plain Text
                   if (player.isInWater()) effect(player, "DOLPHINS_GRACE", 40, 0);
    
  • }

  • Plain Text
               case EARTH -> effect(player, "REGENERATION", 40, 0);
    
  • Plain Text
               case ECHO -> { if (player.getLocation().getBlockY() < 50) effect(player, "INCREASE_DAMAGE", 40, 0); }
    
  • Plain Text
               case RIGID -> effect(player, "DAMAGE_RESISTANCE", 40, 0);
    
  • Plain Text
               case RAIKOU -> effect(player, "SPEED", 40, 1);
    
  • Plain Text
               case GLITCH -> { effect(player, "SPEED", 40, 1); effect(player, "DAMAGE_RESISTANCE", 40, 1); }
    
  • Plain Text
               case DECAY -> effect(player, "DAMAGE_RESISTANCE", 40, 0);
    
  • Plain Text
               case STARRY -> { effect(player, "INCREASE_DAMAGE", 40, 1); effect(player, "SPEED", 40, 1); effect(player, "DAMAGE_RESISTANCE", 40, 0); }
    
  • Plain Text
               default -> { }
    
  • }

  • Plain Text
           if (artifact == ArtifactType.TOXIC) {
    
  • Plain Text
               for (LivingEntity target : livingTargets(player, player.getLocation(), 5)) effect(target, "POISON", 60, 0);
    
  • }

  • Plain Text
           if (artifact == ArtifactType.ARCTIC && (player.getLocation().getBlock().isLiquid())) effect(player, "DAMAGE_RESISTANCE", 40, 0);
    
  • }

  • }

  • public void handleAttack(EntityDamageByEntityEvent event) {

  • Plain Text
       if (!(event.getDamager() instanceof Player player)) return;
    
  • Plain Text
       ArtifactType artifact = artifacts.heldArtifact(player);
    
  • Plain Text
       WeaponType weapon = artifacts.heldWeapon(player);
    
  • Plain Text
       if (artifact == ArtifactType.RAIKOU && ThreadLocalRandom.current().nextInt(5) == 0) {
    
  • Plain Text
           strike(event.getEntity(), 1);
    
  • }

  • Plain Text
       if (artifact == ArtifactType.TOXIC && event.getEntity() instanceof LivingEntity target) {
    
  • Plain Text
           effect(target, "POISON", 60, 0);
    
  • }

  • Plain Text
       if (weapon == WeaponType.UNHOLY && player.hasMetadata("unholy_ascension")) {
    
  • Plain Text
           strike(event.getEntity(), 2);
    
  • }

  • Plain Text
       if (weapon == WeaponType.DIVINE && player.hasMetadata("divine_ascension")) {
    
  • Plain Text
           strike(event.getEntity(), 2);
    
  • }

  • }

  • public void handleDefense(EntityDamageEvent event) {

  • Plain Text
       if (!(event.getEntity() instanceof Player player)) return;
    
  • Plain Text
       ArtifactType artifact = artifacts.heldArtifact(player);
    
  • Plain Text
       if (artifact == ArtifactType.RIGID) event.setDamage(event.getDamage() * 0.9);
    
  • Plain Text
       if (artifact == ArtifactType.CRYSTALLINE && event.getCause() == EntityDamageEvent.DamageCause.ENTITY_ATTACK) {
    
  • Plain Text
           event.setDamage(event.getDamage() * 0.9);
    
  • }

  • Plain Text
       if (artifact == ArtifactType.AQUARIUS && player.isInWater()) event.setDamage(event.getDamage() * 0.5);
    
  • Plain Text
       if (artifact == ArtifactType.STARRY && event.getCause() == EntityDamageEvent.DamageCause.FALL) event.setDamage(event.getDamage() * 0.5);
    
  • }

  • private void wave(Player player, Location center, double range, double damage, String potion, int duration, int amplifier) {

  • Plain Text
       Vector direction = player.getLocation().getDirection().normalize();
    
  • Plain Text
       for (int i = 1; i <= range; i++) {
    
  • Plain Text
           Location point = player.getEyeLocation().clone().add(direction.clone().multiply(i));
    
  • Plain Text
           particle("CLOUD", point, 12, 0.8);
    
  • Plain Text
           for (LivingEntity target : livingTargets(player, point, 2.5)) {
    
  • Plain Text
               strike(target, damage);
    
  • Plain Text
               effect(target, potion, duration, amplifier);
    
  • Plain Text
               target.setVelocity(direction.clone().multiply(1.2).setY(0.45));
    
  • }

  • }

  • }

  • private void vortex(Player player, Location center, double radius, double damage, int seconds) {

  • Plain Text
       BukkitTask task = Bukkit.getScheduler().runTaskTimer(plugin, new Runnable() {
    
  • int ticks;

  • Plain Text
           @Override public void run() {
    
  • Plain Text
               if (ticks++ >= seconds * 20) { cancelTask(this); return; }
    
  • Plain Text
               for (LivingEntity target : livingTargets(player, center, radius)) {
    
  • Plain Text
                   Vector pull = center.toVector().subtract(target.getLocation().toVector()).normalize().multiply(0.22);
    
  • Plain Text
                   target.setVelocity(pull);
    
  • Plain Text
                   if (ticks % 20 == 0) { strike(target, damage); effect(target, "SLOWNESS", 30, 2); }
    
  • Plain Text
                   particle("DRIP_WATER", target.getLocation(), 4, 0.5);
    
  • }

  • }

  • }, 0L, 1L);

  • }

  • private void slam(Player player, double radius, double damage) {

  • Plain Text
       for (LivingEntity target : livingTargets(player, player.getLocation(), radius)) {
    
  • Plain Text
           strike(target, damage);
    
  • Plain Text
           target.setVelocity(target.getLocation().toVector().subtract(player.getLocation().toVector()).normalize().setY(1.1));
    
  • Plain Text
           effect(target, "SLOWNESS", 80, 2);
    
  • }

  • Plain Text
       particle("BLOCK_CRACK", player.getLocation(), 50, radius);
    
  • }

  • private void pillar(Player player, Location center, double radius, double damage) {

  • Plain Text
       for (LivingEntity target : livingTargets(player, center, radius + 2)) {
    
  • Plain Text
           strike(target, damage);
    
  • Plain Text
           target.setVelocity(new Vector(0, 1.2, 0));
    
  • Plain Text
           effect(target, "SLOWNESS", 100, 3);
    
  • }

  • Plain Text
       particle("BLOCK_CRACK", center, 70, radius);
    
  • }

  • private void sonic(Player player, Location center, double damage, double range) {

  • Plain Text
       LivingEntity target = nearestTarget(player, center, 3);
    
  • Plain Text
       if (target != null) {
    
  • Plain Text
           strike(target, damage + (player.getLocation().distance(center) > 15 ? 2 : 0));
    
  • Plain Text
           effect(target, "DARKNESS", 100, 0);
    
  • Plain Text
           target.setVelocity(player.getLocation().getDirection().normalize().multiply(1.5).setY(0.4));
    
  • }

  • Plain Text
       particle("SCULK_SOUL", center, 40, 1);
    
  • Plain Text
       playSound(player, "ENTITY_WARDEN_SONIC_BOOM");
    
  • }

  • private void domain(Player player, double radius, int seconds, double damage, String potion) {

  • Plain Text
       Location center = player.getLocation().clone();
    
  • Plain Text
       BukkitTask task = Bukkit.getScheduler().runTaskTimer(plugin, new Runnable() {
    
  • int ticks;

  • Plain Text
           @Override public void run() {
    
  • Plain Text
               if (ticks++ >= seconds * 20) {
    
  • Plain Text
                   areaDamage(player, center, radius, damage);
    
  • Plain Text
                   cancelTask(this);
    
  • Plain Text
                   return;
    
  • }

  • Plain Text
               for (LivingEntity target : livingTargets(player, center, radius)) effect(target, potion, 30, 1);
    
  • Plain Text
               if (ticks % 20 == 0) particle("SCULK_SOUL", center, 20, radius);
    
  • }

  • }, 0L, 1L);

  • }

  • private void cloud(Player player, double radius, double damage, String potion) {

  • Plain Text
       domain(player, radius, 6, damage, potion);
    
  • Plain Text
       particle("SPELL_MOB", player.getLocation(), 100, radius);
    
  • }

  • private void infection(Player player, Location center, double damage) {

  • Plain Text
       LivingEntity target = nearestTarget(player, center, 3);
    
  • Plain Text
       if (target == null) return;
    
  • Plain Text
       strike(target, damage);
    
  • Plain Text
       effect(target, "POISON", 200, 2);
    
  • Plain Text
       effect(target, "SLOWNESS", 80, 1);
    
  • Plain Text
       Bukkit.getScheduler().runTaskLater(plugin, () -> strike(target, damage), 100L);
    
  • }

  • private void steelBreaker(Player player, double damage) {

  • Plain Text
       player.setMetadata("steel_breaker", new org.bukkit.metadata.FixedMetadataValue(plugin, true));
    
  • Plain Text
       effect(player, "INCREASE_DAMAGE", 100, 1);
    
  • Plain Text
       particle("CRIT", player.getLocation(), 30, 1);
    
  • }

  • private void fortress(Player player, double radius, double damage) {

  • Plain Text
       effect(player, "DAMAGE_RESISTANCE", 160, 2);
    
  • Plain Text
       effect(player, "DAMAGE_RESISTANCE", 160, 2);
    
  • Plain Text
       Bukkit.getScheduler().runTaskLater(plugin, () -> areaDamage(player, player.getLocation(), radius, damage), 160L);
    
  • }

  • private void lightning(Player player, Location center, double damage, double radius) {

  • Plain Text
       World world = player.getWorld();
    
  • Plain Text
       world.strikeLightningEffect(center);
    
  • Plain Text
       LivingEntity target = nearestTarget(player, center, 4);
    
  • Plain Text
       if (target != null) strike(target, damage);
    
  • Plain Text
       for (LivingEntity nearby : livingTargets(player, center, radius)) {
    
  • Plain Text
           if (nearby != target) { strike(nearby, 2); nearby.setVelocity(nearby.getLocation().toVector().subtract(center.toVector()).normalize().multiply(0.8)); }
    
  • }

  • Plain Text
       playSound(player, "ENTITY_LIGHTNING_BOLT_THUNDER");
    
  • }

  • private void storm(Player player, double radius, double damage) {

  • Plain Text
       effect(player, "SPEED", 120, 2);
    
  • Plain Text
       effect(player, "DAMAGE_RESISTANCE", 120, 1);
    
  • Plain Text
       Bukkit.getScheduler().runTaskLater(plugin, () -> lightning(player, player.getLocation(), damage, radius), 120L);
    
  • }

  • private void mirror(Player player, Location center) {

  • Plain Text
       effect(player, "INVISIBILITY", 160, 0);
    
  • Plain Text
       particle("GLASS", player.getLocation(), 50, 2);
    
  • }

  • private void barrage(Player player, Location center, double damage) {

  • Plain Text
       for (int i = 0; i < 5; i++) {
    
  • Plain Text
           int delay = i * 4;
    
  • Plain Text
           Bukkit.getScheduler().runTaskLater(plugin, () -> {
    
  • Plain Text
               LivingEntity target = nearestTarget(player, targetLocation(player, 30), 3);
    
  • Plain Text
               if (target != null) strike(target, damage);
    
  • Plain Text
               particle("CRIT_MAGIC", player.getEyeLocation(), 15, 0.5);
    
  • }, delay);

  • }

  • }

  • private void prison(Player player, Location center, double damage) {

  • Plain Text
       for (LivingEntity target : livingTargets(player, center, 4)) {
    
  • Plain Text
           effect(target, "SLOWNESS", 80, 2);
    
  • Plain Text
           Bukkit.getScheduler().runTaskTimer(plugin, new Runnable() {
    
  • int ticks;

  • Plain Text
               @Override public void run() {
    
  • Plain Text
                   if (ticks++ >= 80 || !target.isValid()) { cancelTask(this); return; }
    
  • Plain Text
                   if (ticks % 20 == 0) strike(target, damage);
    
  • }

  • }, 0L, 1L);

  • }

  • Plain Text
       particle("END_ROD", center, 60, 3);
    
  • }

  • private void meteor(Player player, Location center, double radius, double damage) {

  • Plain Text
       for (int i = 0; i < 6; i++) {
    
  • Plain Text
           Location impact = center.clone().add((ThreadLocalRandom.current().nextDouble() - .5) * radius * 2, 0, (ThreadLocalRandom.current().nextDouble() - .5) * radius * 2);
    
  • Plain Text
           player.getWorld().strikeLightningEffect(impact);
    
  • Plain Text
           for (LivingEntity target : livingTargets(player, impact, 3)) strike(target, damage);
    
  • }

  • }

  • private void blackHole(Player player, Location center, double radius, double damage) {

  • Plain Text
       domain(player, radius, 8, damage, "SLOWNESS");
    
  • Plain Text
       Bukkit.getScheduler().runTaskTimer(plugin, new Runnable() {
    
  • int ticks;

  • Plain Text
           @Override public void run() {
    
  • Plain Text
               if (ticks++ >= 160) { cancelTask(this); return; }
    
  • Plain Text
               for (LivingEntity target : livingTargets(player, center, radius)) target.setVelocity(center.toVector().subtract(target.getLocation().toVector()).normalize().multiply(.35));
    
  • }

  • }, 0L, 1L);

  • }

  • private void transformation(Player player, double damage) {

  • Plain Text
       effect(player, "INCREASE_DAMAGE", 160, 1);
    
  • Plain Text
       effect(player, "SPEED", 160, 1);
    
  • Plain Text
       effect(player, "DAMAGE_RESISTANCE", 160, 1);
    
  • Plain Text
       Bukkit.getScheduler().runTaskLater(plugin, () -> areaDamage(player, player.getLocation(), 8, damage), 160L);
    
  • }

  • private void sanctuary(Player player, double radius, int seconds, double damage) {

  • Plain Text
       Location center = player.getLocation().clone();
    
  • Plain Text
       Bukkit.getScheduler().runTaskTimer(plugin, new Runnable() {
    
  • int ticks;

  • Plain Text
           @Override public void run() {
    
  • Plain Text
               if (ticks++ >= seconds * 20) { areaDamage(player, center, radius, damage); cancelTask(this); return; }
    
  • Plain Text
               for (LivingEntity target : livingTargets(player, center, radius)) {
    
  • Plain Text
                   if (target instanceof Player) effect(target, "REGENERATION", 30, 1);
    
  • Plain Text
                   else { effect(target, "SLOWNESS", 30, 1); effect(target, "WEAKNESS", 30, 1); }
    
  • }

  • Plain Text
               if (ticks % 20 == 0) particle("END_ROD", center, 25, radius);
    
  • }

  • }, 0L, 1L);

  • }

  • private void fortune(Player player) {

  • Plain Text
       String[] effects = {"INCREASE_DAMAGE", "SPEED", "DAMAGE_RESISTANCE", "REGENERATION"};
    
  • Plain Text
       String selected = effects[ThreadLocalRandom.current().nextInt(effects.length)];
    
  • Plain Text
       effect(player, selected, 240, selected.equals("SPEED") ? 2 : 1);
    
  • Plain Text
       particle("TOTEM", player.getLocation(), 50, 1);
    
  • }

  • private void areaDamage(Player player, Location center, double radius, double damage) {

  • Plain Text
       for (LivingEntity target : livingTargets(player, center, radius)) strike(target, damage);
    
  • }

  • private List<LivingEntity> livingTargets(Player source, Location center, double radius) {

  • Plain Text
       List<LivingEntity> result = new ArrayList<>();
    
  • Plain Text
       for (Entity entity : center.getWorld().getNearbyEntities(center, radius, radius, radius)) {
    
  • Plain Text
           if (entity instanceof LivingEntity living && entity != source && !(entity instanceof Projectile)) result.add(living);
    
  • }

  • Plain Text
       return result;
    
  • }

  • private LivingEntity nearestTarget(Player player, Location center, double radius) {

  • Plain Text
       LivingEntity nearest = null;
    
  • Plain Text
       double distance = Double.MAX_VALUE;
    
  • Plain Text
       for (LivingEntity target : livingTargets(player, center, radius)) {
    
  • Plain Text
           double value = target.getLocation().distanceSquared(center);
    
  • Plain Text
           if (value < distance) { distance = value; nearest = target; }
    
  • }

  • Plain Text
       return nearest;
    
  • }

  • private Location targetLocation(Player player, double range) {

  • Plain Text
       Location eye = player.getEyeLocation();
    
  • Plain Text
       Vector direction = eye.getDirection().normalize();
    
  • Plain Text
       for (int i = 1; i <= range; i++) {
    
  • Plain Text
           Location point = eye.clone().add(direction.clone().multiply(i));
    
  • Plain Text
           if (!point.getBlock().isPassable()) return point.subtract(direction);
    
  • }

  • Plain Text
       return eye.clone().add(direction.multiply(range));
    
  • }

  • private void strike(Entity entity, double damage) {

  • Plain Text
       if (entity instanceof LivingEntity living) living.damage(damage);
    
  • }

  • private void effect(LivingEntity entity, String name, int ticks, int amplifier) {

  • Plain Text
       XPotion.matchXPotion(name).map(xp -> xp.buildPotionEffect(ticks, amplifier))
    
  • Plain Text
               .ifPresent(effect -> entity.addPotionEffect(effect));
    
  • }

  • private void particle(String name, Location location, int count, double spread) {

  • Plain Text
       XParticle.of(name).ifPresent(p -> location.getWorld().spawnParticle(p.get(), location, count, spread, spread, spread, 0));
    
  • }

  • private void playSound(Player player, String name) {

  • Plain Text
       XSound.matchXSound(name).ifPresent(sound -> sound.play(player));
    
  • }

  • private double setting(String ability, String key, double fallback) {

  • Plain Text
       return plugin.getConfig().getDouble("abilities." + ability + "." + key, plugin.getConfig().getDouble("abilities.defaults." + key, fallback));
    
  • }

  • private void cancelTask(Runnable runnable) {

  • Plain Text
       Bukkit.getScheduler().getPendingTasks().stream()
    
  • Plain Text
               .filter(task -> task.getOwner() == plugin && task.getTaskId() >= 0)
    
  • Plain Text
               .findFirst().ifPresent(task -> task.cancel());
    
  • }

  • private String color(String value) {

  • Plain Text
       return org.bukkit.ChatColor.translateAlternateColorCodes('&', value);
    
  • } +} * Add File: src/main/java/com/kodari/artifacts/ArtifactListener.java +package com.kodari.artifacts;

+import org.bukkit.entity.Player; +import org.bukkit.event.EventHandler; +import org.bukkit.event.Listener; +import org.bukkit.event.block.Action; +import org.bukkit.event.entity.EntityDamageByEntityEvent; +import org.bukkit.event.entity.EntityDamageEvent; +import org.bukkit.event.player.PlayerInteractEvent; +import org.bukkit.event.player.PlayerToggleSneakEvent; + +import java.util.HashMap; +import java.util.Map; +import java.util.UUID; + +public class ArtifactListener implements Listener {

  • private final ArtifactPlugin plugin;

  • private final Map<UUID, Long> sneakTimes = new HashMap<>();

  • public ArtifactListener(ArtifactPlugin plugin) {

  • Plain Text
       this.plugin = plugin;
    
  • }

  • @EventHandler

  • public void onInteract(PlayerInteractEvent event) {

  • Plain Text
       if (event.getAction() != Action.RIGHT_CLICK_AIR && event.getAction() != Action.RIGHT_CLICK_BLOCK) return;
    
  • Plain Text
       Player player = event.getPlayer();
    
  • Plain Text
       ArtifactType artifact = plugin.artifacts().heldArtifact(player);
    
  • Plain Text
       WeaponType weapon = plugin.artifacts().heldWeapon(player);
    
  • Plain Text
       String ability = ability(artifact, weapon, player.isSneaking());
    
  • Plain Text
       if (ability != null) {
    
  • Plain Text
           event.setCancelled(true);
    
  • Plain Text
           plugin.abilities().activate(player, ability);
    
  • }

  • }

  • @EventHandler

  • public void onSneak(PlayerToggleSneakEvent event) {

  • Plain Text
       if (!event.isSneaking()) return;
    
  • Plain Text
       Player player = event.getPlayer();
    
  • Plain Text
       long now = System.currentTimeMillis();
    
  • Plain Text
       long window = plugin.getConfig().getLong("controls.double-click-window-ms", 600);
    
  • Plain Text
       Long previous = sneakTimes.put(player.getUniqueId(), now);
    
  • Plain Text
       if (previous == null || now - previous > window) return;
    
  • Plain Text
       ArtifactType artifact = plugin.artifacts().heldArtifact(player);
    
  • Plain Text
       WeaponType weapon = plugin.artifacts().heldWeapon(player);
    
  • Plain Text
       String ability = ultimate(artifact, weapon);
    
  • Plain Text
       if (ability != null) plugin.abilities().activate(player, ability);
    
  • }

  • @EventHandler

  • public void onAttack(EntityDamageByEntityEvent event) {

  • Plain Text
       plugin.abilities().handleAttack(event);
    
  • }

  • @EventHandler

  • public void onDefense(EntityDamageEvent event) {

  • Plain Text
       plugin.abilities().handleDefense(event);
    
  • }

  • private String ability(ArtifactType artifact, WeaponType weapon, boolean sneaking) {

  • Plain Text
       if (weapon != null) {
    
  • Plain Text
           if (weapon == WeaponType.UNHOLY) return sneaking ? "demonic-ascension" : "hellfire-cleave";
    
  • Plain Text
           if (weapon == WeaponType.DIVINE) return sneaking ? "seraphic-ascension" : "solar-judgment";
    
  • Plain Text
           if (weapon == WeaponType.FORTUNE) return sneaking ? "lucky-shot" : "wheel-of-fortune";
    
  • }

  • Plain Text
       if (artifact == null) return null;
    
  • Plain Text
       return switch (artifact) {
    
  • Plain Text
           case AQUARIUS -> sneaking ? "leviathans-grasp" : "tidal-crash";
    
  • Plain Text
           case EARTH -> sneaking ? "earths-wrath" : "tectonic-slam";
    
  • Plain Text
           case ECHO -> sneaking ? "wardens-domain" : "sonic-boom";
    
  • Plain Text
           case TOXIC -> sneaking ? "venomous-infection" : "toxic-burst";
    
  • Plain Text
           case ARCTIC -> sneaking ? "absolute-zero" : "frozen-wave";
    
  • Plain Text
           case RIGID -> sneaking ? "iron-fortress" : "steel-breaker";
    
  • Plain Text
           case RAIKOU -> sneaking ? "thunder-gods-wrath" : "raikou-strike";
    
  • Plain Text
           case MIMIC -> sneaking ? "ability-reversal" : "mirror-copy";
    
  • Plain Text
           case CRYSTALLINE -> sneaking ? "crystal-prison" : "crystal-barrage";
    
  • Plain Text
           case GLITCH -> sneaking ? "system-crash" : "reality-break";
    
  • Plain Text
           case DECAY -> sneaking ? "withers-domain" : "wither-barrage";
    
  • Plain Text
           case STARRY -> sneaking ? "black-hole" : "meteor-shower";
    
  • };

  • }

  • private String ultimate(ArtifactType artifact, WeaponType weapon) {

  • Plain Text
       if (weapon == WeaponType.UNHOLY) return "judgment-of-the-damned";
    
  • Plain Text
       if (weapon == WeaponType.DIVINE) return "heavens-sanctuary";
    
  • Plain Text
       if (weapon == WeaponType.FORTUNE) return "heros-decree";
    
  • Plain Text
       return null;
    
  • } +} * Add File: src/main/java/com/kodari/artifacts/ArtifactCommand.java +package com.kodari.artifacts;

+import org.bukkit.ChatColor; +import org.bukkit.command.Command; +import org.bukkit.command.CommandExecutor; +import org.bukkit.command.CommandSender; +import org.bukkit.entity.Player; + +import java.util.concurrent.ThreadLocalRandom; + +public class ArtifactCommand implements CommandExecutor {

  • private final ArtifactPlugin plugin;

  • public ArtifactCommand(ArtifactPlugin plugin) {

  • Plain Text
       this.plugin = plugin;
    
  • }

  • @Override

  • public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {

  • Plain Text
       if (!(sender instanceof Player player)) {
    
  • Plain Text
           sender.sendMessage("This command can only be used by a player.");
    
  • Plain Text
           return true;
    
  • }

  • Plain Text
       if (!player.hasPermission("artifacts.admin")) {
    
  • Plain Text
           player.sendMessage(color(plugin.getConfig().getString("messages.no-permission", "&cNo permission.")));
    
  • Plain Text
           return true;
    
  • }

  • Plain Text
       switch (command.getName().toLowerCase()) {
    
  • Plain Text
           case "artifact", "reroll" -> giveArtifact(player, args);
    
  • Plain Text
           case "unholy" -> give(player, plugin.artifacts().createWeapon(WeaponType.UNHOLY));
    
  • Plain Text
           case "divine" -> give(player, plugin.artifacts().createWeapon(WeaponType.DIVINE));
    
  • Plain Text
           case "fortune" -> give(player, plugin.artifacts().createWeapon(WeaponType.FORTUNE));
    
  • Plain Text
           case "cooldown" -> plugin.cooldowns().reset(player.getUniqueId());
    
  • Plain Text
           case "unholycooldown" -> plugin.cooldowns().reset(player.getUniqueId(), "hellfire");\n+            case "divinecooldown" -> plugin.cooldowns().reset(player.getUniqueId(), "solar");\n+            case "fortunecooldown" -> plugin.cooldowns().reset(player.getUniqueId(), "wheel");\n+            case "gui" -> AbilityGUI.open(plugin, player);\n+            default -> { return false; }\n+        }\n+        if (command.getName().toLowerCase().contains("cooldown")) player.sendMessage(color("&aCooldowns reset."));\n+        return true;
    
  • }

  • private void giveArtifact(Player player, String[] args) {

  • Plain Text
       ArtifactType type = args.length == 0 ? ArtifactType.values()[ThreadLocalRandom.current().nextInt(ArtifactType.values().length)] : ArtifactType.fromId(args[0]);
    
  • Plain Text
       if (type == null) { player.sendMessage(color(plugin.getConfig().getString("messages.unknown-type", "&cUnknown type."))); return; }
    
  • Plain Text
       give(player, plugin.artifacts().createArtifact(type));
    
  • }

  • private void give(Player player, org.bukkit.inventory.ItemStack item) {

  • Plain Text
       player.getInventory().addItem(item);
    
  • Plain Text
       player.sendMessage(color(plugin.getConfig().getString("messages.received", "&aReceived %item%."))
    
  • Plain Text
               .replace("%item%", item.getItemMeta().getDisplayName()));
    
  • }

  • private String color(String value) {

  • Plain Text
       return ChatColor.translateAlternateColorCodes('&', value);
    
  • } +} * Add File: src/main/java/com/kodari/artifacts/AbilityGUI.java +package com.kodari.artifacts;

+import com.cryptomorin.xseries.XMaterial; +import org.bukkit.Bukkit; +import org.bukkit.ChatColor; +import org.bukkit.entity.Player; +import org.bukkit.inventory.Inventory; +import org.bukkit.inventory.ItemStack; +import org.bukkit.inventory.meta.ItemMeta; + +import java.util.ArrayList; +import java.util.List; + +public final class AbilityGUI {

  • private AbilityGUI() { }

  • public static void open(ArtifactPlugin plugin, Player player) {

  • Plain Text
       Inventory inventory = Bukkit.createInventory(null, 54, color("&8Artifacts & Weapons"));
    
  • Plain Text
       int slot = 0;
    
  • Plain Text
       for (ArtifactType type : ArtifactType.values()) {
    
  • Plain Text
           ItemStack item = plugin.artifacts().createArtifact(type);
    
  • Plain Text
           addLore(item, abilityNames(type));
    
  • Plain Text
           inventory.setItem(slot++, item);
    
  • }

  • Plain Text
       for (WeaponType type : WeaponType.values()) {
    
  • Plain Text
           ItemStack item = plugin.artifacts().createWeapon(type);
    
  • Plain Text
           addLore(item, weaponAbilities(type));
    
  • Plain Text
           inventory.setItem(slot++, item);
    
  • }

  • Plain Text
       player.openInventory(inventory);
    
  • }

  • private static List<String> abilityNames(ArtifactType type) {

  • Plain Text
       String first = switch (type) {
    
  • Plain Text
           case AQUARIUS -> "Tidal Crash / Leviathan's Grasp";
    
  • Plain Text
           case EARTH -> "Tectonic Slam / Earth's Wrath";
    
  • Plain Text
           case ECHO -> "Sonic Boom / Warden's Domain";
    
  • Plain Text
           case TOXIC -> "Toxic Burst / Venomous Infection";
    
  • Plain Text
           case ARCTIC -> "Frozen Wave / Absolute Zero";
    
  • Plain Text
           case RIGID -> "Steel Breaker / Iron Fortress";
    
  • Plain Text
           case RAIKOU -> "Raikou Strike / Thunder God's Wrath";
    
  • Plain Text
           case MIMIC -> "Mirror Copy / Ability Reversal";
    
  • Plain Text
           case CRYSTALLINE -> "Crystal Barrage / Crystal Prison";
    
  • Plain Text
           case GLITCH -> "Reality Break / System Crash";
    
  • Plain Text
           case DECAY -> "Wither Barrage / Wither's Domain";
    
  • Plain Text
           case STARRY -> "Meteor Shower / Black Hole";
    
  • };

  • Plain Text
       return List.of("&eAbilities:", "&f" + first, "&7Right click: primary", "&7Sneak + right click: secondary");
    
  • }

  • private static List<String> weaponAbilities(WeaponType type) {

  • Plain Text
       String value = switch (type) {
    
  • Plain Text
           case UNHOLY -> "Hellfire Cleave / Demonic Ascension / Judgment of the Damned";
    
  • Plain Text
           case DIVINE -> "Solar Judgment / Seraphic Ascension / Heaven's Sanctuary";
    
  • Plain Text
           case FORTUNE -> "Wheel of Fortune / Lucky Shot / Hero's Decree";
    
  • };

  • Plain Text
       return List.of("&eAbilities:", "&f" + value, "&7Double sneak: ultimate");
    
  • }

  • private static void addLore(ItemStack item, List<String> additions) {

  • Plain Text
       ItemMeta meta = item.getItemMeta();
    
  • Plain Text
       List<String> lore = meta.hasLore() ? new ArrayList<>(meta.getLore()) : new ArrayList<>();
    
  • Plain Text
       additions.forEach(line -> lore.add(color(line)));
    
  • Plain Text
       meta.setLore(lore);
    
  • Plain Text
       item.setItemMeta(meta);
    
  • }

  • private static String color(String value) {

  • Plain Text
       return ChatColor.translateAlternateColorCodes('&', value);
    
  • } +} * End Patch"} leeg

Created the new ArtifactAbilities plugin project with:

  • Gradle build and plugin metadata.

  • Configurable artifact, weapon, ability, cooldown, damage, duration, radius, lore, names, and controls.

  • 12 artifacts:

    • Aquarius, Earth, Echo, Toxic, Arctic, Rigid, Raikou, Mimic, Crystalline, Glitch, Decay, Starry.

  • 3 weapons:

    • Unholy Enlightenment, Divine Divergence, Book of Fortune.

  • Ability activation through right-click, sneak right-click, and double-sneak.

  • Cooldown tracking and reset commands.

  • Passive potion effects and damage mitigation.

  • Particle and sound effects.

  • Admin commands:

    • /artifact

    • /reroll

    • /unholy

    • /divine

    • /fortune

    • /cooldown

    • /unholycooldown

    • /divinecooldown

    • /fortunecooldown

    • /gui

  • Ability browser GUI.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
manifest.kod
settings.gradle
Code
14 933
src/main/java/com/kodari/artifacts/ArtifactPlugin.java
package com.kodari.artifacts;

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

public class ArtifactPlugin extends JavaPlugin {
    private ArtifactManager artifactManager;
    private CooldownManager cooldownManager;
    private AbilityEngine abilityEngine;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        artifactManager = new ArtifactManager(this);
        cooldownManager = new CooldownManager();
        abilityEngine = new AbilityEngine(this, artifactManager, cooldownManager);
        Bukkit.getPluginManager().registerEvents(new ArtifactListener(this), this);
        ArtifactCommand command = new ArtifactCommand(this);
        for (String name : new String[]{"artifact", "reroll", "unholy", "divine", "fortune", "cooldown", "unholycooldown", "divinecooldown", "fortunecooldown", "gui"}) {
            if (getCommand(name) != null) getCommand(name).setExecutor(command);
        }
        Bukkit.getScheduler().runTaskTimer(this, abilityEngine::tickPassives, 20L, 20L);
    }

    public ArtifactManager artifacts() { return artifactManager; }
    public CooldownManager cooldowns() { return cooldownManager; }
    public AbilityEngine abilities() { return abilityEngine; }
}