xen.dev_xd
📎 1 file 11,313 chars
📄
pasted-code-1784827832942.txt
txt 883 lines
▶
You are a senior Minecraft plugin developer with 10+ years of experience building large-scale Paper plugins.

Create a COMPLETE, PRODUCTION-READY IntelliJ IDEA Gradle project for Minecraft Paper 1.21.11.

=================================================
PROJECT
=================================================

Plugin Name: AnsoWeapon

Java Version:
21

API:
Paper 1.21.11

Build System:
Gradle Kotlin DSL

Package:
com.anso.ansoweapon

Code Style:
Commercial quality
SOLID principles
Clean Architecture
No deprecated API
No TODOs
No placeholder code
Proper JavaDocs
Thread-safe
Memory efficient
Optimized for 300+ players

=================================================
GOAL
=================================================

Create a premium custom weapon framework inspired by modern RPG/PvP servers.

DO NOT copy any existing plugins, textures, models, abilities, code, or assets.

Everything must be completely ORIGINAL.

The plugin should feel like a paid premium plugin.

=================================================
PROJECT STRUCTURE
=================================================

Generate the COMPLETE IntelliJ project including:

settings.gradle.kts

build.gradle.kts

gradle wrapper

plugin.yml

README.md

LICENSE

.gitignore

src/main/java

src/main/resources

EVERY Java class

EVERY manager

EVERY listener

EVERY INVENTORY GUI

EVERY config

Everything must compile successfully.

=================================================
MODULES
=================================================

Weapon Engine

Ability Engine

Combat Engine

Recipe Engine

INVENTORY GUI Engine

Cooldown Engine

Animation Engine

Particle Engine

Sound Engine

Weapon Registry

Config Manager

Data Manager

NBT Manager

Attribute Manager

Command Framework

PlaceholderAPI Expansion

Vault Hook

WorldGuard Hook

MythicMobs Hook

Oraxen Hook

ItemsAdder Hook

ModelEngine Hook

Metrics

Update Checker

Debug System

=================================================
COMMANDS
=================================================

/ansoweapon give  

/ansoweapon recipe

/ansoweapon craftingchange

/ansoweapon preview

/ansoweapon reload

/ansoweapon info 

/ansoweapon list

/ansoweapon stats

/ansoweapon export

/ansoweapon import

/ansoweapon debug

Tab completion required.

Permissions required.

=================================================
WEAPON SYSTEM
=================================================

Each weapon supports

Custom Material

Display Name

Lore

Glow

CustomModelData

Attributes

NBT

Enchantments

Unbreakable

Durability

Passive Ability

Active Ability

Ultimate Ability

Combo System

Kill Counter

Critical Chance

Critical Damage

Armor Penetration

Attack Speed

Reach

Cooldown

Permission

Crafting Recipe

Rarity

Rarity Color

Category

Custom Texture Support

Custom Sounds

Custom Particles

Configurable Icons

Upgradeable Levels

=================================================
RARITIES
=================================================

Common

Uncommon

Rare

Epic

Legendary

Mythic

Ancient

Divine

Celestial

=================================================
ORIGINAL WEAPONS
=================================================

Storm Breaker

Energy Rift

Creates moving electric blade waves.

Blue lightning particles.

Knockback.

Weakness.

10 second cooldown.

--------------------------------------------

Shadow Fang

Shadow Dash

Dash through enemies.

Creates shadow afterimages.

Temporary invisibility.

Critical first hit.

15 second cooldown.

--------------------------------------------

Inferno Blade

Lava Nova

Creates expanding magma rings.

Ignites enemies.

Fire particles.

--------------------------------------------

Frost Reaper

Absolute Zero

Freezes enemies.

Ice spikes.

Snow particles.

Movement reduction.

--------------------------------------------

Thunder Hammer

Storm Collapse

Summons multiple lightning strikes.

Launches enemies.

Electric particles.

Ground shockwave.

--------------------------------------------

Ocean Trident

Tidal Surge

Summons rotating water blades.

Pushes enemies.

Applies Mining Fatigue.

Creates water splash effects.

--------------------------------------------

Nature Scythe

Forest Wrath

Summons roots.

Roots trap enemies.

Leaves.

Flowers.

Green particles.

=================================================
TRUE MACE SYSTEM
=================================================

Create an advanced ORIGINAL mace combat system.

NOT copied from any plugin.

Features

Height damage scaling

Momentum scaling

Heavy attack

Ground slam

Shockwave

Landing combo

Air combo

Perfect landing bonus

Charge attack

Combo counter

Combo finishers

Armor penetration

Shield break chance

Critical slam

Velocity damage

Ground crack particles

Camera shake

Landing sound sequence

Every value configurable.

=================================================
LEGENDARY MACES
=================================================

Titan Mace

Meteor Crash

Player leaps into sky.

Massive ground slam.

Huge expanding shockwave.

Launches nearby mobs.

Creates debris.

--------------------------------------------

Void Crusher

Creates singularity.

Pulls enemies inward.

Explodes.

Black particles.

--------------------------------------------

Earth Shatter

Creates earthquakes.

Stone debris.

Ground cracks.

Knock-up effect.

--------------------------------------------

Celestial Mace

Calls stars.

Stars rain around player.

Holy particles.

--------------------------------------------

Phantom Mace

Phase Shift.

Player becomes untouchable.

Next slam ignores armor.

--------------------------------------------

Dragon Mace

Dragon Breath Storm.

Creates rotating dragon breath tornado.

Huge damage.

=================================================
ABILITY ENGINE
=================================================

Support

Projectile abilities

Beam abilities

Aura abilities

Passive abilities

Ultimate abilities

Summons

Charge abilities

Dash abilities

Blink

Teleport

Chain abilities

Multi-stage abilities

Upgradeable abilities

Ability cooldowns

Mana cost

Energy cost

Custom sounds

Custom particles

Custom animations

Permission requirements

Region blacklist

World blacklist

=================================================
PARTICLE ENGINE
=================================================

Support modern Paper particles.

Dust

Dust Transition

Electric Spark

Flash

Sonic Boom

Dragon Breath

Soul Fire Flame

End Rod

Trial Spawner

Portal

Reverse Portal

Campfire Smoke

Ash

Happy Villager

Cherry Leaves

Totem

Custom particle presets

=================================================
SOUND ENGINE
=================================================

Fully configurable.

Pitch

Volume

Looping

Randomized pitch

Ability sounds

INVENTORY GUI sounds

Combo sounds

Ultimate sounds

=================================================
COMBO ENGINE
=================================================

Support

Light combo

Heavy combo

Air combo

Dash combo

Ultimate combo

Combo timer

Combo finisher

Critical combo

Hit counter

Combo reset

=================================================
CRAFTING SYSTEM
=================================================

MOST IMPORTANT FEATURE

Server owners MUST be able to edit every recipe.

Requirements

Enable recipes

Disable recipes

Shaped recipes

Shapeless recipes

NBT ingredients

Custom ingredients

Recipe categories

Recipe preview

Recipe search

Recipe duplication

Recipe export

Recipe import

Instant reload

Auto save

No restart

Saved inside recipes.yml

=================================================
CRAFTING CHANGE INVENTORY GUI
=================================================

Command

/ansoweapon craftingchange

Must open a premium Admin INVENTORY GUI.

Admins can

Select weapon

Drag ingredients

Edit slots

Save recipe

Delete recipe

Reset recipe

Enable recipe

Disable recipe

Duplicate recipe

Preview recipe

Instantly apply

Automatically save

Reload instantly

=================================================
INVENTORY GUI
=================================================

Premium animated GUIs.

Weapon Browser

Recipe Browser

Recipe Preview

Recipe Editor

Weapon Preview

Admin Panel

Statistics

Search

Pagination

Categories

Animated borders

Custom icons

=================================================
COOLDOWN DISPLAY
=================================================

Support

Action Bar

Boss Bar

XP Bar

Title

Subtitle

Scoreboard

Hotbar

Configurable

=================================================
CONFIG FILES
=================================================

plugin.yml

config.yml

messages.yml

weapons.yml

recipes.yml

abilities.yml

particles.yml

sounds.yml

settings.yml

cooldowns.yml

permissions.yml

INVENTORY GUI.yml

worlds.yml

stats.yml

animations.yml

Everything editable.

No hardcoded values.

=================================================
PLACEHOLDER API
=================================================

Support

%ansoweapon_weapon%

%ansoweapon_cooldown%

%ansoweapon_kills%

%ansoweapon_combo%

%ansoweapon_ultimate%

%ansoweapon_rarity%

=================================================
COMPATIBILITY
=================================================

Paper 1.21.11

Java 21

PlaceholderAPI

Vault

WorldGuard

MythicMobs

ItemsAdder

Oraxen

ModelEngine

Citizens

ProtocolLib

=================================================
PERFORMANCE
=================================================

Support 300+ players.

No lag.

No memory leaks.

No deprecated API.

Async config loading.

Cached weapon registry.

Efficient scheduler usage.

Minimal object allocation.

Optimized particle batching.

=================================================
QUALITY REQUIREMENTS
=================================================

Generate REAL code.

Do NOT skip files.

Do NOT summarize.

Do NOT leave TODO comments.

Do NOT leave placeholder methods.

Generate every Java class completely.

Every class must compile.

Every config must exist.

Every listener must exist.

Every INVENTORY GUI must exist.

Every manager must exist.

Every command must exist.

The final project should look and feel like a commercial premium Paper plugin sold on marketplaces, with clean architecture, excellent performance, and fully configurable original custom weapons and an advanced mace combat system.
Kodari AI
KodariJul 23 at 5:32 pm 29
AnsoWeapon
AnsoWeapon provides a configurable Paper weapon framework for RPG and PvP servers. It registers custom weapons with attributes, rarities, recipes, cooldowns, combat statistics, active abilities, and specialized mace slam mechanics. Administrators manage weapons through commands and inventory menus, reload configuration safely, distribute items, inspect player stats, and edit crafting recipes without restarting the server.
  1. Create the Gradle Paper project and plugin manifest.

  2. Implement the weapon, ability, combat, recipe, data, command, GUI, hook, and diagnostics foundations.

  3. Add fully editable default weapon, ability, recipe, sound, particle, cooldown, and message configurations.

Kodari can make mistakes. Review important code before using.
Files
gradle
src
.gitignore
build.gradle.kts
LICENSE
README.md
settings.gradle.kts
Code
42 1,625
src/main/java/com/anso/ansoweapon/AnsoWeaponPlugin.java
package com.anso.ansoweapon;

import com.anso.ansoweapon.ability.AbilityManager;
import com.anso.ansoweapon.command.AnsoWeaponCommand;
import com.anso.ansoweapon.combat.CombatManager;
import com.anso.ansoweapon.combat.MaceCombatManager;
import com.anso.ansoweapon.config.ConfigManager;
import com.anso.ansoweapon.cooldown.CooldownManager;
import com.anso.ansoweapon.data.DataManager;
import com.anso.ansoweapon.debug.DebugService;
import com.anso.ansoweapon.gui.InventoryGuiManager;
import com.anso.ansoweapon.gui.InventoryGuiListener;
import com.anso.ansoweapon.hook.HookManager;
import com.anso.ansoweapon.listener.WeaponCombatListener;
import com.anso.ansoweapon.metrics.MetricsService;
import com.anso.ansoweapon.nbt.NbtManager;
import com.anso.ansoweapon.recipe.RecipeManager;
import com.anso.ansoweapon.update.UpdateChecker;
import com.anso.ansoweapon.weapon.WeaponRegistry;
import lombok.Getter;
import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public final class AnsoWeaponPlugin extends JavaPlugin {
    private ConfigManager configManager;
    private DebugService debugService;
    private NbtManager nbtManager;
    private WeaponRegistry weaponRegistry;
    private DataManager dataManager;
    private CooldownManager cooldownManager;
    private AbilityManager abilityManager;
    private CombatManager combatManager;
    private MaceCombatManager maceCombatManager;
    private RecipeManager recipeManager;
    private InventoryGuiManager inventoryGuiManager;
    private HookManager hookManager;
    private MetricsService metricsService;
    private UpdateChecker updateChecker;

    @Override
    public void onEnable() {
        this.configManager = new ConfigManager(this);
        this.configManager.load();
        this.debugService = new DebugService(this);
        this.nbtManager = new NbtManager(this);
        this.weaponRegistry = new WeaponRegistry(this);
        this.weaponRegistry.reload();
        this.dataManager = new DataManager(this);
        this.dataManager.load();
        this.cooldownManager = new CooldownManager();
        this.abilityManager = new AbilityManager(this);
        this.combatManager = new CombatManager(this);
        this.maceCombatManager = new MaceCombatManager(this);
        this.recipeManager = new RecipeManager(this);
        this.recipeManager.reload();
        this.inventoryGuiManager = new InventoryGuiManager(this);
        this.hookManager = new HookManager(this);
        this.hookManager.detect();
        this.metricsService = new MetricsService(this);
        this.updateChecker = new UpdateChecker(this);

        getServer().getPluginManager().registerEvents(new WeaponCombatListener(this), this);
        getServer().getPluginManager().registerEvents(new InventoryGuiListener(this.inventoryGuiManager), this);

        PluginCommand command = getCommand("ansoweapon");
        if (command != null) {
            AnsoWeaponCommand executor = new AnsoWeaponCommand(this);
            command.setExecutor(executor);
            command.setTabCompleter(executor);
        }

        this.metricsService.start();
        this.updateChecker.check();
        getLogger().info("AnsoWeapon enabled with " + this.weaponRegistry.size() + " registered weapons.");
    }

    @Override
    public void onDisable() {
        if (this.dataManager != null) {
            this.dataManager.save();
        }
        if (this.cooldownManager != null) {
            this.cooldownManager.clear();
        }
        if (this.inventoryGuiManager != null) {
            this.inventoryGuiManager.close();
        }
    }

    public void reloadPlugin() {
        this.configManager.load();
        this.weaponRegistry.reload();
        this.recipeManager.reload();
    }
}