phenominal77300

I need you to create a god armor plugin.It is a retexturized netherite set. Their can only be one that can be crafted and onmce one has beeen crafted no kore can be crafted. The helmet will give the player infinte haste 2 if the helmet is equipped and also prot 4 and unreaking level 10. To craft the helmet u must put a diamond helmet in the center of the crafting table with a netherite upgrade to the left ,right ,above and below it. Then a nethrite ingot in all corners.For the chestplate will give infinte strength 2. Also uif equippedd you can become immortal for 4 seconds with a 90 seconds cooldown (through the command /immortal). Also unbreaking level 10. with prot 4. To craft the chestplate it is the same recipe as the helmet but just replace the helmet with a diamond chestplate. For the leggins . It will give you the ability to dash forward up to 20 blocks through the command (/dash) . Also it will have unreaking level 10 and prot 4. To craft its the same as the others just with a diamond leggins in the center instead.And for the Boots it will give the player pernament speed 1 . Also it will have depth strider level 5 enchantment with prot 4 and unreaking level 10. To craft its the same as the others just with a diamond boot in the center instead. Also make sura than no netherite other than th egod armor can be crafted . except tools or weapons just armor pieces

Kodari AI
KodariApr 6 at 9:27 pm 20,361 (v2)
GodArmorPlugin
A unique god armor plugin featuring a custom retextured netherite set where only one of each piece can ever exist on the server. Each piece grants permanent effects: the helmet provides Haste II, the chestplate grants Strength II plus a /immortal command for 4 seconds of invincibility (90s cooldown), the leggings enable a /dash command for a 20-block forward dash, and the boots give Speed I with Depth Strider V. All pieces include Protection IV and Unbreaking X, and vanilla netherite armor smithing is blocked.
  • Plan: GodArmorManager (item creation + recipes), DataManager (persist crafted state), CraftListener (recipe enforcement + smithing block), EffectListener (tick-based armor effects), CombatListener (immortal damage cancel), GodCommand (/immortal + /dash)

  • All god armor pieces identified via PersistentDataContainer, each piece tracked independently so once crafted it can never be crafted again

  • XSeries used for all materials/enchants/effects; immortal/dash cooldowns tracked by UUID maps

The plugin is complete. Here’s a summary of what was built:

  • GodArmorManager registers 4 custom shaped crafting recipes (I U I / U D U / I U I where I=netherite ingot, U=netherite upgrade smithing template, D=diamond piece) and builds each armor item with PDC type tags, custom model data (2001–2004), Prot IV, Unbreaking X, and Depth Strider V on boots

  • DataManager persists crafted state to data.yml — once any piece is crafted it’s permanently flagged and can never be crafted again

  • CraftListener blocks god armor recipes via PrepareItemCraftEvent if already crafted, and intercepts PrepareSmithingEvent to cancel all vanilla netherite armor smithing (helmet/chestplate/leggings/boots) while leaving tools and weapons unaffected

  • EffectListener runs every 20 ticks applying Haste II (helmet), Strength II (chestplate), and Speed I (boots) to players wearing the respective pieces

  • CombatListener cancels all damage events for players currently immortal, with expiry tracked by timestamp

  • GodCommand handles /immortal (4s invincibility, 90s cooldown, requires god chestplate) and /dash (forward velocity burst, 5s cooldown, requires god leggings)

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
10 677
src/main/java/com/godarmor/GodArmorPlugin.java
package com.godarmor;

import com.godarmor.commands.GodCommand;
import com.godarmor.listeners.CombatListener;
import com.godarmor.listeners.CraftListener;
import com.godarmor.listeners.EffectListener;
import com.godarmor.managers.DataManager;
import com.godarmor.managers.GodArmorManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class GodArmorPlugin extends JavaPlugin {

    private GodArmorManager godArmorManager;
    private DataManager dataManager;
    private CombatListener combatListener;

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

        this.dataManager = new DataManager(this);
        this.godArmorManager = new GodArmorManager(this);
        this.combatListener = new CombatListener(this);

        getServer().getPluginManager().registerEvents(new CraftListener(this), this);
        getServer().getPluginManager().registerEvents(new EffectListener(this), this);
        getServer().getPluginManager().registerEvents(combatListener, this);

        GodCommand godCommand = new GodCommand(this);
        getCommand("immortal").setExecutor(godCommand);
        getCommand("dash").setExecutor(godCommand);

        getLogger().info("GodArmorPlugin enabled.");
    }

    @Override
    public void onDisable() {
        if (dataManager != null) {
            dataManager.save();
        }
        getLogger().info("GodArmorPlugin disabled.");
    }
}