pog__.

create a plugin that creates special variations of existing weapons

Kodari AI
KodariAug 25 at 1:37 am 1
WeaponVariants
WeaponVariants is a Minecraft plugin that introduces special variations of existing weapons. It allows server administrators to define custom weapon variants with unique attributes, such as increased damage, special enchantments, custom lore, and unique display names. Players can obtain these variants through commands or as rare drops from mobs. The plugin provides a configuration file where admins can specify variant properties, including material type, damage multipliers, and custom effects. It also supports permission-based access to ensure only authorized players can use or craft these powerful weapons. The plugin integrates seamlessly with the vanilla game, enhancing gameplay without disrupting balance.

Created SpecialWeapons, a configurable Paper plugin for special weapon variants.

Features:

  • Configurable weapons based on existing materials

  • Custom names, lore, enchantments, sounds, and unbreakable status

  • Hit effects:

    • Ignition

    • Potion effects

    • Lightning strikes

  • Per-weapon attack cooldowns

  • Persistent weapon identification using PersistentDataContainer

  • /specialweapon list

  • /specialweapon give <id> [player]

  • /specialweapon reload

  • Tab completion

  • XSeries compatibility for materials, sounds, enchantments, and potions

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
10 487
src/main/java/com/kodari/specialweapons/SpecialWeaponsPlugin.java
package com.kodari.specialweapons;

import org.bukkit.plugin.java.JavaPlugin;

public final class SpecialWeaponsPlugin extends JavaPlugin {
    private WeaponManager weaponManager;

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

        weaponManager = new WeaponManager(this);
        weaponManager.reload();

        SpecialWeaponCommand command = new SpecialWeaponCommand(this, weaponManager);
        getCommand("specialweapon").setExecutor(command);
        getCommand("specialweapon").setTabCompleter(command);
        getServer().getPluginManager().registerEvents(new WeaponListener(this, weaponManager), this);
    }

    public WeaponManager getWeaponManager() {
        return weaponManager;
    }
}