tiger2m

Create a complete Minecraft plugin (Paper/Spigot API for version 1.20+) that adds custom weapons, tools, and a full armor set with unique attributes, custom textures/models (via CustomModelData), and special abilities.

Deliverables:

  1. Complete Java code organized with clean OOP structure:

- Main class (CustomGearPlugin) handling registration and setup. - Separate manager or enum classes defining custom item stats, names, lore, and CustomModelData IDs. - Event listener classes handling custom right-click abilities and combat effects. - An admin command (/customgear give <player> <item_id>) with tab completion.

  1. plugin.yml configuration.
  2. Clean, documented code with no deprecated methods.

---

Custom Items to Include:

  1. Custom Weapons & Tools:

- Sword: High attack speed, bonus critical damage. Right-click ability: short forward dash with a cooldown. - Battleaxe: High burst damage, disables shields longer, minor cleave damage to nearby enemies. - Pickaxe: Enhanced mining speed, right-click ability: 3x3 block mining burst on a cooldown. - Spear: Extended reach/hit range, right-click ability: thrust attack that pierces through a line of targets. - Trident: Riptide/lightning effects on hit, right-click to throw with auto-return/recall mechanics. - Mace: Heavy, slow blunt weapon with an AoE knockback smash when attacking from above or landing a critical hit.

  1. Custom Armor Set (Helmet, Chestplate, Leggings, Boots):

- Netherite-tier base defense with custom display names and lore. - Set Bonus: When a player wears all 4 pieces, grant permanent Resistance I, Speed I, and custom particle effects around the player.

---

Requirements:

  • Use PersistentDataContainer (PDC) or NBT tags to uniquely identify custom items (never rely solely on display names).
  • Add configurable cooldowns (in seconds) for all activated abilities using a HashMap/UUID cooldown system.
  • Include visual and sound effects (e.g., Sound.ENTITY_PLAYER_ATTACK_CRIT, Particle.SWEEP_ATTACK) on ability triggers.
  • Ensure all items have assigned CustomModelData integer placeholders (e.g., 10001–10010) for resource pack support.
Kodari AI
KodariNov 11 at 10:23 am 1
CustomGearPlugin
CustomGearPlugin is a comprehensive Paper/Spigot plugin for Minecraft 1.20+ that introduces a full arsenal of custom weapons, tools, and a complete armor set. It features six unique weapons including a dash-sword, cleaving battleaxe, 3x3 mining pickaxe, piercing spear, lightning trident, and AoE mace, each with distinct abilities and cooldowns. The plugin includes a netherite-tier armor set with a permanent Resistance and Speed bonus when all four pieces are worn, complete with particle effects. All items are identified via PersistentDataContainer tags, feature CustomModelData placeholders for resource pack support, and are distributed through an admin command with tab completion. The system uses a clean OOP architecture with managers, event listeners, and configurable cooldown tracking.
  1. Add the item definitions, PDC-backed item factory, and plugin setup.

  2. Implement ability/combat handlers, cooldowns, trident recall, and armor-set effects.

  3. Add the admin command, tab completion, plugin.yml, and default config.

Implemented the CustomGear plugin with all 10 PDC-identified items, ability cooldowns, combat effects, trident recall, armor-set bonuses, and /customgear give <player> <item_id> with tab completion. CustomModelData IDs 10001–10010 are assigned; the resource-pack model and texture assets still need to be mapped to those IDs. Kodari Studio is available if enabled in project settings or at https://kodari.ai/settings?tab=features.

tiger2m

Add only /customgear cmd is se ek menu open hoga baha sare gear hoga whith models

Kodari AI
KodariNov 11 at 10:28 am 1
  • Replace /customgear give ... with a no-argument menu command.

  • Show all 10 custom-model gear items in the menu; clicking one gives it to the admin.

  • Register click/drag protection and update command metadata.

/customgear ab menu kholta hai. Isme saare 10 gear unke CustomModelData IDs ke saath hain; item par click karke gear milta hai. Command customgear.admin permission ke liye restricted hai.

Actual custom model appearance ke liye resource pack mein IDs 10001–10010 map hone chahiye. Kodari Studio is project mein disabled hai; ise project Settings → Generation se enable kar sakte hain.

tiger2m

Menu nhi aa rha h itemader ki traha menu open hoga fix it

Kodari AI
KodariNov 11 at 12:24 pm 1
  • /customgear was blocked for players without customgear.admin.

  • Remove that permission gate so the command opens the gear inventory directly.

  • Keep the existing model-bearing items and menu click protection unchanged.

customgear.admin permission check hata diya—ab koi bhi player /customgear chalakar gear menu khol sakta hai. Menu ke model wale items aur click protection waise hi rahenge.

Kodari can make mistakes. Review important code before using.
Files
src
Code
11 789
src/main/java/com/kodari/customgear/CustomGearPlugin.java
package com.kodari.customgear;

import com.kodari.customgear.command.CustomGearCommand;
import com.kodari.customgear.gui.CustomGearMenuListener;
import com.kodari.customgear.items.CustomGearItemFactory;
import com.kodari.customgear.listener.GearListener;
import com.kodari.customgear.manager.AbilityManager;
import com.kodari.customgear.manager.ArmorSetManager;
import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;

public final class CustomGearPlugin extends JavaPlugin {
    private CustomGearItemFactory itemFactory;
    private AbilityManager abilityManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        itemFactory = new CustomGearItemFactory(this);
        abilityManager = new AbilityManager(this, itemFactory);

        getServer().getPluginManager().registerEvents(new GearListener(this, itemFactory, abilityManager), this);
        getServer().getPluginManager().registerEvents(new CustomGearMenuListener(itemFactory), this);
        new ArmorSetManager(this, itemFactory);

        PluginCommand command = getCommand("customgear");
        if (command != null) {
            CustomGearCommand executor = new CustomGearCommand(itemFactory);
            command.setExecutor(executor);
        }
    }

    public CustomGearItemFactory getItemFactory() {
        return itemFactory;
    }
}