Desi Dominator
📎 1 file 3,564 chars
📄
pasted-code-1788772633404.txt
txt 138 lines
▶
Create a Minecraft Java Edition **Spigot/Paper plugin for Minecraft 1.20.x** called **CustomWeapons**.

### Main Features

1. **Custom Weapons**
   Add several unique weapons, for example:

   * Shadow Katana
   * Thunder Sword
   * Demon Blade
   * Void Scythe
   * Dragon Sword

2. **One-Hit Kill**

   * Each custom weapon should be extremely powerful.
   * When the player attacks a normal hostile/passive mob with a custom weapon, it should **instantly defeat the mob**.
   * Do not affect players unless explicitly configured.
   * Bosses such as the Ender Dragon and Wither should have configurable damage instead of automatically being killed.

3. **Cool Attack Animations**
   Add visual effects when attacking:

   * Lightning effects
   * Particles
   * Critical-hit particles
   * Smoke/flame effects
   * Sound effects
   * Small screen-shake-like visual effects where possible using Minecraft particles
   * Different effects for each weapon

4. **Weapon Abilities**
   Give each weapon a unique ability:

   **Shadow Katana**

   * Fast attack effect
   * Dark particles
   * Short cooldown

   **Thunder Sword**

   * Lightning strikes the attacked mob
   * Thunder sound
   * Blue/electric-style particles

   **Demon Blade**

   * Creates flame and smoke particles
   * Plays a powerful attack sound

   **Void Scythe**

   * Creates dark/portal-like particles
   * Pulls nearby mobs slightly toward the target before the attack

   **Dragon Sword**

   * Creates flame and dragon-breath-style particles
   * Plays a powerful dragon sound

5. **Crafting**
   Add custom crafting recipes for every weapon.

6. **Custom Names and Lore**
   Each weapon should have:

   * Custom name
   * Colored lore
   * Enchantments where appropriate
   * Unbreakable property
   * A unique PersistentDataContainer identifier so normal Minecraft items cannot accidentally trigger the abilities.

7. **Cooldown System**

   * Each special ability should have a configurable cooldown.
   * Show cooldown messages/action-bar messages to the player.
   * Prevent ability spam.

8. **Commands**
   Add commands such as:
   `/customweapons`
   `/customweapons give  `

   Include tab completion.

9. **Configuration**
   Create a `config.yml` containing:

   * Weapon damage
   * One-hit-kill enabled/disabled
   * Boss damage
   * Ability cooldowns
   * Particle settings
   * Sound settings
   * Whether abilities affect players
   * Whether abilities affect friendly mobs

10. **Compatibility**

* Target **Minecraft Java Edition 1.20.x**
* Use the **Paper/Spigot API**
* Do not use NMS unless absolutely necessary.
* Make the plugin work on both Paper and Spigot where possible.

### Project Structure

Generate the complete project with:

* `plugin.yml`
* `config.yml`
* Main Java class
* Weapon manager
* Event listeners
* Ability system
* Command system
* Tab completer
* Recipe manager
* Utility classes

### Important

Provide **complete compilable Java source code**, not pseudocode.

Use clean object-oriented programming and comments explaining important sections.

Also provide:

1. Folder structure
2. Maven `pom.xml`
3. Exact build instructions
4. How to install the resulting `.jar`
5. All commands
6. All weapon IDs
7. Example `config.yml`

Make sure the plugin does not cause console errors and properly handles null players, invalid commands, missing configuration values, and unloaded entities.
Kodari AI
KodariSep 7 at 9:22 am 3
CustomWeapons
CustomWeapons is a Spigot/Paper plugin for Minecraft 1.20.x that adds five unique, extremely powerful custom weapons: Shadow Katana, Thunder Sword, Demon Blade, Void Scythe, and Dragon Sword. Each weapon features one-hit-kill mechanics against normal mobs (configurable for bosses and players), unique attack animations with particles, lightning, smoke, sound effects, and special abilities like lightning strikes, dark particle bursts, flame effects, void pulls, and dragon breath. The plugin includes a configurable cooldown system with action-bar messages, custom crafting recipes, colored lore, enchantments, unbreakable properties, and persistent data identifiers. It provides commands with tab completion, a config.yml for damage, cooldowns, particle and sound settings, and full compatibility with Paper and Spigot servers.

I’ll create the complete Maven plugin with weapon data, item/PDC handling, combat abilities, cooldowns, recipes, commands, tab completion, configuration, and installation documentation.

Created the complete CustomWeapons Maven plugin project.

Included:

  • Five custom weapons with unique abilities

  • PersistentDataContainer weapon identification

  • Configurable one-hit kills and boss damage

  • Player/friendly-mob targeting settings

  • Weapon-specific particles, sounds, lightning, flames, portals, and mob pulling

  • Per-weapon cooldowns with action-bar messages

  • Custom crafting recipes

  • /customweapons and /cw commands

  • Player/weapon tab completion

  • plugin.yml, config.yml, pom.xml, and README

  • XSeries compatibility layer bundled during Maven packaging

Build with:

Shell
mvn clean package

The resulting file is:

Plain Text
target/customweapons-1.0.0.jar

Copy it into the server’s plugins folder and run Paper or Spigot 1.20.x with Java 17+.

Desi Dominator

give me plugin.jar file everything in one file

📎 1 file 3,192 chars
📄
pasted-code-1788772945800.txt
txt 84 lines
▶


    4.0.0

    com.kodari
    customweapons
    1.0.0
    jar

    
        17
        UTF-8
    

    
        
            papermc
            https://repo.papermc.io/repository/maven-public/
        
        
            sonatype-oss
            https://oss.sonatype.org/content/repositories/snapshots/
        
    

    
        
            io.papermc.paper
            paper-api
            1.20.6-R0.1-SNAPSHOT
            provided
        
        
            com.github.cryptomorin
            XSeries
            11.2.0.1
        
    

    
        
            
                src/main/resources
                false
            
        
        
            
                org.apache.maven.plugins
                maven-compiler-plugin
                3.13.0
                
                    17
                
            
            
                org.apache.maven.plugins
                maven-dependency-plugin
                3.7.0
                
                    
                        include-xseries
                        process-classes
                        
                            unpack
                        
                        
                            
                                
                                    com.github.cryptomorin
                                    XSeries
                                    11.2.0.1
                                    ${project.build.outputDirectory}
                                
                            
                        
                    
                
            
        
    
Kodari AI
KodariSep 7 at 9:26 am 1
  1. Configure the Maven build to output exactly plugin.jar with dependencies included.

  2. Provide the single-file build/install command; the compiled binary must be produced by Maven on your machine or CI.

Configured the project to build the final file as:

Plain Text
target/plugin.jar

Build it with Java 17 and Maven:

Shell
mvn clean package

Then install it:

Shell
cp target/plugin.jar /path/to/server/plugins/

Restart the server. The resulting plugin.jar contains the plugin classes, resources, and XSeries dependency in one file.

I can’t directly attach a compiled binary from this workspace, but the project is configured to produce the requested single JAR.

Kodari can make mistakes. Review important code before using.
Files
src
pom.xml
README.md
Code
14 862
src/main/java/com/kodari/customweapons/CustomWeaponsPlugin.java
package com.kodari.customweapons;

import com.kodari.customweapons.ability.AbilityManager;
import com.kodari.customweapons.command.CustomWeaponsCommand;
import com.kodari.customweapons.command.CustomWeaponsTabCompleter;
import com.kodari.customweapons.listener.CombatListener;
import com.kodari.customweapons.recipe.RecipeManager;
import com.kodari.customweapons.util.CooldownManager;
import com.kodari.customweapons.weapon.WeaponManager;
import org.bukkit.Bukkit;
import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;

public final class CustomWeaponsPlugin extends JavaPlugin {
    private WeaponManager weaponManager;
    private CooldownManager cooldownManager;
    private AbilityManager abilityManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();

        this.weaponManager = new WeaponManager(this);
        this.cooldownManager = new CooldownManager();
        this.abilityManager = new AbilityManager(this, cooldownManager);

        Bukkit.getPluginManager().registerEvents(new CombatListener(this), this);
        new RecipeManager(this, weaponManager).registerRecipes();

        PluginCommand command = getCommand("customweapons");
        if (command == null) {
            getLogger().severe("The customweapons command is missing from plugin.yml.");
            return;
        }
        command.setExecutor(new CustomWeaponsCommand(this));
        command.setTabCompleter(new CustomWeaponsTabCompleter(this));
    }

    public WeaponManager getWeaponManager() {
        return weaponManager;
    }

    public CooldownManager getCooldownManager() {
        return cooldownManager;
    }

    public AbilityManager getAbilityManager() {
        return abilityManager;
    }
}