1modulo_yuji

Make a plugin with a craftable god armor that give effects

Kodari AI
KodariJun 27 at 12:29 am 14
GodArmor
A Minecraft plugin that adds a craftable God Armor set with unique potion effects. Each piece grants powerful effects: Helmet (Night Vision, Water Breathing), Chestplate (Fire Resistance, Resistance), Leggings (Speed II, Haste), Boots (Jump Boost II, Slow Falling). Wearing the full set grants a bonus of Strength II and Regeneration II. All pieces feature max enchantments and a glowing appearance. Includes an admin command to give pieces directly.

Plan:

  1. GodArmorPlugin.java — main class, registers everything, runs effect scheduler

  2. ArmorManager.java — creates items with PDC tags, registers recipes, applies effects

  3. GodArmorListener.java — craft success messages, equip/unequip feedback

  4. GodArmorCommand.java — /godarmor give <player> <piece|all>

  5. plugin.yml, config.yml


Here’s what the plugin includes:

God Armor Pieces & Effects

Piece
Effects
Recipe
🪖 God Helmet
Night Vision + Water Breathing
DDD / DND / ___
🛡️ God Chestplate
Fire Resistance + Resistance
D_D / DND / DDD
👖 God Leggings
Speed II + Haste
DDD / DND / D_D
👞 God Boots
Jump Boost II + Slow Falling
D_D / DND / ___
✨ Full Set Bonus
Strength II + Regeneration II
—

D = Diamond Block, N = Netherite Ingot

All pieces include: Protection V, Unbreaking X, Mending I — plus piece-specific enchants (Fire Protection, Thorns, etc.)

Command: /godarmor give <player> <helmet|chestplate|leggings|boots|all> — permission: godarmor.admin

Kodari can make mistakes. Review important code before using.
Files
src
Code
6 455
src/main/java/com/kodari/godarmor/GodArmorPlugin.java
package com.kodari.godarmor;

import com.kodari.godarmor.command.GodArmorCommand;
import com.kodari.godarmor.listener.GodArmorListener;
import com.kodari.godarmor.manager.ArmorManager;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.scheduler.BukkitRunnable;

public class GodArmorPlugin extends JavaPlugin {

    private ArmorManager armorManager;

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

        this.armorManager = new ArmorManager(this);
        armorManager.registerRecipes();

        getServer().getPluginManager().registerEvents(new GodArmorListener(this, armorManager), this);
        getCommand("godarmor").setExecutor(new GodArmorCommand(this, armorManager));

        int interval = getConfig().getInt("effect-refresh-ticks", 100);

        new BukkitRunnable() {
            @Override
            public void run() {
                for (Player player : getServer().getOnlinePlayers()) {
                    armorManager.applyEffects(player);
                }
            }
        }.runTaskTimer(this, 20L, interval);

        getLogger().info("GodArmor enabled!");
    }

    @Override
    public void onDisable() {
        getLogger().info("GodArmor disabled.");
    }

    public ArmorManager getArmorManager() {
        return armorManager;
    }
}