Asif Raza

Mancraft custom wevpon plugin and texcer pack

Kodari AI
KodariSep 12 at 1:17 am 1
CustomWeaponForge
A Minecraft plugin that introduces a fully customizable weapon crafting system with an integrated resource pack. Players forge unique weapons by combining materials, enchantments, and cosmetic attributes through an intuitive GUI. The plugin generates custom item models, textures, and particle effects via a bundled resource pack, allowing for visually distinct weapons with unique stats. Features include weapon rarity tiers, upgrade paths, durability mechanics, and PvP balance adjustments. The system supports configurable crafting recipes, material requirements, and special abilities triggered on hit. Players can name, reforge, and enchant their weapons through interactive menus. The resource pack automatically applies custom 3D models and animations, enhancing the visual experience without requiring manual installation.
  1. Create a Paper/Gradle Mancraft weapons plugin with a craftable Stormblade item, combat bonus, and lightning ability.

  2. Add admin command/configuration for giving the weapon and tuning its behavior.

  3. Add a ready-to-place resource-pack folder with the custom-model-data override and texture-pack instructions.

Created the Mancraft custom weapon plugin and resource pack.

  • Added Stormblade weapon with:

    • Custom name/lore

    • Custom model data

    • Bonus melee damage

    • Right-click lightning ability

    • Configurable cooldown and range

  • Added commands:

    • /mw give <player> stormblade

    • /mw reload

  • Added permissions:

    • mancraft.admin

  • Added configurable settings in config.yml.

  • Added a ready-to-zip resource pack using custom model data 1001.

  • Added Gradle/Paper project setup for Java 17 and Paper 1.20.4.

Kodari can make mistakes. Review important code before using.
Files
resource-pack
src
build.gradle
settings.gradle
Code
12 361
src/main/java/com/mancraft/weapons/MancraftWeaponsPlugin.java
package com.mancraft.weapons;

import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;

public final class MancraftWeaponsPlugin extends JavaPlugin {

    private WeaponManager weaponManager;

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

        weaponManager = new WeaponManager(this);
        getServer().getPluginManager().registerEvents(new WeaponListener(this, weaponManager), this);

        PluginCommand command = getCommand("mancrafthweapons");
        if (command != null) {
            MancraftWeaponsCommand commandHandler = new MancraftWeaponsCommand(this, weaponManager);
            command.setExecutor(commandHandler);
            command.setTabCompleter(commandHandler);
        }
    }

    public void reloadPluginConfig() {
        reloadConfig();
        weaponManager.reload();
    }
}