๐
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
Create the Gradle/Paper project metadata and plugin manifest.
Build a config-driven weapon model, item factory, cooldown tracker, and recipe manager.
Implement all eight passive/active abilities with combat-safe effects and configurable visuals.
Add admin commands, reload/list/give/remove handling, and inventory/creative exploit guards.
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.
/download
The Void SMP Legendary Weapons plugin project is ready. Use the Download button in the project panel to download it as a ZIP.
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();
}
}