xpextra._33241

Create a simple Minecraft plugin named ZYRO CAPS.

Add a INVENTORY INVENTORY GUI menu where players can select capes.

In the INVENTORY INVENTORY GUI:

Show a 3D player model wearing the Zyrokill skin.

The cape should appear on the player’s back as a preview.

When the player selects a cape, it shows on the back of the player model.

Include these capes: Zombie Horse Cape Copper Cape Yearn Cape Home Cape Menace Cape Eyeblossom Cape Minecraft Experience Cape MCC 15th Year Cape Follower's Cape Purple Heart Cape 15th Anniversary Cape

The plugin should be simple and lightweight.

Kodari AI
KodariMar 28 at 7:01 am 15,056 (v2)

I’ll create a cape selection plugin with an inventory GUI system. Since Minecraft doesn’t support rendering actual 3D models with capes in inventory GUIs, I’ll create a practical system that shows cape options, uses a player head for visual reference, and tracks player selections.

ZyroCaps
A lightweight cape selection system allowing players to choose cosmetic capes through an intuitive inventory GUI. Features eleven unique capes with preview functionality and persistent player selections. The GUI displays cape options with visual indicators and tracks player preferences across sessions.

ZyroCaps plugin created successfully!

Features implemented:

  • Inventory GUI system with 11 selectable capes representing the requested designs

  • Player head preview at the top showing currently selected cape in lore text

  • Cape selection with visual feedback (checkmark for equipped, click prompt for others)

  • Persistent storage saves player cape choices to YAML file

  • Sound effects when selecting capes

  • Clean GUI with glass pane borders and organized layout

Use /capes to open the selection menu. The system tracks which cape each player has selected and displays it on the preview model (player head). While actual 3D cape rendering requires client-side mods, this provides a fully functional selection and tracking system.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
15 612
src/main/java/com/zyrocaps/ZyroCaps.java
package com.zyrocaps;

import com.zyrocaps.cape.CapeManager;
import com.zyrocaps.command.CapesCommand;
import com.zyrocaps.inventory.gui.GUIListener;
import com.zyrocaps.inventory.gui.GUIManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class ZyroCaps extends JavaPlugin {
    private GUIManager guiManager;
    private CapeManager capeManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.guiManager = new GUIManager();
        this.capeManager = new CapeManager(this);
        
        Bukkit.getPluginManager().registerEvents(new GUIListener(guiManager), this);
        
        getCommand("capes").setExecutor(new CapesCommand(this));
        
        getLogger().info("ZyroCaps has been enabled!");
    }
    
    @Override
    public void onDisable() {
        if (capeManager != null) {
            capeManager.saveAllData();
        }
        getLogger().info("ZyroCaps has been disabled!");
    }
}