Rahand Hunar
๐Ÿ“Ž 1 file 5,591 chars
๐Ÿ“„
pasted-code-1788270852200.txt
txt 241 lines
โ–ถ
โš”๏ธ VOID SMP โ€” LEGENDARY WEAPONS PLUGIN

Create a custom Paper plugin for Void SMP, inspired by Altar SMP and fully compatible with Paper 1.21.11.

Add 8 unique Legendary Weapons, each with its own theme, design, lore, passive ability, active ability, particles, sounds, effects, cooldowns, obtaining method, and custom crafting recipe.

๐Ÿ—ก๏ธ LEGENDARY WEAPONS

1. ๐ŸŒ‘ Eclipse โ€” Void

- Base Damage: 9
- Theme: Void / Teleportation / Shadow
- Ability Damage: 6โ€“8
- Uses void energy, teleportation, and shadow attacks.

2. ๐Ÿ”ฅ Inferno โ€” Fire

- Base Damage: 9
- Theme: Fire / Burning / Explosions
- Ability Damage: 5 + Burn
- Burns enemies and launches powerful fire attacks.

3. โ„๏ธ Frostbite โ€” Ice

- Base Damage: 9
- Theme: Ice / Freezing / Slowness
- Ability Damage: 4 + Slow/Freeze
- Slows and freezes enemies while creating ice effects.

4. โšก Stormbringer โ€” Lightning

- Base Damage: 10
- Theme: Lightning / Speed / Storms
- Ability Damage: 8
- Summons lightning and gives the user a temporary speed boost.

5. ๐ŸŒ˜ Nightfall โ€” Shadow

- Base Damage: 9
- Theme: Darkness / Invisibility / Teleportation
- Ability Damage: 7
- Uses invisibility, darkness, teleportation, and shadow damage.

6. ๐ŸŒฟ Verdant โ€” Nature

- Base Damage: 8
- Theme: Vines / Poison / Roots / Regeneration
- Ability Damage: 5 + Poison
- Uses vines, poison, roots, and regeneration.

7. ๐ŸŒŒ Astralis โ€” Cosmic

- Base Damage: 10
- Theme: Cosmic Energy / Gravity / Knockback
- Ability Damage: 8
- Uses cosmic energy, gravity, knockback, and space-like visual effects.

8. โ˜€๏ธ Solstice โ€” Light

- Base Damage: 8
- Theme: Radiance / Healing / Light
- Ability Damage: 6
- Uses radiant attacks, healing, and powerful light effects.

โœจ ABILITY SYSTEM

Every weapon must have a completely unique passive and active ability.

Active abilities can use:

- Right-click
- Left-click
- Sneak + click
- Other configurable interactions

Each ability must have:

- Configurable cooldown
- Clear cooldown messages
- Unique particles
- Unique sounds
- Visual animations
- Status effects where appropriate
- Configurable damage
- Configurable duration
- Configurable radius/range

Abilities must be powerful and exciting while remaining balanced around Netherite Armor + Protection enchantments.

No ability should one-shot a full-health player.

๐Ÿ“œ CUSTOM RECIPES

Every Legendary Weapon must have its own unique custom crafting recipe.

Recipes must be:

- Fully configurable
- Themed around the weapon
- Balanced for Netherite-level progression
- Made using configurable vanilla/custom ingredients
- Able to be enabled/disabled individually
- Reloadable with "/void reload"

Suggested Themes

- ๐ŸŒ‘ Eclipse: End/Void materials
- ๐Ÿ”ฅ Inferno: Nether/Fire materials
- โ„๏ธ Frostbite: Ice materials
- โšก Stormbringer: Lightning/rare materials
- ๐ŸŒ˜ Nightfall: Shadow/End materials
- ๐ŸŒฟ Verdant: Nature/Overworld materials
- ๐ŸŒŒ Astralis: Extremely rare/cosmic materials
- โ˜€๏ธ Solstice: Light/Radiant materials

The plugin must prevent recipe exploits, duplication, and bypassing ingredient requirements.

๐Ÿ’พ WEAPON DATA

Special weapon data must never be lost.

Weapons must keep their:

- Abilities
- Damage
- Lore
- Custom identifiers
- Enchantments
- Properties

when they are:

- Dropped
- Picked up
- Stored in chests
- Moved between inventories
- Placed in containers
- Moved through other supported inventory systems

Prevent duplication and item-data exploits.

๐Ÿ›ก๏ธ BALANCING

Balance all weapons around:

- Netherite Armor
- Protection enchantments
- Multiplayer PvP
- Competitive SMP gameplay

Weapons should feel legendary and powerful, but should not create unavoidable or instant kills.

All damage, cooldowns, effects, durations, ranges, particles, sounds, recipes, and obtaining methods must be configurable.

๐Ÿ”ง ADMIN COMMANDS

Add:

"/void give  "

"/void remove  "

"/void reload"

"/void list"

All commands must have configurable permission requirements.

Example permissions:

"void.admin"

"void.give"

"void.remove"

"void.reload"

"void.list"

โš™๏ธ CONFIGURATION

Make as much as possible configurable through config files, including:

- Weapon damage
- Ability damage
- Cooldowns
- Effect durations
- Effect levels
- Ability ranges
- Ability radius
- Particle types
- Particle amounts
- Particle spread
- Sounds
- Sound volume/pitch
- Messages
- Lore
- Recipes
- Ingredients
- Obtaining methods
- Permissions
- Weapon names
- Weapon descriptions

๐Ÿš€ PERFORMANCE

Optimize the plugin for multiplayer servers.

- Avoid unnecessary repeating tasks.
- Minimize particle spam.
- Avoid excessive entity searches.
- Use efficient cooldown tracking.
- Clean up temporary effects/tasks properly.
- Prevent ability spam.
- Avoid unnecessary calculations every tick.
- Make visual effects configurable so server owners can reduce them if needed.

The plugin should remain stable with multiple players using Legendary Weapons simultaneously.

๐Ÿ”ฎ FUTURE-PROOF DESIGN

Build the weapon system so it is easy to expand for future Void SMP seasons.

The system should make it simple to add:

- New weapons
- New abilities
- New recipes
- New effects
- New seasons
- New weapon tiers
- New configuration options

without needing to completely rewrite the plugin.

๐Ÿ† FINAL GOAL

The finished plugin should feel like a polished, professional Legendary Weapon system for Void SMP, with unique identities for all 8 weapons, satisfying combat abilities, custom recipes, impressive visual/audio effects, strong anti-exploit protection, configurable balancing, and excellent multiplayer performance.

Target: Paper 1.21.11
Kodari AI
KodariSep 1 at 2:00 pm 2
VoidLegendaryWeapons
A comprehensive Paper 1.21.11 plugin adding 8 unique legendary weapons to Void SMP. Each weapon features distinct themes, passive and active abilities with configurable cooldowns, damage, effects, particles, and sounds. Includes custom crafting recipes, anti-exploit protection, persistent weapon data across inventories, and full configuration for balancing around Netherite armor. Admin commands for giving, removing, listing, and reloading weapons with configurable permissions. Optimized for multiplayer performance with efficient cooldown tracking and visual effect management.
  1. Create the Gradle/Paper project metadata and plugin manifest.

  2. Build a config-driven weapon model, item factory, cooldown tracker, and recipe manager.

  3. Implement all eight passive/active abilities with combat-safe effects and configurable visuals.

  4. Add admin commands, reload/list/give/remove handling, and inventory/creative exploit guards.

  5. Add the complete default configuration for weapons, recipes, permissions, messages, and effects.

Implemented the Void SMP legendary weapons plugin for Paper 1.21.x.

  • Added all 8 weapons: Eclipse, Inferno, Frostbite, Stormbringer, Nightfall, Verdant, Astralis, and Solstice.

  • Added configurable:

    • Base and ability damage

    • Cooldowns

    • Ranges, radii, durations, effect levels

    • Particles, sounds, volume, pitch

    • Weapon names, lore, and enchantments

    • Custom crafting recipes

    • Permissions and messages

  • Added unique passive and active abilities for every weapon.

  • Added persistent weapon identifiers using item metadata so weapon data survives drops, pickups, containers, and inventory transfers.

  • Added cooldown tracking and combat-safe ability damage.

  • Added /void give, /void remove, /void reload, and /void list.

  • Added crafting and creative-inventory safeguards.

  • Added Gradle setup targeting Java 21 and Paper 1.21.11.

Rahand Hunar

/download

Kodari AI
KodariSep 1 at 2:18 pm 1

The Void SMP Legendary Weapons plugin project is ready. Use the Download button in the project panel to download it as a ZIP.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
manifest.kod
settings.gradle
Code
13 1,083
src/main/java/com/kodari/voidsmp/VoidSmpPlugin.java
package com.kodari.voidsmp;

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

public class VoidSmpPlugin extends JavaPlugin {
    private WeaponManager weaponManager;
    private CooldownManager cooldownManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        cooldownManager = new CooldownManager();
        weaponManager = new WeaponManager(this);
        Bukkit.getPluginManager().registerEvents(new WeaponListener(this, weaponManager, cooldownManager), this);
        VoidCommand command = new VoidCommand(this, weaponManager);
        getCommand("void").setExecutor(command);
        getCommand("void").setTabCompleter(command);
        getLogger().info("Loaded " + weaponManager.getDefinitions().size() + " legendary weapons.");
    }

    @Override
    public void onDisable() {
        cooldownManager.clear();
    }
}