Vincent Nielsen

i need a plugin about weapons, custum weapons like i need a spear that when you pres right click you get lauched up and if you click left right after you can launch like a normal spear forwerd, then i need a mace that when you hit a person ignores thir shield and also strikes them with lightning,

Kodari AI
KodariSep 3 at 3:00 pm 1
WeaponForge
WeaponForge adds custom weapons to Minecraft. A spear launches the player upward on right-click, then propels them forward on subsequent left-click. A mace bypasses shields on hit and summons lightning strikes on targets. Includes crafting recipes, cooldowns, and configurable damage values.
  1. Create the Gradle/Paper plugin project and resource manifest.

  2. Add custom spear items with upward-launch and timed forward projectile behavior.

  3. Add a mace listener that disables shields and calls lightning on hit.

  4. Add /weapons give command support and configurable combat values.

Created the Weaponry Paper plugin.

Features:

  • Storm Spear

    • Right-click launches the player upward.

    • Left-click within the combo window throws a forward projectile.

  • Thunder Mace

    • Disables blocking shields on hit.

    • Strikes the target with lightning.

  • Configurable velocities, damage, cooldowns, and shield disable duration.

  • Command:

    • /weapons give spear

    • /weapons give mace

    • /weapons give both

  • Permission: weaponry.give

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
8 322
src/main/java/com/example/weaponry/WeaponryPlugin.java
package com.example.weaponry;

import org.bukkit.NamespacedKey;
import org.bukkit.plugin.java.JavaPlugin;

public final class WeaponryPlugin extends JavaPlugin {

    private NamespacedKey weaponTypeKey;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        weaponTypeKey = new NamespacedKey(this, "weapon_type");

        getServer().getPluginManager().registerEvents(new WeaponListener(this), this);

        WeaponCommand weaponCommand = new WeaponCommand(this);
        getCommand("weapons").setExecutor(weaponCommand);
        getCommand("weapons").setTabCompleter(weaponCommand);
    }

    public NamespacedKey getWeaponTypeKey() {
        return weaponTypeKey;
    }
}