M
📎 1 file 9,708 chars
📄
pasted-code-1780216859936.txt
txt 642 lines
▶
Create a COMPLETE production-ready Minecraft Paper plugin called CUSTOM FIGHT for Paper 1.21.x using Java 21, Maven, and modern OOP architecture.

IMPORTANT:
This must be a FULLY FUNCTIONAL plugin and FULLY FUNCTIONAL resource pack system.

Do NOT provide placeholders.
Do NOT provide TODOs.
Do NOT leave systems unfinished.
Do NOT provide pseudo-code.

Generate complete source code, complete configuration files, complete resource pack structure, complete model JSON files, and complete plugin architecture.

=================================================
PLUGIN NAME
===========

CUSTOM FIGHT

=================================================
CORE CONCEPT
============

CUSTOM FIGHT is a legendary endgame SMP weapon expansion.

Every weapon must:

* Have a unique custom texture
* Have a unique CustomModelData
* Have a unique right-click ability
* Have custom particles
* Have custom sounds
* Have custom damage
* Have cooldowns
* Have rarity
* Have lore
* Have visual effects
* Feel like a boss-level artifact

No weapon should share abilities.

Every weapon should feel powerful and unique.

=================================================
CUSTOM TEXTURE SYSTEM
=====================

Implement complete CustomModelData support.

Model IDs:

Inferno Blade = 1001
Frost Fang = 1002
Thunder Axe = 1003
Shadow Bow = 1004
Poseidon Trident = 1005
Dragon Spear = 1006
Void Spear = 1007
Earthbreaker Mace = 1008
Warden Mace = 1009
Celestial Blade = 1010

Generate:

* Resource-pack-ready architecture
* Model registration system
* Item registration system
* Easy expansion for future weapons

=================================================
WEAPON 1
========

Name:
Inferno Blade

Type:
Sword

Rarity:
Legendary

Ability:
INFERNAL CATACLYSM

Right Click:

* Creates giant fire tornado
* Pulls enemies inward
* Launches enemies upward
* Burns enemies for 10 seconds
* Flame particles
* Lava crack particles
* Fire sounds
* Custom damage

Cooldown:
35 seconds

=================================================
WEAPON 2
========

Name:
Frost Fang

Type:
Sword

Rarity:
Legendary

Ability:
ABSOLUTE ZERO

Right Click:

* Traps enemies in ice cages
* Slowness
* Weakness
* Ice spikes erupt
* Delayed shatter damage
* Snow particles
* Ice sounds

Cooldown:
30 seconds

=================================================
WEAPON 3
========

Name:
Thunder Axe

Type:
Axe

Rarity:
Legendary

Ability:
WRATH OF ZEUS

Right Click:

* Marks enemies
* Multiple lightning strikes
* Chain lightning
* Thunder effects
* Storm atmosphere

Cooldown:
40 seconds

=================================================
WEAPON 4
========

Name:
Shadow Bow

Type:
Bow

Rarity:
Mythic

Ability:
ECLIPSE BARRAGE

Right Click:

* Fires shadow arrows upward
* Arrows rain down
* Blindness
* Shadow particles
* Dark effects

Cooldown:
35 seconds

=================================================
WEAPON 5
========

Name:
Poseidon Trident

Type:
Trident

Rarity:
Mythic

Ability:
LEVIATHAN'S RAGE

Right Click:

* Giant tidal wave
* Massive knockback
* Water vortex
* Drowning damage
* Water particles

Cooldown:
35 seconds

=================================================
WEAPON 6
========

Name:
Dragon Spear

Type:
Spear

Rarity:
Mythic

Ability:
DRAGON RUSH

Right Click:

* Launches player forward
* Dragon breath trail
* Massive impact explosion
* Dragon roar
* High impact damage

Cooldown:
45 seconds

=================================================
WEAPON 7
========

Name:
Void Spear

Type:
Spear

Rarity:
Mythic

Ability:
BLACK HOLE

Right Click:

* Creates singularity
* Pulls enemies inward
* Repeated void damage
* Teleports player behind target
* Void particles

Cooldown:
50 seconds

=================================================
WEAPON 8
========

Name:
Earthbreaker Mace

Type:
Mace

Rarity:
Divine

Ability:
WORLD SPLITTER

Right Click:

* Ground rupture
* Shockwaves
* Massive knock-up
* Earthquake effect
* Dust particles

Cooldown:
45 seconds

=================================================
WEAPON 9
========

Name:
Warden Mace

Type:
Mace

Rarity:
Divine

Ability:
ANCIENT SCREAM

Right Click:

* Giant sonic boom
* Ignores armor
* Darkness effect
* Warden particles
* Warden sounds

Cooldown:
55 seconds

=================================================
WEAPON 10
=========

Name:
Celestial Blade

Type:
Sword

Rarity:
Divine

Ability:
JUDGMENT OF THE STARS

Right Click:

* Meteors fall from sky
* Multiple impact zones
* Massive particle display
* Celestial explosion
* High area damage

Cooldown:
60 seconds

=================================================
ONE-TIME CRAFTING SYSTEM
========================

Every legendary weapon:

* Craftable once per player
* Saved by UUID
* Permanent storage
* Cannot be crafted twice

Message:

"You have already forged this legendary weapon."

=================================================
SOULBOUND SYSTEM
================

When crafted:

* Weapon binds to crafter

Other players:

* Cannot use abilities
* Cannot activate powers
* Cannot bypass ownership

Message:

"This weapon rejects your soul."

=================================================
LEGENDARY BROADCASTS
====================

Broadcast globally:

CUSTOM FIGHT » Player has forged the legendary WeaponName!

=================================================
RECIPE SYSTEM
=============

Create difficult endgame recipes using:

* Dragon Egg
* Nether Star
* Ancient Debris
* Dragon Breath
* Echo Shard
* Heart of the Sea
* Trident
* Netherite Gear

Create:

recipes.yml

All recipes configurable.

=================================================
PROVIDE RECIPE COMMAND
======================

Command:

/providerecipe

Function:

* Gives all online players a written book

Book contains:

* Every recipe
* Every weapon
* Every ability
* Every cooldown
* Every rarity

Title:

CUSTOM FIGHT Recipes

=================================================
ADMIN COMMANDS
==============

/customfight give  
/customfight reload
/customfight crafted
/customfight resetplayer 
/providerecipe

=================================================
INVENTORY GUI SYSTEM
==========

Create:

* Weapon Viewer INVENTORY GUI
* Weapon Information INVENTORY GUI
* Crafted Weapons INVENTORY GUI
* Admin Give INVENTORY GUI
* Collection INVENTORY GUI

=================================================
VISUAL SYSTEMS
==============

Implement:

* BossBar cooldown display
* ActionBar cooldown display
* Particle engine
* Sound engine
* Ability animations
* Damage indicators
* Rarity colors

=================================================
RARITY SYSTEM
=============

Legendary
Mythic
Divine

Each rarity:

* Unique colors
* Unique lore
* Unique presentation

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

config.yml
weapons.yml
recipes.yml
messages.yml

Everything configurable.

=================================================
OPERATOR BYPASS SYSTEM
======================

Players who are OP or have:

customfight.bypass

must bypass:

* Cooldowns
* Soulbound checks
* One-time crafting restrictions

Unlimited usage.

Config:

bypass:
op-bypass: true
permission-bypass: customfight.bypass

=================================================
PERMISSIONS
===========

customfight.admin
customfight.give
customfight.reload
customfight.resetplayer
customfight.bypass

=================================================
RESOURCE PACK REQUIREMENTS
==========================

Generate FULL resource pack architecture.

Create:

assets/
└── minecraft/
├── models/
│   └── item/
└── textures/
└── item/

Generate:

* pack.mcmeta
* model JSON files
* override JSON files
* CustomModelData mappings
* resource pack metadata

=================================================
TEXTURE THEMES
==============

Inferno Blade

* Obsidian sword
* Lava cracks
* Fire aesthetic

Frost Fang

* Crystal ice sword
* Frozen glow

Thunder Axe

* Storm-forged axe
* Lightning runes

Shadow Bow

* Void bow
* Purple energy

Poseidon Trident

* Ocean trident
* Water glow

Dragon Spear

* Dragon scale spear
* Ancient dragon core

Void Spear

* Void-infused spear
* Portal energy

Earthbreaker Mace

* Titan stone mace
* Cracked earth

Warden Mace

* Deep dark mace
* Sculk energy

Celestial Blade

* Cosmic sword
* Galaxy theme

=================================================
AUTO RESOURCE PACK SUPPORT
==========================

Config:

resource-pack:
enabled: true
url: "RESOURCE_PACK_URL"
sha1: "RESOURCE_PACK_HASH"

When enabled:

* Prompt players to download
* Load custom textures
* Plugin works even if declined

=================================================
TECHNICAL REQUIREMENTS
======================

* Java 21
* Maven
* Paper API
* Clean OOP
* Production-ready
* SMP optimized
* Full source code
* Full pom.xml
* Full plugin.yml
* Complete implementation
* No placeholders
* No unfinished systems
* Modular design
* Easy future expansion
* Proper data persistence
* Proper config management
* Proper event handling
* Proper cooldown handling
* Multiplayer safe
* Extensive comments explaining architecture
Kodari AI
KodariMay 31 at 8:58 am 93
CustomFight
A legendary endgame SMP weapon expansion featuring 10 unique powerful weapons across Legendary, Mythic, and Divine rarities. Each weapon has custom textures via CustomModelData, devastating right-click abilities, particles, and sounds. Includes a soulbound system, one-time crafting per player with broadcasts, cooldown display via BossBar, admin commands, five interactive inventory GUIs, full resource pack architecture, and configurable YAML-driven recipes.

Now the resource pack architecture:


Here’s the complete project summary:

Architecture Overview

60 files across Java source, configs, and resource pack.

Core Systems

System
Class(es)
Notes
Weapons
Weapon
(abstract) + 10
impl/
subclasses
Each provides
executeAbility()
,
getAbilityLore()
,
getDamage()
Cooldowns
CooldownManager
BossBar live countdown + ActionBar notification, auto-cleanup on logout
Crafted Data
PlayerDataManager
YAML-persisted
crafted_data.yml
, in-memory cache
Recipes
WeaponManager.registerRecipes()
Reads
recipes.yml
→ registers
ShapedRecipe
via XMaterial
Soulbound
Weapon.createSoulboundItem()
/
CraftingListener
Owner UUID stored in item’s
PersistentDataContainer
GUI
5
InventoryGUI
impls
WeaponViewer → WeaponInfo drill-down, Collection, CraftedWeapons, AdminGive

Ability Highlights

  • Inferno Blade — 60-tick fire tornado with pull + mass launch + burn

  • Frost Fang — Instant debuff + expanding ice ring + 2s delayed shatter burst

  • Thunder Axe — Mark all targets → staggered chain lightning strikes

  • Shadow Bow — Blinding eclipse + 7 shadow arrows raining from 25 blocks up

  • Poseidon Trident — Knockback wave proportional to distance + drowning

  • Dragon Spear — Player launch + dragon breath trail + impact explosion

  • Void Spear — 4s singularity pulling/damaging enemies → teleport behind target

  • Earthbreaker Mace — 5 expanding shockwave rings, each launching enemies in wave band

  • Warden Mace — Armor-bypassing direct health reduction + Darkness + Sculk visuals

  • Celestial Blade — 7 staggered meteors with falling flame trails + per-impact AoE

Resource Pack

Add your 16×16 or 32×32 .png textures to resourcepack/assets/minecraft/textures/item/custom/ then zip and host. Update config.yml → resource-pack.url.

Kodari can make mistakes. Review important code before using.
Files
resourcepack
src
pom.xml
Code
60 4,078
src/main/java/com/customfight/CustomFight.java
package com.customfight;

import com.customfight.command.CustomFightCommand;
import com.customfight.command.ProvideRecipeCommand;
import com.customfight.config.ConfigManager;
import com.customfight.cooldown.CooldownManager;
import com.customfight.data.PlayerDataManager;
import com.customfight.inventory.gui.GUIListener;
import com.customfight.inventory.gui.GUIManager;
import com.customfight.listener.CraftingListener;
import com.customfight.listener.ResourcePackListener;
import com.customfight.listener.WeaponListener;
import com.customfight.weapon.WeaponManager;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.plugin.java.JavaPlugin;

import java.io.File;
import java.util.Objects;

/**
 * Main plugin class. Initialises all managers, registers listeners and commands.
 */
public class CustomFight extends JavaPlugin {

    private static CustomFight instance;

    private ConfigManager configManager;
    private WeaponManager weaponManager;
    private CooldownManager cooldownManager;
    private PlayerDataManager playerDataManager;
    private GUIManager guiManager;

    @Override
    public void onEnable() {
        instance = this;

        // Save default resource files
        saveDefaultConfig();
        saveResourceIfAbsent("weapons.yml");
        saveResourceIfAbsent("recipes.yml");
        saveResourceIfAbsent("messages.yml");

        // Initialise managers in dependency order
        configManager    = new ConfigManager(this);
        playerDataManager = new PlayerDataManager(this);
        weaponManager    = new WeaponManager(this);
        cooldownManager  = new CooldownManager(this);
        guiManager       = new GUIManager();

        // Register recipes from config
        weaponManager.registerRecipes();

        // Register listeners
        getServer().getPluginManager().registerEvents(new WeaponListener(this), this);
        getServer().getPluginManager().registerEvents(new CraftingListener(this), this);
        getServer().getPluginManager().registerEvents(new ResourcePackListener(this), this);
        getServer().getPluginManager().registerEvents(new GUIListener(guiManager), this);

        // Register commands
        Objects.requireNonNull(getCommand("customfight")).setExecutor(new CustomFightCommand(this));
        Objects.requireNonNull(getCommand("customfight")).setTabCompleter(new CustomFightCommand(this));
        Objects.requireNonNull(getCommand("providerecipe")).setExecutor(new ProvideRecipeCommand(this));

        getLogger().info("CustomFight v" + getDescription().getVersion() + " enabled successfully!");
        getLogger().info("Loaded " + weaponManager.getAllWeapons().size() + " legendary weapons.");
    }

    @Override
    public void onDisable() {
        if (playerDataManager != null) playerDataManager.saveData();
        if (cooldownManager != null) cooldownManager.shutdown();
        getLogger().info("CustomFight disabled. Player data saved.");
    }

    // ── Getters ───────────────────────────────────────────────────────────────

    public static CustomFight getInstance() { return instance; }
    public ConfigManager getConfigManager()       { return configManager; }
    public WeaponManager getWeaponManager()       { return weaponManager; }
    public CooldownManager getCooldownManager()   { return cooldownManager; }
    public PlayerDataManager getPlayerDataManager() { return playerDataManager; }
    public GUIManager getGUIManager()             { return guiManager; }

    // Convenience accessor used by weapon classes
    public FileConfiguration getRecipesConfig() {
        File f = new File(getDataFolder(), "recipes.yml");
        return YamlConfiguration.loadConfiguration(f);
    }

    // ── Helpers ───────────────────────────────────────────────────────────────

    private void saveResourceIfAbsent(String name) {
        File file = new File(getDataFolder(), name);
        if (!file.exists()) saveResource(name, false);
    }
}