shaurya050901

⚔️ MYTHIC WEAPONS

👑 King Slayer • +15 Attack Damage • Strength I • 10% Lifesteal 🔒 One-Time Craftable

🔥 Inferno Blade • +16 Attack Damage • Fire Aspect III • Fire Resistance II 🔒 One-Time Craftable

🌌 Void Scythe • +17 Attack Damage • Teleport Dash • +20% PvP Damage 🔒 One-Time Craftable

⚡ Storm Hammer • +18 Attack Damage • Lightning Strike • Knockback III 🔒 One-Time Craftable

🛡 Guardian Shield • 30% Damage Reduction • Resistance II • +4 Hearts 🔒 One-Time Craftable

🐉 Dragon Nose (LEGENDARY) • +20 Attack Damage • Dragon Flame • Dragon Dash • Dragon Roar • +6 Hearts • Strength II • Speed II • Regeneration I • Fire Resistance III • 20% Critical Chance • 15% Lifesteal • Fire & Lava Immunity 🔒 One-Time Craftable

🛡 SECURITY • OP/Admin Only Commands • Normal Players Can't Use Commands • Craft Progress Saved • No Creative/Loot/Villager Obtain • Only Custom Recipe or Admin Give

Kodari AI
KodariAug 3 at 11:34 am 1
MythicWeapons
MythicWeapons is a secure Minecraft custom weapons plugin featuring six one-time craftable weapons: King Slayer, Inferno Blade, Void Scythe, Storm Hammer, Guardian Shield, and the legendary Dragon Nose. Each weapon provides unique combat abilities, passive potion effects, damage modifiers, lifesteal, critical strikes, dashes, lightning, fire immunity, and health bonuses. Crafting progress persists across restarts, while creative, loot, villager, and unauthorized command acquisition is prevented. Only administrators can use give and management commands.
Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
11 854
src/main/java/com/kodari/mythicweapons/MythicWeaponsPlugin.java
package com.kodari.mythicweapons;

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

public class MythicWeaponsPlugin extends JavaPlugin {
    private CraftManager craftManager;
    private WeaponItemFactory itemFactory;

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

        NamespacedKey weaponKey = new NamespacedKey(this, "weapon_type");
        craftManager = new CraftManager(this);
        craftManager.load();

        itemFactory = new WeaponItemFactory(weaponKey);

        RecipeManager recipeManager = new RecipeManager(this, itemFactory);
        recipeManager.registerRecipes();

        WeaponListener listener = new WeaponListener(craftManager, itemFactory);
        getServer().getPluginManager().registerEvents(listener, this);
        Bukkit.getScheduler().runTaskTimer(this, listener::applyPassiveEffects, 20L, 20L);

        PluginCommand command = getCommand("mythicweapons");
        if (command != null) {
            MythicWeaponsCommand executor = new MythicWeaponsCommand(itemFactory);
            command.setExecutor(executor);
            command.setTabCompleter(executor);
        }

        getLogger().info("MythicWeapons enabled with " + WeaponType.values().length + " mythic weapons.");
    }

    @Override
    public void onDisable() {
        if (craftManager != null) {
            craftManager.save();
        }
    }
}