nazking07
📎 1 file 1,537 chars
📄
pasted-code-1776892312327.txt
txt 45 lines
▶
Create a Minecraft plugin for Paper 1.21.1 where players can use the command /armor to receive a full set of custom Netherite Armor with unique abilities.


General Requirements:
All armor pieces must be unbreakable
All armor must have Protection X (Level 10)
Each armor piece must have a custom name
Each armor piece must display full ability details in item lore
If any armor piece is removed, its ability must be disabled immediately
All effects must work continuously while wearing the armor
Health boosts must not stack incorrectly

Helmet — PRIDE HELMET
Grants unlimited Fire Resistance
Grants +4 extra hearts (8 health)


Chestplate — PRIDE CHESTPLATE
Grants +4 extra hearts (8 health)
Gives Strength effect permanently
Special Ability (Sonic Beam):
When player holds shift AND right-clicks (Shift + Right Click):
Fires a Sonic Beam attack
Targets the player in front
Deals 2 hearts (4 damage)
Plays a Warden Sonic Boom sound
Has a 20-second cooldown per player
Animation Requirements:
A visible beam animation should travel from player to target
Use particles (e.g., Sonic/Warden-style particles, blue/white theme) to simulate the beam
Beam should move forward smoothly (step-by-step particle spawning)
Optional: slight screen shake / knockback effect on target
Optional: add trail effect or expanding wave for better visuals


Leggings — PRIDE LEGGINGS
Grants +4 extra hearts
Gives Speed effect permanently

Boots — PRIDE BOOTS
Grants +2 extra hearts
Completely removes fall damage


Kodari AI
KodariApr 22 at 9:17 pm 32,610 (v2)

I’ll create a custom armor plugin with special abilities and a sonic beam attack.

PrideArmor
A custom armor system that provides players with unbreakable netherite armor pieces featuring unique abilities. Each piece grants health boosts, permanent potion effects, and special powers including fire resistance, strength, speed, fall damage immunity, and a devastating sonic beam attack with particle animations and cooldown management.

Let me build this plugin with proper class structure and XSeries integration for cross-version compatibility.

I need to fix several typos and formatting issues in the code I just created.

PrideArmor plugin created with full custom netherite armor set featuring health boosts, permanent effects, fall damage immunity, and an animated sonic beam attack with particles and cooldown system.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
9 576
src/main/java/com/example/pridearmor/PrideArmor.java
package com.example.pridearmor;

import com.example.pridearmor.ability.AbilityManager;
import com.example.pridearmor.ability.SonicBeamAbility;
import com.example.pridearmor.command.ArmorCommand;
import com.example.pridearmor.data.PlayerData;
import com.example.pridearmor.listener.ArmorListener;
import com.example.pridearmor.manager.ArmorManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

import java.util.HashMap;
import java.util.Map;
import java.util.UUID;

@Getter
public class PrideArmor extends JavaPlugin {
    private ArmorManager armorManager;
    private AbilityManager abilityManager;
    private SonicBeamAbility sonicBeamAbility;
    private Map<UUID, PlayerData> playerDataMap;

    @Override
    public void onEnable() {
        this.playerDataMap = new HashMap<>();
        this.armorManager = new ArmorManager();
        this.sonicBeamAbility = new SonicBeamAbility(this);
        this.abilityManager = new AbilityManager(this);

        getCommand("armor").setExecutor(new ArmorCommand(this));
        getServer().getPluginManager().registerEvents(new ArmorListener(this), this);

        getServer().getScheduler().runTaskTimer(this, () -> {
            getServer().getOnlinePlayers().forEach(player -> {
                this.abilityManager.checkAndApplyAbilities(player);
            });
        }, 0L, 20L);
        
        getLogger().info("PrideArmor has been enabled!");
    }
    
    @Override
    public void onDisable() {
        getLogger().info("PrideArmor has been disabled!");
    }
    
    public PlayerData getPlayerData(UUID uuid) {
        return this.playerDataMap.computeIfAbsent(uuid, k -> new PlayerData(uuid));
    }
}