devoniiii_i
📎 1 file 16,739 chars
📄
pasted-code-1787277612928.txt
txt 597 lines
▶
# Minecraft Custom Weapon System — Three Legendary Weapons

Create this as a **premium, production-quality Minecraft SMP custom weapon system**. This is for a survival multiplayer server, NOT an RPG server. Keep vanilla Minecraft survival as the foundation: players should still mine, build, explore, trade, fight, and survive normally. The weapons are rare, powerful custom items that add exciting PvP/PvE moments without introducing RPG classes, levels, XP progression, skill trees, quests, NPCs, stats screens, or MMO-style progression.

The final result must combine a polished server plugin, highly detailed custom 3D weapon models, a matching resource pack, clean Minecraft-style text presentation, sounds, animations, particles, cooldown systems, and intuitive combat controls. The weapons should feel like legendary artifacts that a player could realistically obtain and use on an SMP.

Target the exact Minecraft version specified by the user. Use APIs and resource-pack formats appropriate for that version rather than assuming an older custom-model-data workflow. Keep the architecture modular so additional legendary weapons can be added later.

## COLOR, TEXT & UI IDENTITY

Every weapon must have a distinct color identity used consistently across item names, lore, ability names, cooldown messages, action-bar displays, particles, emissive textures, and ability indicators.

**AEROBREAKER palette:** `#5DEBFF`, `#A9F7FF`, white, dark steel.

**VOIDREAVER palette:** `#8A2BE2`, `#C45CFF`, near-black, deep violet.

**SUNFALL palette:** `#FF5A1F`, `#FFB300`, `#FFF4A3`, white-hot yellow, dark steel.

Do not use excessive formatting. Make the weapon name visually dominant, use consistent symbols, and make ability names easy to scan. Use MiniMessage/Adventure components or the correct modern text API for the target version.

Example lore style:

* Short rarity/status line such as `✦ LEGENDARY WEAPON ✦`
* Short weapon description
* Abilities with matching colors
* Control/keybind beside every active ability
* Cooldown beside every active ability
* Passive/mechanic information

Create polished action-bar feedback such as `ABILITY • READY`, `ABILITY • 4.2s`, or an appropriate visual cooldown bar. Never flood chat with ability messages.

## UNIVERSAL CONTROL & COOLDOWN SYSTEM

Every active ability must have an explicit trigger and cooldown.

Support intuitive controls such as:

* **Right-click:** primary ability
* **Shift + Right-click:** secondary ability
* **Offhand swap / F:** utility ability where appropriate
* **Sneak + Left-click:** alternate ability where technically reliable
* **Drop/Q:** ultimate only if explicitly enabled in config

Do not require impossible or unreliable client-side key detection. Where Minecraft does not expose a true custom keybind, emulate the control with reliable vanilla actions and clearly display the control in the weapon lore.

Make controls configurable per weapon.

Example:
`Right Click → Blink`
`Shift + Right Click → Reality Tear`
`Offhand/F → Ultimate`

Each ability must have:

* Base cooldown
* Optional charges
* Optional cast time
* Optional channel time
* Optional resource cost
* Cancellation rules
* Cooldown displayed to the player
* Server-side validation
* Configurable values

Prevent ability activation while another incompatible ability is casting or channeling.

Create a centralized cooldown manager rather than duplicating cooldown logic inside every ability.

Cooldowns must survive ordinary plugin reloads safely where possible and must never be bypassed by swapping items, moving the weapon to the offhand, reconnecting, or changing hotbar slots.

Create a highly polished Minecraft SMP custom weapon system containing **three unique legendary weapons**. The weapons must have **custom 3D models in a resource pack**, custom textures, animations/effects, sounds, abilities, cooldowns, and gameplay mechanics.

The weapons should feel like exceptionally well-made custom items from a high-quality SMP. Do NOT make the system feel like an RPG/MMO. Do NOT add character levels, classes, skill trees, stat allocation, quests, NPC progression, mana bars, RPG inventories, or artificial player progression. Each weapon should instead have a small number of memorable abilities with clear cooldowns and strong skill-based combat utility.

Balance the weapons so they are powerful but not permanently oppressive on an SMP. Every ability needs meaningful cooldowns, ranges, durations, and counterplay. Avoid abilities that can effortlessly one-shot players, permanently stun them, destroy bases, or bypass normal survival gameplay unless explicitly configured by the server owner.

## 1. AEROBREAKER — Mace of the Sky

### Theme

Wind, storms, gravity, aerial combat.

### 3D Model

Create a detailed custom 3D mace.

Design:

* Large heavy metallic mace head.
* Dark gunmetal/steel construction.
* Several curved aerodynamic blades around the mace head.
* A glowing cyan/white energy core in the center.
* Small floating metal rings around the core.
* Subtle spiral/wind motifs engraved into the metal.
* The handle should look reinforced and heavy enough to support the huge mace head.
* Add small cyan cracks/energy channels through the weapon.
* The silhouette must clearly read as a mace from first-person and third-person views.
* Avoid making it look like a random collection of floating shapes.
* Use clean, intentional geometry suitable for Minecraft.
* Make the model visually impressive but still recognizable.

### Texture

Use dark steel, slightly worn metal, cyan glowing energy, and subtle blue-white highlights.

Create emissive textures for:

* Energy core
* Cracks
* Wind symbols

### Abilities

**Windfall**

* Hitting an enemy launches them upward.
* The player also receives upward momentum.
* The effect should encourage aerial combat.

**Skybreaker**

* Perform a powerful smash attack from above.
* Damage increases with falling distance.
* Create a circular wind shockwave when the mace hits the ground.
* Knock nearby enemies backward.

**Eye of the Storm**

* Right-click to summon a tornado at the target location.
* The tornado lifts nearby mobs and spins them.
* Use swirling wind particles around the tornado.

**Ultimate — Heaven's Collapse**

* Slam the mace into the ground.
* Nearby enemies temporarily float upward.
* After a short delay, violently launch them downward.
* Create a huge circular storm effect.

### Weapon Feedback

The higher the player falls before hitting an enemy, the more intense:

* particles
* sound
* screen/visual effects
* impact effect

become.

---

# 2. VOIDREAVER — Sword That Eats Space

### Theme

Void energy, dimensional rifts, teleportation, corrupted reality.

### 3D Model

Create a completely custom fantasy sword.

Design:

* Long, intimidating black blade.
* The blade should appear partially broken or fragmented.
* Some sections of the blade should appear separated by tiny gaps.
* Purple/black void energy should exist between the fragments.
* Jagged but intentional blade geometry.
* Dark metallic guard.
* A glowing purple dimensional core inside the guard.
* Black handle with subtle purple energy lines.
* Small floating fragments can orbit around the blade, but keep the weapon visually coherent.
* The sword should look like it is partially removing itself from reality.

The model must NOT simply be a purple vanilla sword.

### Texture

Use:

* Near-black metal
* Dark purple
* Violet emissive energy
* Small amounts of magenta

Create emissive textures for the void cracks and dimensional core.

### Abilities

**Rift Slash**

* Swing the sword to fire a short-range dimensional slash.
* The slash travels forward.
* It damages enemies in its path.

**Blink**

* Right-click to teleport a short distance toward the direction the player is looking.
* Spawn a small dimensional rift at the starting position.
* Spawn another rift at the destination.

**Void Mark**

* Repeated attacks apply Void Mark stacks.
* At the required number of stacks, the enemy is pulled toward a temporary dimensional rift.
* Trigger a strong void explosion.

**Reality Tear**

* Hold/right-click to charge a powerful dimensional slash.
* The longer it charges, the larger and stronger the rift becomes.

**Ultimate — Event Horizon**

* Create a large black-hole-like rift.
* Pull nearby mobs toward its center.
* Dark purple particles should spiral inward.
* After several seconds, violently release the stored energy.

### Weapon Feedback

Every teleport slightly increases the sword's corruption visual effect.

At high corruption:

* More void particles
* Stronger purple glow
* More floating fragments
* More intense sounds

After killing an enemy, corruption partially resets.

---

# 3. SUNFALL — Greatsword of a Dying Star

### Theme

Stars, solar energy, heat, fire, explosions.

### 3D Model

Create a massive custom two-handed fantasy greatsword.

Design:

* Very large blade.
* Heavy dark-metal frame.
* Orange/gold glowing cracks running through the blade.
* A miniature glowing "star core" embedded in the guard.
* The core should visually resemble a tiny contained sun.
* The blade should have several engraved solar symbols.
* The tip of the blade should glow more intensely than the rest.
* Add subtle metallic imperfections.
* Make the sword look ancient but extremely powerful.
* Use layered geometry so the weapon has depth rather than looking flat.

The sword should look like it contains an unstable star.

### Texture

Main palette:

* Black/dark steel
* Deep red
* Orange
* Gold
* White-hot yellow

Use emissive textures for:

* Star core
* Cracks
* Solar symbols
* Hot portions of the blade

The emissive areas should become visually brighter during abilities.

### Abilities

**Solar Edge**

* Attacks apply Heat stacks.
* Higher Heat stacks increase burning damage.
* Visual heat effects become stronger as stacks increase.

**Flare Dash**

* Dash forward rapidly.
* Leave a burning trail behind the player.
* The trail damages enemies who touch it.

**Solar Burst**

* Slam the sword into the ground.
* Release a circular explosion of solar energy.
* Ignite nearby enemies.

**Starfall**

* Target an area.
* Create a warning circle.
* After a short delay, summon a massive flaming meteor from the sky.
* The meteor impacts the target area with a powerful explosion.

**Ultimate — Supernova**

* Charge the sword.
* During charging, the star core becomes increasingly bright.
* The blade begins glowing orange, then yellow, then nearly white.
* Release a gigantic solar explosion.
* Launch enemies away from the impact.
* Create a large temporary fire/energy field.

### Overheat System

Sunfall has a Heat Meter.

Normal attacks:
→ Increase Heat.

Abilities:
→ Consume Heat.

High Heat:
→ Stronger abilities and brighter visuals.

Maximum Heat:
→ Trigger Overheat.

During Overheat:

* Weapon becomes extremely bright.
* Steam/heat particles appear.
* Player cannot use major abilities temporarily.
* After cooling down, the weapon returns to normal.

---

# RESOURCE PACK REQUIREMENTS

Create a complete custom Minecraft resource pack for all three weapons.

Use custom item model overrides so the weapons can be used as actual custom models.

Each weapon needs:

* Custom 3D geometry
* Custom textures
* Emissive textures
* Item model definitions
* First-person appearance
* Third-person appearance
* Inventory appearance
* Dropped-item appearance
* Proper model scaling
* Proper rotation
* Proper hand positioning

Do not use flat 2D item textures as the primary weapon model.

The models should be optimized for Minecraft while still looking detailed.

## Model Quality

Each weapon should have:

* Clear silhouette
* Multiple geometry layers
* Intentional bevels
* Detailed handles
* Detailed weapon heads/blades
* Emissive sections
* Small decorative details
* Proper UV mapping
* Consistent texture resolution

The three models must look like they belong to the same universe.

---

# RESOURCE PACK STRUCTURE

Generate an organized resource pack structure similar to:

assets/
minecraft/
models/
item/
textures/
item/
weapon/
items/

Use appropriate custom model/item model definitions for the target Minecraft version.

Create separate model and texture files for:

* aerobreaker
* voidreaver
* sunfall

Also create any required:

* animation files
* emissive textures
* particle textures
* custom sound assets

---

# SMP BALANCE & FAIR-PLAY REQUIREMENTS

Design the weapons around actual SMP gameplay.

* Respect normal Minecraft armor, shields, enchantments, potions, terrain, and combat.
* Make abilities useful in PvP and PvE without replacing vanilla combat entirely.
* Add configurable damage caps where appropriate.
* Add protection against repeated crowd-control effects.
* Do not allow abilities to grief protected builds by default.
* Do not allow teleport abilities through solid walls or into invalid locations.
* Make explosions, fire, block damage, and terrain modification disabled by default.
* Make friendly-fire behavior configurable.
* Make cooldowns long enough that players cannot spam abilities during ordinary combat.
* Add clear visual/audio warnings when a powerful ability is about to activate so opponents have counterplay.

# PLUGIN REQUIREMENTS

Create the server-side plugin that controls:

* Weapon identification
* Custom weapon acquisition
* Abilities
* Cooldowns
* Damage
* Knockback
* Teleportation
* Particle effects
* Sound effects
* Boss/elite interactions
* Ability restrictions
* Heat/corruption systems
* Ultimate abilities
* Player feedback

Do not rely purely on client-side effects.

Prevent abilities from causing unintended exploits such as:

* Infinite teleportation
* Infinite damage
* Infinite flight
* Duplicate weapons
* Cooldown bypasses

Make all abilities configurable.

---

# COMMANDS

Include commands such as:

/legendaryweapon give  

/legendaryweapon reload

/legendaryweapon info 

/legendaryweapon test 

Add tab completion.

---

# CONFIGURATION

Put weapon statistics and ability settings into configuration files.

Allow configuration of:

* Damage
* Cooldowns
* Range
* Knockback
* Particle amount
* Ability duration
* Ultimate duration
* Heat values
* Corruption values
* Explosion size
* Maximum targets
* Sound volume
* Sound pitch

Do not hard-code values that server owners are likely to want to change.

---

# VISUAL EFFECT PHILOSOPHY

The weapons should NOT just spam particles.

Effects should be designed around the weapon's identity.

AEROBREAKER:

* Wind spirals
* Air rings
* Cyan energy
* Tornadoes
* Shockwaves
* Floating debris

VOIDREAVER:

* Black/purple particles
* Dimensional cracks
* Rift portals
* Particles being pulled inward
* Teleport distortion
* Floating blade fragments

SUNFALL:

* Fire
* Sparks
* Heat distortion
* Solar flares
* Burning ground
* Meteor trails
* White-hot explosions

Make effects visually readable during combat.

---

# SOUND DESIGN

Give each weapon unique sounds.

AEROBREAKER:

* Deep wind whoosh
* Heavy impact
* Thunder-like slam
* Tornado sound
* Low atmospheric rumble

VOIDREAVER:

* Deep dimensional hum
* Sharp rift tear
* Teleport sound
* Reverse-like particle sound
* Deep void explosion

SUNFALL:

* Burning energy
* Rising charge sound
* Solar flare
* Heavy explosion
* Meteor impact
* Deep supernova boom

Use custom sounds where possible.

---

# IMPORTANT QUALITY REQUIREMENTS

Do NOT create generic weapons.

Do NOT simply:

* Rename a vanilla item
* Apply vanilla enchantments
* Add random particles
* Use a flat texture
* Make the model look like a Minecraft stick with a texture
* Make abilities identical between weapons

Each weapon must have:

1. A unique 3D model.
2. A unique visual identity.
3. Unique mechanics.
4. Unique sounds.
5. Unique progression/interaction.
6. Strong combat feedback.

The final result should feel like a **premium Minecraft SMP legendary weapon pack**: rare, exciting, skill-based, visually spectacular, and powerful without turning the server into an RPG.

Prioritize polished, recognizable 3D models and satisfying combat over excessive particle spam.
Kodari AI
KodariAug 21 at 2:06 am 3
  1. Create the Gradle/Paper plugin foundation and resource-pack metadata.

  2. Add modular weapon, item, cooldown, state, effect, ability, listener, and command classes.

  3. Add configurable SMP-safe weapon mechanics for Aerobreaker, Voidreaver, and Sunfall.

  4. Add custom-model item overrides and optimized 3D model definitions for all three weapons.

  1. Plugin foundation created with Paper 1.21.4, Java 21, XSeries, Lombok, commands, permissions, and configuration.

  2. Added modular weapon architecture for Aerobreaker, Voidreaver, and Sunfall with persistent weapon identification.

  3. Implemented centralized cooldown persistence, heat/corruption/void-mark state, action-bar feedback, configurable abilities, target limits, friendly-fire handling, and SMP-safe defaults.

  4. Added command handling:

    • /legendaryweapon give <player> <weapon>

    • /legendaryweapon reload

    • /legendaryweapon info <weapon>

    • /legendaryweapon test <weapon>

  5. Added Minecraft 1.21.4 item-model overrides and custom 3D model definitions for all three weapons, plus animated texture metadata and custom sound declarations.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
manifest.kod
settings.gradle
Code
26 612
src/main/java/com/kodari/legendaryweapons/LegendaryWeaponsPlugin.java
package com.kodari.legendaryweapons;

import com.kodari.legendaryweapons.ability.AbilityService;
import com.kodari.legendaryweapons.command.LegendaryWeaponCommand;
import com.kodari.legendaryweapons.cooldown.CooldownManager;
import com.kodari.legendaryweapons.listener.WeaponListener;
import com.kodari.legendaryweapons.state.StateManager;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public final class LegendaryWeaponsPlugin extends JavaPlugin {
    private CooldownManager cooldowns;
    private StateManager states;
    private AbilityService abilities;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        cooldowns = new CooldownManager(this);
        states = new StateManager();
        abilities = new AbilityService(this, cooldowns, states);
        WeaponListener listener = new WeaponListener(this, abilities, states);
        Bukkit.getPluginManager().registerEvents(listener, this);
        LegendaryWeaponCommand command = new LegendaryWeaponCommand(this, abilities);
        getCommand("legendaryweapon").setExecutor(command);
        getCommand("legendaryweapon").setTabCompleter(command);
        Bukkit.getScheduler().runTaskTimer(this, listener::sendActionBars, 5L,
                Math.max(1, getConfig().getLong("settings.actionbar-period-ticks", 5L)));
    }

    @Override
    public void onDisable() {
        if (cooldowns != null) cooldowns.save();
    }

    public CooldownManager getCooldowns() { return cooldowns; }
    public StateManager getStates() { return states; }
    public AbilityService getAbilities() { return abilities; }
}