Zain asad

MASTER PROMPT — STORMFANG CUSTOM WEAPON ADDON

  1. PROJECT GOAL

I have already built a basic Minecraft plugin and set up a local Minecraft server. I have tested the plugin, and it works.

Now I want to begin developing my first custom weapon addon, named Stormfang.

Work ONLY on this first weapon. Do not build the other swords, GOD weapons, counter-items, or any other weapons yet.

The project has two separate components:

  1. Custom Weapons Plugin — handles the weapon's identity, damage, abilities, controls, cooldowns, status effects, and gameplay logic.
  2. Custom Weapons Resource Pack — provides the weapon's custom 3D model, textures, item appearance, particles where supported, sounds, and visual presentation.

The final result must look impressive and feel like a premium fantasy weapon, not like an ordinary Netherite Sword with a different name.

  1. DEVELOPMENT WORKFLOW — FOLLOW THIS ORDER

Phase 1: Inspect the Existing Project

Before making changes:

  • Inspect my existing plugin source code, project structure, build system, configuration, and local server setup.
  • Identify the actual Minecraft version, Paper API version, and required Java version from my project and server.
  • Build and test the existing plugin before modifying it, if practical.
  • Preserve existing working code and avoid unnecessary rewrites.
  • Use free tools and dependencies only.

Do not assume that the newest Minecraft version has the same API as earlier versions. Verify the actual target version before coding.

Phase 2: Build the Basic Resource Pack

First, create a separate, minimal but valid Custom Weapons Resource Pack project.

It must:

  • Load correctly on the target Minecraft version.
  • Have the correct pack metadata and folder structure.
  • Include the necessary model, texture, and sound directories.
  • Include a simple test asset to verify that the pack loads.
  • Include a README explaining how to test and install it.
  • Be organized so more weapons can be added later.

Test the basic pack before moving forward.

Do not build the complete Stormfang model in this phase. This phase establishes the working resource-pack foundation.

Phase 3: Build Stormfang in the Plugin and Resource Pack Together

After the basic plugin and basic resource pack are working, develop Stormfang in small, testable steps.

Work on the plugin and resource pack side by side:

  1. Implement the weapon's unique identity and inventory tooltip.
  2. Create the custom 3D sword model and textures.
  3. Implement Storm Aura.
  4. Add the cylindrical player particles and passive poison effect.
  5. Implement Lightning Strike.
  6. Add the lightning effects and custom sounds.
  7. Implement the Wrath of the Storm ultimate.
  8. Add its ultimate animation, sound, and five-minute cooldown.
  9. Test the plugin and resource pack together on the local server.
  10. Fix bugs before adding more features.

Do not skip testing or generate a large amount of untested code in one step.

  1. WEAPON IDENTITY

Display Name: Stormfang

Subtitle: The Thunder Blade

Category: Custom Sword

Rarity: Legendary

Theme: Lightning, thunder, electric energy, and storms.

Base Item: Netherite Sword, or the appropriate supported base item for the target Minecraft version.

Internal ID: "stormfang"

Identify the weapon using a stable plugin-specific ID, such as a Persistent Data Container value. Never identify the weapon using its display name alone.

Stormfang must remain a usable sword even if the resource pack is missing. In that case, use the vanilla base item and retain the custom name, lore, damage, and abilities.

  1. VISUAL DESIGN — MAKE IT LOOK PREMIUM

Stormfang must have an elaborate custom appearance.

Sword Model

Create a high-quality fantasy sword with:

  • A long, sharp, electric-blue blade.
  • Bright cyan energy running through the center of the blade.
  • Jagged lightning-shaped edges or decorative lightning patterns.
  • A dark metallic guard with gold or silver detailing.
  • A black or dark-blue handle.
  • A glowing energy core near the guard.
  • Small decorative runes or storm symbols.
  • A distinctive silhouette that is recognizable even from a distance.

The sword should look powerful, magical, and carefully designed.

Use Blockbench or another free tool to create the model and textures. The model should have a proper Minecraft item-scale appearance and should look good in first-person, third-person, inventory, and dropped-item views.

Do not rely only on a flat blue texture. Use a properly constructed model with carefully arranged textures, depth, and visual details.

Visual Effects

Use Minecraft-supported particles and effects for:

  • A constant electric-blue cylindrical aura surrounding the full player.
  • Lightning sparks around the sword.
  • A short electric trail during attacks.
  • A charging animation for the ultimate.
  • A large circular shockwave.
  • Multiple lightning strikes around the ultimate target.
  • A final electric burst when the ultimate finishes.

The cylinder should extend from the player's feet to above their head. Use evenly distributed particles around its circumference and additional vertical particles to make it look like a storm-energy cage.

Keep particle counts configurable and performance-friendly.

Resource-Pack Compatibility

Use the correct item-model, texture, and sound mapping approach for the verified Minecraft target version.

Do not copy model formats or pack metadata from an incompatible Minecraft version.

If the resource pack cannot implement an effect directly, use plugin-controlled particles, supported animations, model transforms, or other compatible techniques. Explain any limitations honestly.

  1. NORMAL SWORD BEHAVIOR

Stormfang must also work as a normal melee weapon.

Implement:

  • Normal sword attacks.
  • Fire Aspect-style burning on successful melee hits.
  • A custom damage system equivalent to the intended Sharpness XII-style power.
  • Compatibility with the intended normal sword behavior and applicable vanilla sword enchantments, including Looting where supported.
  • Normal sword sounds and attack behavior unless replaced by an intentional custom effect.

Do not display a Sharpness enchantment level if the actual damage is implemented by custom logic rather than that enchantment.

Damage Requirements

The intended power level is Sharpness XII-style damage.

The user expects approximately five hearts of damage on a successful critical hit against a target wearing maximum armor, based on their intended balancing.

However, do not assume that Sharpness XII automatically produces five hearts of damage against fully armored players. Actual damage depends on Minecraft's attack calculation, critical-hit rules, armor, enchantments, resistance effects, and other modifiers.

Implement a configurable custom damage system that aims for the requested result. Test against unarmored targets and maximum-armor targets, and report the actual results.

Do not repeatedly apply damage through overlapping event handlers. Ensure the custom damage is applied exactly once per intended hit.

Fire Aspect-style behavior must be configurable, and the weapon should not accidentally ignite protected blocks or start unwanted fires.

  1. POWER ONE — STORM AURA

Type: Passive power

Cooldown: None

Activation: Automatically active while the player holds Stormfang in the main hand.

Effects on the User

  • Grants Speed I while holding Stormfang.
  • Removes only the Speed effect applied by Stormfang when the sword is no longer held.
  • Does not permanently remove or overwrite unrelated potion effects from other sources.
  • Displays electric-blue particles around the sword and the entire player.

Cylindrical Particle Aura

Create a visually impressive cylindrical aura around the entire player.

Requirements:

  • The cylinder surrounds the player, not just the sword.
  • It begins near the player's feet and extends above their head.
  • Blue and cyan particles form a visible cylindrical boundary.
  • Additional vertical particle trails create the appearance of contained storm energy.
  • Particles refresh at a controlled interval rather than every tick without a reason.
  • Particle density, radius, height, and update interval are configurable.
  • The aura disappears when the player stops holding Stormfang.

The effect must be visible to nearby players as well as the sword's holder, subject to normal Minecraft particle visibility settings.

Poison Aura Against Nearby Enemies

Storm Aura must also affect nearby enemies.

  • Nearby eligible players and hostile mobs receive Poison.
  • The sword holder must never be poisoned by their own aura.
  • The aura must not poison allies if an existing team or friendly-fire integration can reliably identify them and the feature is enabled.
  • Use a configurable radius, poison duration, and refresh interval.
  • Do not apply an uncontrolled potion-effect refresh every tick.
  • Do not repeatedly trigger damage or potion effects through duplicate listeners.
  • Respect protected regions and configured PvP rules.

Because this is a passive aura, it has no activation cooldown. The effect should apply consistently while the sword is held and an eligible enemy remains within range.

Use a safe default radius of 4 blocks, with configuration support for changing it.

  1. POWER TWO — LIGHTNING STRIKE

Type: Special attack

Cooldown: None

Control: Shift + right-click.

The user can activate Lightning Strike while aiming at an eligible player or mob.

Target Selection

  • Detect the entity the player is aiming at using a configurable targeting range and a safe ray-trace or equivalent target-selection method.
  • If the player aims at an eligible entity, summon a powerful lightning strike on that target.
  • If no eligible target is found, show a short message or play a subtle feedback sound.
  • Do not hit the sword holder.
  • Avoid striking unrelated entities when the player is aiming at a specific target.

Damage and Effects

  • Deal 6 bonus damage points through the custom Lightning Strike attack, subject to the configured damage calculation.
  • Apply Slowness II for 2 seconds.
  • Create a strong electric-blue particle burst around the target.
  • Play a custom thunder or lightning sound.
  • Show a short, dramatic lightning animation.
  • Make the ability feel powerful without causing unnecessary server lag.

The requested damage is bonus damage for the special ability. Do not accidentally apply it twice if the target also receives damage from a vanilla lightning entity.

The ability must have no cooldown. Do not add a hidden cooldown, charge requirement, energy meter, or delay between uses.

Use configuration to control the targeting range, damage, particle density, and status-effect duration.

  1. ULTIMATE — WRATH OF THE STORM

Type: Ultimate ability

Cooldown: 5 minutes.

Control: shift+ the configured ultimate mouse action. Support both left-click and right-click selection through configuration where the target API and event handling permit it.

The exact activation controls must be documented in the weapon's tooltip.

Ultimate Activation

When the player activates the ultimate:

  1. Verify that the player holds Stormfang.
  2. Verify that the ultimate is ready.
  3. Start the ultimate animation and play its charging sound.
  4. Create a dramatic electric-blue cylindrical aura around the user.
  5. Select an eligible target using the configured targeting method.
  6. Release the combined storm attack.
  7. Apply the combined passive, special, and ultimate effects.
  8. Start the five-minute cooldown only when activation succeeds.

If the ultimate cannot find a valid target, use the configured behavior and avoid consuming the cooldown unexpectedly.

Combined Powers

Wrath of the Storm combines:

  • Storm Aura's Speed I benefit for the holder.
  • Storm Aura's Poison effect against eligible nearby enemies.
  • Lightning Strike's targeted lightning damage.
  • Lightning Strike's Slowness II effect for 2 seconds.
  • The ultimate's own multi-lightning attack and shockwave.

The holder must remain immune to their own ultimate's damage, lightning, knockback, and harmful effects.

Multi-Lightning Attack

The ultimate must summon eight lightning strikes in total around the selected target:

  1. One directly on the target.
  2. One to the left.
  3. One to the right.
  4. One behind.
  5. One in front.
  6. Three additional strikes distributed around the target.

Use the target's position and orientation to calculate the surrounding positions. Keep strikes within the configured radius and ensure that the target's surrounding area is handled safely.

The visual presentation should include:

  • A brief blue-energy charging effect.
  • A large circular electric shockwave.
  • A cylindrical storm aura around the sword holder.
  • Eight dramatic lightning effects around the target.
  • Bright cyan and electric-blue particles.
  • A powerful custom thunder impact sound.
  • A final burst that makes the attack visually distinct from Lightning Strike.

Use real lightning entities only where appropriate. If visual-only lightning is safer, use visual effects without unintended fire or duplicate damage. The implementation must avoid accidentally damaging the user.

Cooldown and Ready Notification

The ultimate has a five-minute cooldown.

  • Persist or safely reconstruct cooldown information as appropriate.
  • Prevent multiple activations from event duplication or simultaneous clicks.
  • Show the remaining cooldown when the player tries to activate an unavailable ultimate.
  • When the cooldown expires, display a large, colorful, bold action-bar or title-style notification reading:

WRATH OF THE STORM (ULTIMATE) IS READY!

The notification should remain visible for approximately one second only, then disappear naturally. Do not keep showing it for multiple seconds or repeatedly spam the message.

Use Minecraft's supported title, action-bar, or equivalent APIs. The resource pack may add a matching sound or visual presentation if supported.

  1. CONTROLS AND ITEM TOOLTIP

The weapon must explain its controls clearly when the player hovers over it in their inventory.

Use a colored, formatted tooltip similar to:

Stormfang The Thunder Blade LEGENDARY CUSTOM SWORD

Normal Attack Sharpness XII-style damage and Fire Aspect-style burning.

PASSIVE — STORM AURA Sneak + Left-click: manual control is not required; the passive activates automatically while holding the sword.

Grants Speed I and surrounds the holder with electric-blue cylindrical particles. Poisons nearby eligible enemies.

POWER — LIGHTNING STRIKE Shift + Right-click: summon a powerful lightning strike on the targeted enemy, deal bonus damage, and apply Slowness II for 2 seconds.

Cooldown: None.

ULTIMATE — WRATH OF THE STORM Shift + configured ultimate mouse action: combine Storm Aura and Lightning Strike with eight lightning strikes surrounding the target.

Cooldown: 5 minutes.

The tooltip must clearly distinguish the passive, special power, ultimate, and normal melee behavior.

Do not state that Storm Aura requires Sneak + Left-click. It is passive and activates automatically while holding the sword. If the interface has limited space, keep the passive explanation short and prioritize correct controls.

  1. CUSTOM SOUNDS

Create or source original, properly licensed sound files for:

  • Stormfang activation.
  • Storm Aura ambience or subtle electric energy.
  • Lightning Strike impact.
  • Wrath of the Storm charging.
  • Wrath of the Storm final impact.
  • Ultimate-ready notification.

Use the resource pack's sound definitions and trigger sounds from the plugin when the corresponding event occurs.

Avoid playing loud looping sounds constantly. Storm Aura should primarily use particles, with optional subtle ambience.

Ensure sound files are correctly encoded and packaged in the format supported by Minecraft.

  1. CONFIGURATION

Create a configuration file with settings for:

  • Normal attack damage.
  • Custom damage calculation.
  • Fire Aspect-style burning duration.
  • Storm Aura Speed level.
  • Storm Aura poison duration and radius.
  • Aura particle radius, height, density, and update interval.
  • Lightning Strike damage and targeting range.
  • Lightning Strike Slowness level and duration.
  • Ultimate cooldown, default 300 seconds.
  • Ultimate target radius and maximum affected entities.
  • Ultimate particle density and animation timing.
  • Ultimate lightning count, default 8.
  • Sound volume and playback settings.
  • PvP and protected-region behavior.
  • Debug logging and performance limits.

Do not add cooldowns to Storm Aura or Lightning Strike.

  1. PERFORMANCE, SAFETY, AND CLEANUP
  • Use centralized scheduling where practical.
  • Do not spawn unnecessary entities for visual effects.
  • Avoid large unbounded loops on the main server thread.
  • Do not load chunks solely to create or restore an effect.
  • Cancel or clean up temporary tasks when the plugin shuts down or reloads.
  • Avoid permanent potion effects after the weapon is no longer held.
  • Prevent the weapon from damaging its holder during its own attacks.
  • Avoid duplicate damage from lightning events and custom damage logic.
  • Prevent ability activation from being triggered twice by overlapping event handlers.
  • Respect permissions and protected-region rules where applicable.
  • Keep the weapon's ID secure against display-name copying and ordinary item renaming.
  • Avoid accidental recipe conflicts or changes to unrelated plugins.
  1. TESTING REQUIREMENTS

Test the following on the actual local server:

  1. The basic resource pack loads correctly.
  2. Stormfang has its custom name, lore, and unique ID.
  3. The custom model and texture display correctly.
  4. Storm Aura grants Speed I while the sword is held.
  5. The full-player cylindrical particle aura appears correctly.
  6. Nearby eligible enemies receive Poison, but the holder does not.
  7. Storm Aura disappears safely when the sword is no longer held.
  8. Lightning Strike works with Sneak + right-click.
  9. Lightning Strike has no cooldown.
  10. Lightning Strike deals its intended bonus damage and applies Slowness II for 2 seconds.
  11. Lightning Strike produces the correct visual effects and sound.
  12. Wrath of the Storm combines the intended powers.
  13. The ultimate produces eight lightning strikes in the intended pattern.
  14. The holder is not damaged by their own ultimate.
  15. The ultimate cooldown is exactly five minutes by default.
  16. The ready notification displays for approximately one second.
  17. The sword behaves as a melee weapon with the intended custom damage and burning behavior.
  18. No duplicated damage, uncontrolled potion refreshes, or entity buildup occurs.
  19. The weapon remains usable when the resource pack is missing.
  20. Existing plugin functionality remains intact.

Do not claim a test passed unless it was actually run.

  1. FINAL DELIVERABLES

Deliver:

  • The updated Custom Weapons Plugin source code.
  • A successful compiled plugin JAR if the build environment supports it.
  • The separate basic Custom Weapons Resource Pack project.
  • The Stormfang model and texture files.
  • Custom sound assets and sound definitions.
  • The configuration file.
  • A README explaining installation, configuration, controls, and testing.
  • A report listing which features were implemented and tested, plus any unresolved limitations.

Keep all work organized, use free tools, preserve the existing working plugin, and test each phase before moving forward.

IMPORTANT: Build only Stormfang in this phase. Do not begin the second or third custom sword until Stormfang and its resource pack are working correctly.

Kodari AI
KodariNov 1 at 3:34 pm 1
StormfangWeaponAddon
Develops a premium custom legendary sword addon called Stormfang for a Minecraft plugin. Creates a custom 3D sword model with electric-blue blade, cyan energy core, and storm-themed design. Implements passive Storm Aura granting Speed I and cylindrical particle effects while poisoning nearby enemies. Adds Lightning Strike special attack via shift-right-click with bonus damage and Slowness II. Includes Wrath of the Storm ultimate combining all powers with eight lightning strikes and five-minute cooldown. Features custom damage system, Fire Aspect-style burning, configurable settings, custom sounds, and comprehensive item tooltip. Works with or without resource pack.

This is a Java plugin project, and Kodari cannot build the separate resource pack you requested. Stormfang’s 3D model and textures can be created by enabling Studio in Project Settings → Generation, or for all projects at https://kodari.ai/settings?tab=features.

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

No files in this session

Code