abdullah khalid
📎 1 file 2,580 chars
📄
pasted-code-1791184517883.txt
txt 70 lines
▶
Create a Minecraft Java plugin for **Minecraft 1.21.11 (Paper/Spigot)** that adds a custom White Netherite Armor Set with a custom resource pack.

### 1. Custom Armor Design

* Create a full Netherite armor set with a beautiful white/white-silver theme.
* Add unique textures and details to the helmet, chestplate, leggings, and boots.
* Make the armor look clean, futuristic, powerful, and suitable for PvP.
* Use custom CustomModelData or modern item model components compatible with Minecraft 1.21.11.
* Provide a resource pack containing all custom armor textures.
* Give every armor piece a unique name and custom lore.

### 2. Armor Abilities

**White Netherite Helmet**

* Permanent Water Breathing effect while equipped.
* Strength II effect while equipped.

**White Netherite Chestplate**

* Permanent Resistance III effect while equipped.

**White Netherite Leggings**

* Give the player +10 extra hearts (20 extra health points).
* Permanent Dolphin's Grace effect while equipped.
* Restore the player's normal maximum health when removed.

**White Netherite Boots**

* Permanent Speed III effect while equipped.
* Completely prevent fall damage while equipped.

### 3. Full Armor Set Bonus

* When the player wears all 4 pieces, activate a special full-set bonus.
* Add a white particle aura around the player.
* Display a message: "White Netherite Set Activated!"

### 4. Plugin Commands

* `/whitearmor give ` - Give the complete armor set.
* `/whitearmor helmet ` - Give helmet.
* `/whitearmor chestplate ` - Give chestplate.
* `/whitearmor leggings ` - Give leggings.
* `/whitearmor boots ` - Give boots.
* `/whitearmor reload` - Reload configuration.

### 5. Important Requirements

* Effects must only work while the correct armor piece is equipped.
* Remove custom effects when armor is taken off.
* Prevent extra health from stacking when changing armor.
* Make the plugin compatible with Minecraft 1.21.11.
* Use efficient event handling and avoid lag.
* Include a config.yml to customize effects, armor names, and abilities.
* Include plugin.yml and all required Java source files.
* Make sure the plugin builds into a working `.jar` file.

### 6. Final Deliverables

1. Complete Java plugin source code.
2. Custom white armor resource pack.
3. plugin.yml
4. config.yml
5. Ready-to-use plugin JAR.
6. Installation instructions for a Paper 1.21.11 server.

Make sure everything works correctly and the custom armor textures display properly in-game.
Kodari AI
KodariOct 5 at 7:21 am 1
WhiteNetheriteArmor
Adds a custom white-themed Netherite armor set with unique textures, names, and lore. Each piece grants permanent passive effects while equipped: helmet provides Water Breathing and Strength II, chestplate grants Resistance III, leggings add +10 extra hearts and Dolphin's Grace, boots give Speed III and fall damage immunity. Wearing all four pieces activates a full-set bonus with a white particle aura and activation message. Includes commands to give individual pieces or the complete set, a configurable config.yml for effects and names, and a bundled resource pack with custom armor textures. Effects are dynamically applied and removed based on equipped armor, preventing health stacking and ensuring compatibility with Minecraft 1.21.11 Paper servers.
  1. Create the Gradle project and plugin/config metadata for 1.21.11.

  2. Implement armor items, equipped abilities, set-bonus effects, and /whitearmor commands.

  3. Generate a resource-pack ZIP with custom item art and white armor textures when the plugin starts.

Created the White Netherite plugin with configurable armor names, lore, effects, extra health, fall-damage protection, full-set activation, commands, and resource-pack generation.

  • Commands: /whitearmor give <player>, /whitearmor helmet|chestplate|leggings|boots <player>, and /whitearmor reload. Admin commands require whitearmor.admin (op by default).

  • Resource pack: Generated on the plugin’s first start at plugins/WhiteNetherite/white-netherite-resource-pack.zip. It replaces the vanilla Netherite armor textures, so other Netherite armor will also appear white while the pack is enabled. Make the ZIP available through your server’s resource-pack URL for players to receive it.

  • Install/build: Compile in Kodari using Compile → Compile, then download the build. Install the JAR on the Paper/Spigot server and restart; the plugin will generate the pack ZIP on startup.

abdullah khalid

add speed three

Kodari AI
KodariOct 5 at 7:38 am 1

White Netherite Boots already grant Speed III while equipped: effects.boots.speed is enabled with amplifier 2 (Speed III). The effect is removed when the boots are taken off.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
9 609
src/main/java/com/kodari/whitenetherite/WhiteNetheritePlugin.java
package com.kodari.whitenetherite;

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

import java.io.File;
import java.util.Objects;

public final class WhiteNetheritePlugin extends JavaPlugin {
    private ArmorManager armorManager;
    private NamespacedKey armorPieceKey;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        armorPieceKey = new NamespacedKey(this, "white_armor_piece");
        armorManager = new ArmorManager(this, armorPieceKey);

        Objects.requireNonNull(getCommand("whitearmor")).setExecutor(new WhiteArmorCommand(this, armorManager));
        Bukkit.getPluginManager().registerEvents(new WhiteArmorListener(armorManager), this);
        Bukkit.getScheduler().runTaskTimer(this, armorManager::tick, 0L, 10L);

        File packFile = new File(getDataFolder(), "white-netherite-resource-pack.zip");
        try {
            ResourcePackGenerator.generate(packFile);
            getLogger().info("Generated resource pack: " + packFile.getAbsolutePath());
        } catch (Exception exception) {
            getLogger().severe("Could not generate the White Netherite resource pack: " + exception.getMessage());
        }
    }

    @Override
    public void onDisable() {
        if (armorManager != null) {
            armorManager.shutdown();
        }
    }

    public NamespacedKey getArmorPieceKey() {
        return armorPieceKey;
    }
}