shayan mc

make a custom weapons plugin that have 2 sword 1 mace 1 bow 1 spear 1 trident in 1.21.11 and paper + give resource pack

Kodari AI
KodariOct 2 at 5:54 pm 1
ArsenalForge
ArsenalForge is a custom weapons plugin for Minecraft 1.21.11 on Paper servers, introducing six unique weapons: two swords, one mace, one bow, one spear, and one trident. Each weapon features custom stats, unique abilities, and special effects. The plugin includes a bundled resource pack with custom models, textures, and item icons. Weapons are obtained through crafting recipes or commands, with configurable damage, attack speed, and enchantment compatibility. Custom abilities include area damage, knockback bursts, piercing shots, and throwable spear mechanics. The plugin integrates seamlessly with Paper's API, providing a complete arsenal experience for players.
  1. Add the Paper 1.21.11 plugin with /weapons give and six tagged weapons.

  2. Implement each weapon’s combat behavior and resource-pack item models.

  3. Add a Gradle task that packages the resource pack as a ZIP.

Created the Paper 1.21.11 plugin with six weapons, /weapons give <player> <weapon>, /weapons list, and combat effects for the Emberblade, Frostfang, mace, bow, spear, and trident.

The resource pack is in src/main/resourcepack; running the Gradle build packages it as build/CustomWeapons-resource-pack.zip. Its item models currently reference vanilla textures.

shayan mc

add some abilitys

Kodari AI
KodariOct 2 at 5:55 pm 1

Added sneak + right-click abilities to all six weapons, with an 8-second cooldown:

  • Emberblade: damages nearby enemies and sets them on fire.

  • Frostfang: damages, slows, and knocks back nearby enemies.

  • Mace: slams nearby enemies with damage and knockback.

  • Tempest Bow: fires a three-arrow volley.

  • Spear: lunges forward and strikes nearby enemies.

  • Tidecaller Trident: surges forward and knocks back nearby enemies.

The weapons’ lore now shows the ability control and cooldown.

shayan mc

ok give download link

Kodari AI
KodariOct 2 at 5:57 pm 1

The resource pack ZIP is generated at build/CustomWeapons-resource-pack.zip when you build the project. I can’t provide a hosted download URL from this chat; download the project and run ./gradlew build to create it.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
21 512
src/main/java/com/kodari/customweapons/CustomWeaponsPlugin.java
package com.kodari.customweapons;

import java.util.Objects;
import org.bukkit.plugin.java.JavaPlugin;

public final class CustomWeaponsPlugin extends JavaPlugin {
    @Override
    public void onEnable() {
        WeaponManager weaponManager = new WeaponManager(this);
        getServer().getPluginManager().registerEvents(new WeaponListener(weaponManager), this);

        WeaponCommand command = new WeaponCommand(weaponManager);
        Objects.requireNonNull(getCommand("weapons")).setExecutor(command);
        getCommand("weapons").setTabCompleter(command);
    }
}