๐
pasted-code-1787232762908.txt
txt
240 lines
โถ
# Minecraft Mythical Weapons Plugin Prompt
Create a **Minecraft Mythical Weapons plugin** for **Minecraft 1.21+**, using **Java 21+** and the **Paper/Spigot/Bukkit API**. The plugin should contain exactly **3 powerful mythical weapons**: **Crimson Blade, Air Breaker Mace, and Tidebreaker**.
Make every weapon feel extremely powerful, legendary, and visually impressive, with **insane particles, sounds, animations, screen effects, beams, trails, impact effects, and custom ability effects**. All weapons must be **unbreakable** and should have clear item descriptions/lore explaining their abilities.
## 1. Crimson Blade
The **Crimson Blade** is a powerful mythical sword.
### Starting Enchantments
* Sharpness V
* Fire Aspect II
* Looting III
* Unbreakable
### Passive โ Blood of the Fallen
Every time the player gets a **kill using the Crimson Blade**, increase the sword's Sharpness level by **1**, up to a maximum of **Sharpness X**.
* Starts at Sharpness V.
* Kill 1 โ Sharpness VI
* Kill 2 โ Sharpness VII
* Kill 3 โ Sharpness VIII
* Kill 4 โ Sharpness IX
* Kill 5 โ Sharpness X
* Never increase beyond Sharpness X.
* Make the upgrade visually noticeable with particles, sounds, and a message such as **"The Crimson Blade grows stronger..."**
### Ability โ Crimson Beam
Activate by pressing the **offhand keybind**.
* Cooldown: **60 seconds**
* Shoot a massive **crimson-colored beam** in the direction the player is looking.
* The beam should travel a significant distance.
* It must **ignore armor**, meaning armor should not reduce its special ability damage.
* Deal **buffed fire-based damage** that feels significantly stronger than normal Minecraft fire damage.
* The damage should be unavoidable once a target is hit by the beam.
* The beam should pass through armor and preferably be able to hit multiple targets in its path.
Make the Crimson Beam extremely cinematic:
* Huge red/crimson particle beam
* Red lightning effects
* Explosive crimson particles
* Flame particles
* Smoke
* Red energy rings
* Impact explosions
* Screen shake if possible
* Powerful custom sound effects
* A charging effect before firing
* A large impact effect when hitting an enemy
* Crimson particles following the beam's path
### Description
Give the Crimson Blade lore describing its blood-powered passive, increasing Sharpness, and devastating Crimson Beam.
---
## 2. Air Breaker Mace
The **Air Breaker** is a mythical mace focused on aerial movement and devastating attacks.
### Starting Enchantment
* Density V
* Unbreakable
### Ability 1 โ Leap of Faith
Activate by **Shift + Right Click**.
* Cooldown: **30 seconds**
* Launch the player approximately **15 blocks into the air**.
* Give the launch a powerful upward burst.
* Add an intense wind/air explosion effect when activated.
Effects should include:
* Large cloud/wind particles
* Gust effects
* Expanding air rings
* Wind trails around the player
* Powerful launch sound
* Camera/screen shake if possible
* Air particles following the player upward
### Ability 2 โ Air Breaker
Activate by **Right Click**.
* Cooldown: **60 seconds**
* Fire a powerful **air-energy beam** in the direction the player is looking.
* Deal **5 hearts of damage**.
* The special damage must **ignore armor**.
* The beam should travel forward and hit enemies in its path.
Make the attack extremely cinematic:
* Massive white/cyan wind beam
* Tornado-like particles
* Expanding shockwaves
* Air rings
* Clouds
* Lightning-like energy
* Explosion effect on impact
* Strong knockback
* Powerful wind sound
* Particle trail following the beam
### Ability 3 โ Air Lunge
Activate with the **offhand keybind**.
* Cooldown: **30 seconds**
* Dash the player **10 blocks forward** in the exact direction they are looking.
* Work both horizontally and vertically depending on the player's view direction.
* Prevent the dash from causing unwanted fall damage.
* Create an intense wind trail during the dash.
Effects:
* Wind particles
* Cloud bursts
* Air rings
* Speed trails
* Shockwave at the starting location
* Shockwave at the ending location
* Powerful rushing-wind sound
### Description
Give the Air Breaker lore explaining **Leap of Faith, Air Breaker, and Air Lunge**.
---
## 3. Tidebreaker
The **Tidebreaker** is a mythical ocean-themed weapon.
### Starting Enchantments
* Sharpness VII
* Looting III
* Unbreakable
### Passive โ Blessing of the Ocean
While the player is **holding the Tidebreaker**, automatically give them:
* Dolphin's Grace
* Water Breathing
The effects should remain active while holding the weapon and disappear when the weapon is no longer held.
Add subtle water particles around the player while the passive is active.
### Ability 1 โ Tidal Beam
Activate using the **offhand keybind**.
* Cooldown: **60 seconds**
* Fire a powerful water/ocean beam in the direction the player is looking.
* Deal **6 hearts of damage**.
* Damage must **ignore armor**.
* The beam should travel a significant distance and be able to hit enemies in its path.
Make the Tidal Beam extremely cinematic:
* Huge blue/cyan water beam
* Water splash particles
* Bubble particles
* Ocean waves
* Spiraling water around the beam
* Large water explosion on impact
* Expanding circular wave
* Water droplets flying everywhere
* Powerful ocean/wave sound
* Blue energy rings
* Massive impact effect
### Ability 2 โ Riptide
Activate using **Right Click**.
* Cooldown: **40 seconds**
* Launch/dash the player **10 blocks in the direction they are looking**.
* The movement should feel like a powerful Minecraft Riptide effect even when not underwater.
* Allow the player to travel upward or downward depending on where they are looking.
Effects:
* Huge water trail
* Splash particles
* Bubbles
* Spinning water rings
* Wave effects
* Water explosion at the starting point
* Water explosion at the ending point
* Powerful rushing-water sound
### Description
Give the Tidebreaker lore describing its **Blessing of the Ocean passive, Tidal Beam, and Riptide** abilities.
---
## General Plugin Requirements
* Minecraft **1.21+**
* **Java 21+**
* Paper/Spigot/Bukkit compatible
* All weapons must be **unbreakable**.
* Use proper cooldown management.
* Show cooldown feedback to the player using an **action bar, boss bar, or other clean UI**.
* Prevent abilities from activating while their cooldown is active.
* Make the abilities visually distinct and extremely impressive.
* Add custom sounds where possible using Minecraft's built-in sounds.
* Add extensive particle effects without causing excessive lag.
* Make beam abilities properly detect entities in their path.
* Special beam damage must bypass normal armor protection.
* Make sure abilities do not accidentally damage the player using them.
* Give each weapon unique colored lore and a clear mythical appearance.
* Include a way to obtain the weapons, such as commands:
* `/mythicalweapons give crimson`
* `/mythicalweapons give airbreaker`
* `/mythicalweapons give tidebreaker`
* Include permissions for the commands.
* Include a `config.yml` where damage, cooldowns, ranges, particle settings, and other important values can be customized.
* Include a complete `plugin.yml`.
* Organize the code cleanly using separate classes for each weapon and ability.
* Make the plugin SMP-friendly and optimized for multiplayer servers.
* Make sure all abilities work reliably with Minecraft 1.21+.
* Include complete source code and explain where every file belongs.
Set up a Java 21 Paper-compatible Gradle plugin project.
Create the three persistent, unbreakable mythical weapons and their commands.
Implement cooldowns, beams, movement abilities, passives, effects, and event handling.
Add configurable gameplay values and plugin metadata.
Created the complete Java 21 Paper 1.21+ MythicalWeapons plugin.
/mythicalweapons give <player> <crimson|airbreaker|tidebreaker>withmythicalweapons.giveCrimson Blade: progressive Sharpness VโX kills passive and Crimson Beam
Air Breaker Mace: Leap of Faith, Air Breaker beam, and Air Lunge
Tidebreaker: ocean blessings, Tidal Beam, and Riptide
Configurable cooldowns, beam ranges, damage, and particle multiplier in
src/main/resources/config.ymlPlugin metadata in
src/main/resources/plugin.ymlGradle Java 21 project setup included in
build.gradleandsettings.gradle
package com.kodari.mythicalweapons;
import com.kodari.mythicalweapons.command.MythicalWeaponsCommand;
import com.kodari.mythicalweapons.listener.WeaponListener;
import com.kodari.mythicalweapons.service.CooldownManager;
import com.kodari.mythicalweapons.service.WeaponEffects;
import com.kodari.mythicalweapons.weapon.WeaponRegistry;
import lombok.Getter;
import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;
@Getter
public final class MythicalWeaponsPlugin extends JavaPlugin {
private CooldownManager cooldownManager;
private WeaponRegistry weaponRegistry;
private WeaponEffects weaponEffects;
@Override
public void onEnable() {
saveDefaultConfig();
this.cooldownManager = new CooldownManager();
this.weaponRegistry = new WeaponRegistry(this);
this.weaponEffects = new WeaponEffects(this);
WeaponListener listener = new WeaponListener(this);
getServer().getPluginManager().registerEvents(listener, this);
getServer().getScheduler().runTaskTimer(this, listener::refreshTidebreakerPassives, 0L, 20L);
PluginCommand command = getCommand("mythicalweapons");
if (command != null) {
MythicalWeaponsCommand executor = new MythicalWeaponsCommand(this);
command.setExecutor(executor);
command.setTabCompleter(executor);
}
}
}