White Like

Create a unique Minecraft SMP Card Plugin featuring 15 different collectible cards, with each card having its own unique power and ability. Make the card system balanced, fun, and competitive, with different rarities, cooldowns, special effects, and unique abilities for every card. Players should be able to collect, use, trade, and upgrade cards.

Kodari AI
KodariSep 3 at 3:50 pm 3
CardCollectorSMP
A competitive SMP card plugin featuring 15 unique collectible cards across multiple rarities. Players collect cards through gameplay, trade them with others, and activate powerful abilities with cooldowns. Each card has distinct effects like teleportation, strength boosts, healing, or environmental manipulation. Includes an upgrade system to enhance card power levels, a GUI-based collection viewer, and balanced rarity distribution for fair progression. Cards integrate seamlessly with survival gameplay, offering strategic advantages while maintaining competitive fairness through cooldown management and resource costs.
  1. Create the Gradle/plugin foundation and resource configuration.

  2. Add the 15-card catalog, rarities, persistent collections, cooldowns, upgrades, trading, and ability engine.

  3. Add /cards commands and a clickable collection GUI.

  4. Register listeners and wire all services through the plugin entrypoint.

Created the CardSMP plugin from scratch with:

  • 15 collectible cards across Common, Uncommon, Rare, Epic, and Legendary rarities.

  • Unique abilities including teleportation, lightning, regeneration, stealth, durability repair, AoE buffs/debuffs, fire effects, and defensive shields.

  • Weighted random card collection with configurable cooldowns.

  • Persistent YAML storage for card counts and upgrade levels.

  • Three-level card upgrades requiring three duplicate cards.

  • Player-to-player card trading.

  • Admin card grants through /cards give.

  • /cards collection GUI with left-click activation and right-click upgrades.

  • Commands for collecting, listing, using, upgrading, trading, inspecting, and giving cards.

  • XSeries-based materials, sounds, particles, and potion effects.

  • Plugin metadata, Gradle setup, and configuration files.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
14 885
src/main/java/com/kodari/cardsmp/CardSmpPlugin.java
package com.kodari.cardsmp;

import com.kodari.cardsmp.cards.CardManager;
import com.kodari.cardsmp.command.CardCommand;
import com.kodari.cardsmp.data.CardStorage;
import com.kodari.cardsmp.gui.CardMenu;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public final class CardSmpPlugin extends JavaPlugin {
    private CardManager cardManager;
    private CardMenu cardMenu;

    @Override
    public void onEnable() {
        CardStorage storage = new CardStorage(this);
        this.cardManager = new CardManager(this, storage);
        this.cardMenu = new CardMenu(this, cardManager);

        CardCommand command = new CardCommand(this, cardManager, cardMenu);
        getCommand("cards").setExecutor(command);
        getCommand("cards").setTabCompleter(command);
        Bukkit.getPluginManager().registerEvents(cardMenu, this);
    }

    @Override
    public void onDisable() {
        if (cardManager != null) {
            cardManager.saveAll();
        }
    }

    public CardManager getCardManager() {
        return cardManager;
    }
}