Umang
๐Ÿ“Ž 1 file 14,934 chars
๐Ÿ“„
pasted-code-1792826056199.txt
txt 317 lines
โ–ถ
Project Prompt: MythicWeapons Ultimate โ€” Minecraft Java 1.21 Plugin

Build a complete, production-quality Minecraft Java plugin called MythicWeapons Ultimate for Paper 1.21.x, using Java 21, Maven, and the Paper API.

The plugin must contain exactly six unique custom weapons: Crownbreaker, Soulreaper, Teleporter, Kelpster, Beamline, and Void Bow.

Do not just provide a design or partial example. Implement the complete project, including all Java source files, configuration files, resource-pack assets, build instructions, and testing instructions. Ensure that the project compiles successfully.

1. Technical requirements
Minecraft Java Edition, Paper 1.21.x.
Java 21 and Maven.
Use the Bukkit/Paper API for gameplay events, inventories, entities, particles, sounds, damage, and commands.
Use PersistentDataContainer tags to identify custom weapons securely.
Save weapon crafting status, cooldowns where appropriate, ritual states, and player hit counters to persistent storage.
Prevent duplicated weapons from accidental event handling, repeated clicks, server restarts, and concurrent crafting attempts.
Use configurable values in config.yml.
Include permission checks, input validation, cooldown enforcement, and appropriate error messages.
Never identify custom weapons by display name alone.
Use a modular architecture rather than placing all functionality in one enormous Java class.
2. The six weapons and abilities
Weapon 1: Crownbreaker

Material: Mace.

Ability 1 โ€” Sky Launch

Launch the wielder high into the air.
Enable the player to perform a powerful mace smash on landing.
Add appropriate particles, sound effects, and impact damage.
Prevent the ability from being abused to cause unintended fall damage.
Add a configurable cooldown.

Ultimate โ€” Crownfall

Count successful melee hits against valid players.
Charge the ultimate after 25 qualifying hits.
Show charge progress through messages, action bar, or particles.
When activated, create a dramatic falling-TNT-style explosion.
Damage valid players within an 8-block radius.
Use a controlled explosion or custom damage implementation so the attack does not destroy terrain.
Exclude the wielder unless explicitly enabled in configuration.
Prevent the ultimate's own damage from adding to its hit counter.
Weapon 2: Soulreaper

Material: Axe.

Passive โ€” Soul Drain

Damage enemies with melee attacks.
Heal the wielder based on the damage successfully dealt.
Never heal above maximum health.
Exclude environmental damage and self-damage from lifesteal.

Ultimate โ€” Spectral Wave

Charge the ultimate after 20 qualifying melee hits.
Fire a forward-moving spectral wave inspired by the Minecraft Warden's sonic boom.
Damage valid targets along its path.
Add soul particles, dark-colored effects, and suitable sounds.
Include configurable range, damage, cooldown, and hit detection.
Weapon 3: Teleporter

Material: Custom enchanted sword.

Implement four distinct abilities:

Coordinate Teleport: Open a GUI or chat-based input interface that lets the player enter X, Y, and Z coordinates. Support world selection and validate that the destination is safe.
Player Teleport: Display an inventory menu listing eligible online players. Allow the wielder to teleport to the selected player.
Identity Swap: Implement an optional disguise integration if a compatible plugin is installed. Explain any limitations if no disguise plugin is present. Never falsely claim that a simple teleport swaps player identities.
Position Swap: Exchange the positions of the wielder and a selected player, with safe destination checks and clear feedback.

Add cooldowns, permission checks, and protection against teleporting into solid blocks, the void, or prohibited regions.

Weapon 4: Kelpster

Material: Custom enchanted sword.

Passive โ€” Sea Curse

Count qualifying melee hits against players.
Every 8 qualifying hits, inflict blindness and slowness on the target.
Make effect duration and strength configurable.
Prevent one hit from triggering the passive multiple times.

Ultimate โ€” Abyssal Wave

Charge the ultimate after 15 qualifying melee hits.
Launch a forward-moving spectral sonic wave inspired by the Warden.
Damage valid players along the wave's path.
Add oceanic, kelp-green, and soul-themed particles and sounds.
Ensure the ultimate cannot hit the same target repeatedly during one cast unless explicitly configured.
Weapon 5: Beamline

Material: Custom gun-style sword.

Passive โ€” Infernal Core

Grant the wielder fire resistance while the weapon is equipped in the main hand, offhand, or inventory as configured.
Remove only the effect managed by this plugin when the conditions are no longer met.
Do not permanently overwrite potion effects applied by other sources.

Ability 1 โ€” Hotbar Shuffle

Randomize only the player's nine hotbar slots.
Do not shuffle armor, offhand, main inventory slots, or storage.
Preserve each item and its quantity exactly.
Do not permit item duplication or deletion.

Ability 2 โ€” Fire Ring

Create a circle or sphere of fire around the wielder.
Damage valid enemy players within a 10-block radius.
Apply configurable fire ticks.
Add flame particles, smoke, and sound effects.
Prevent terrain damage and unintended friendly fire.

Ultimate โ€” Infernal Beamline

Charge after 30 qualifying melee hits.
Fire a forward-moving, wave-like flame trail in the direction the wielder is aiming.
Damage valid players intersecting the trail.
Apply fire ticks and appropriate visual effects.
Use ray tracing or controlled hit detection.
Prevent duplicate hits on the same target during a single ultimate cast.
Weapon 6: Void Bow

Material: Custom enchanted bow.

Implement three abilities.

Ability 1 โ€” Sonic Arrow

Custom arrows produce a Warden-inspired sonic attack on impact.
Deal configurable damage to valid targets.
Use cyan, dark-blue, and purple particles.
Avoid real lightning or terrain damage unless enabled in configuration.

Ability 2 โ€” Void Snare

Create a dark energy field around the impact point.
Slow nearby enemies and apply configurable damage over a limited duration.
Prevent repeated damage from exceeding configured limits.

Ability 3 โ€” Rift Volley

Launch a burst of void-charged arrows.
Preserve normal bow mechanics when appropriate.
Avoid generating excessive projectiles or allowing infinite ammunition.
Add cooldowns, sounds, and custom visual effects.
3. One-time crafting and unique weapons

Implement a persistent, server-wide uniqueness system.

Each of the six weapons can be crafted through its designated recipe only once on the entire server.
The uniqueness limit applies to legitimate player crafting, not to admin commands.
Once a weapon has been successfully crafted, its crafting recipe becomes unavailable.
Losing, dropping, destroying, or despawning the weapon must not reset its crafting status.
Admin-issued copies must not consume the crafting allowance.
Admin-issued copies must not reset or duplicate the original crafting record.
Persist all crafting records across server restarts.
Handle simultaneous crafting attempts safely so two players cannot craft the same unique weapon.
Include an admin-only command to deliberately unlock a weapon for another legitimate craft.
Clearly distinguish the original unique weapon from admin-issued copies in internal metadata or records.
4. Ritual crafting system

When a player successfully crafts a weapon using its configured recipe, start its ritual.

Each weapon has its own configurable recipe.
Recipes must be editable by server administrators without recompiling the plugin.
Allow configuration of the ritual location, world, coordinates, particle effects, sounds, and visual presentation.
Start a 10-minute countdown by default.
Announce the ritual to players according to configurable broadcast settings.
Display a countdown using action-bar messages, boss bars, or configurable alternatives.
Spawn suitable particles and sounds at the ritual location.
Prevent the weapon from being crafted again while its ritual is active.
Allow authorized players to claim the weapon when the ritual finishes.
If nobody claims it, automatically deliver the weapon to the original crafter.
If the crafter is offline, save a pending reward and deliver it when they next join.
Prevent duplicate claiming, reward duplication, or multiple deliveries.
Save active ritual state and remaining time so server restarts do not restart the full 10-minute timer.
Provide configurable options for what happens if the original crafter is permanently unavailable.
Include admin commands to start, cancel, inspect, and complete rituals.
Make all recipe and ritual settings configurable.

Define and document exactly when a successful craft consumes the unique crafting allowance. Use atomic state changes so failed crafting attempts do not consume it.

5. Admin command system

Create a root command /mw with tab completion, clear usage instructions, and permission checks.

Required commands:

/mw give   โ€” give an admin copy of a weapon.
/mw giveall  โ€” give all six weapons.
/mw charge    โ€” set hit progress for testing.
/mw ultimate   โ€” trigger a weapon's ultimate for testing.
/mw reset   โ€” reset a weapon's hit counter.
/mw status โ€” show crafting status for all six weapons.
/mw unlock  โ€” allow that weapon to be crafted again.
/mw ritual start  โ€” start a ritual manually.
/mw ritual cancel  โ€” cancel a ritual safely.
/mw ritual complete  โ€” complete an active ritual and process rewards.
/mw ritual info  โ€” display ritual status and remaining time.
/mw reload โ€” reload configuration safely.
/mw help โ€” show available commands.

Use a dedicated permission such as mythicweapons.admin, defaulting to operators.

Do not allow unauthorized players to manipulate crafting status, hit counters, rituals, or ultimate abilities.

6. Custom textures and resource pack

Create a matching custom resource pack for all six weapons.

Provide original textures for:

crownbreaker
soulreaper
teleporter
kelpster
beamline
void_bow

Requirements:

Provide actual PNG texture assets, not just descriptions or image URLs.
Use a consistent Minecraft-compatible pixel-art style.
Use a 32ร—32 or 64ร—64 working canvas where appropriate, with clean pixel edges and transparent backgrounds.
Crownbreaker: regal gold, dark crimson, and powerful royal motifs.
Soulreaper: spectral green, cyan souls, and dark metallic details.
Teleporter: purple and cyan ender energy.
Kelpster: deep ocean green, teal kelp, and aquatic details.
Beamline: dark metallic gunblade with orange or blue energy accents.
Void Bow: dark void colors, cyan sonic energy, and purple cosmic details.
Include all required item model definitions, texture mappings, and pack.mcmeta for the chosen Minecraft version.
Use an appropriate item-model implementation for the target Minecraft 1.21.x release.
Provide installation instructions for the resource pack.
Ensure that the custom items display their intended textures in-game when the pack is enabled.
If custom textures cannot be generated automatically, provide valid asset-generation scripts or clearly identify the missing assets rather than pretending they exist.
7. Configuration

Create a well-documented config.yml containing:

Damage values and attack ranges for each ability.
Hit requirements for ultimates.
Cooldowns and effect durations.
Friendly-fire settings and self-damage settings.
Particle and sound settings.
Teleport safety rules.
Ritual duration, location, recipes, and claim behavior.
Broadcast and boss-bar settings.
Resource-pack URL and optional hash configuration.
Logging and debug settings.

All six weapons must be enabled by default, with exactly six weapon definitions.

8. Architecture and quality

Use separate Java classes for:

Main plugin lifecycle.
Weapon registry and metadata.
Ability handling.
Hit counters and ultimate charge tracking.
Teleporter GUI and coordinate input.
Ritual management.
Unique crafting and recipe management.
Admin commands and tab completion.
Configuration and persistent data storage.
Resource-pack support.

Requirements:

Follow Paper API conventions.
Use safe Bukkit event handling.
Avoid unnecessary synchronous tasks and excessive particle spawning.
Clean up scheduled tasks and listeners appropriately.
Handle offline players and unloaded worlds safely.
Avoid deprecated APIs when practical.
Validate all configurable values.
Include useful logging and error messages.
Do not use external dependencies unless required and documented.
9. Testing requirements

Provide tests or a repeatable manual test plan covering:

All six weapons can be obtained through admin commands.
Ordinary renamed vanilla items cannot activate custom abilities.
Crownbreaker charges after exactly 25 qualifying hits.
Soulreaper charges after exactly 20 qualifying hits and applies lifesteal correctly.
Kelpster applies its curse every 8 qualifying hits and charges its ultimate after 15.
Beamline shuffles only the hotbar and charges its ultimate after 30 qualifying hits.
Void Bow abilities have cooldowns and correct damage behavior.
Teleporter coordinate, player teleport, position swap, and optional disguise integration work safely.
Only one legitimate crafted copy of each weapon is allowed.
Admin copies do not consume uniqueness limits.
Ritual rewards cannot be duplicated by simultaneous claims or repeated commands.
Ritual countdowns and crafting records survive server restarts.
Offline crafters receive pending rewards correctly.
The plugin loads without errors on the selected Paper 1.21.x build.
The resource pack displays all six custom textures correctly.
10. Deliverables

Produce the following:

Complete Maven project with every Java source file.
pom.xml, plugin.yml, and a documented config.yml.
Six actual weapon PNG textures and all necessary resource-pack files.
Recipe and ritual configuration examples.
Unit tests or a reproducible testing checklist.
A README containing setup, compilation, installation, commands, permissions, and troubleshooting.
A successfully compiled plugin JAR, if the environment supports building files.
A resource-pack ZIP, if the environment supports generating files.

Do not omit required classes or replace implementations with pseudocode. Do not claim that compilation, testing, or asset generation succeeded unless it actually did.

Prioritize correctness, anti-duplication safeguards, balanced combat, and maintainability. The final result must contain exactly six custom weapons and be ready for testing on a Minecraft Java Paper 1.21.x server.
Kodari AI
KodariOct 24 at 7:23 am 2
MythicWeaponsUltimate
A comprehensive Paper 1.21 plugin implementing six unique custom weapons (Crownbreaker, Soulreaper, Teleporter, Kelpster, Beamline, Void Bow) with distinct abilities, ultimates, and passives. Features a persistent server-wide one-time crafting system with atomic state changes, a configurable 10-minute ritual crafting system with restart-safe countdowns, admin command suite with tab completion, custom resource pack with six original 32x32 pixel-art textures, and full configuration management. Includes hit counters, cooldowns, teleport safety checks, GUI-based interfaces, and anti-duplication safeguards for crafting, claiming, and rewards.
  1. Project foundation: Paper 1.21.x build, six tagged weapon definitions, configuration, and persistent state.

  2. Gameplay: weapon abilities, teleport menus, safe combat effects, and atomic one-time crafting/ritual rewards.

  3. Admin commands and delivery docs; resource-pack metadata, with the six PNG textures called out as unavailable until Studio is enabled.

[Generation stopped]

Kodari can make mistakes. Review important code before using.
Files

No files in this session

Code