TBNRmisstry

Make this paper 26.2 plugin https://youtu.be/m3OngAOq5vs?is=AqWPl46wbq536_z-

Kodari AI
KodariSep 1 at 4:39 pm 2
BossArena
BossArena is a Paper 26.2 plugin that creates epic boss battles with custom bosses, arenas, and rewards. Players can start boss fights via commands or GUI, with configurable health, damage, abilities, and loot tables. The plugin features custom model data integration for a resource pack, allowing unique boss skins and custom items. Includes arena selection, boss spawning, phase-based combat, particle effects, and cooldown management. Supports multiple bosses with distinct attack patterns, minion spawning, and enrage mechanics. Rewards include custom items with model data, currency, and experience. Fully configurable via YAML files for boss stats, arenas, and rewards.

I’ll build a self-contained collectible-card plugin for Paper 26.2:

  1. Set up the Gradle project and Paper plugin metadata.

  2. Add configurable card definitions, rarities, pack settings, and custom model-data values.

  3. Implement card registry, item/PDC handling, collection persistence, and weighted pack opening.

  4. Add /cards commands, collection GUI, and right-click pack interactions.

Created a Paper 26.2 StrongestCards plugin inspired by the linked “Minecraft’s Strongest Cards” video.

Features:

  • Configurable collectible cards with rarity, attack, defense, and power.

  • Weighted random card packs.

  • Custom model data for every card and pack.

  • Persistent player collections in players.yml.

  • /cards collection GUI.

  • Right-click card packs to open them.

  • Commands:

    • /cards

    • /cards list

    • /cards pack [amount]

    • /cards info <card-id>

    • /cards give <player> <card-id> [amount]

    • /cards reload

  • Included sample cards ranging from Common to Legendary.

  • Paper API configured for version 26.2.

TBNRmisstry

This is what the plugin is # Deck SMP <:Blood_Rush_Card:1510042737926344765> The Deck SMP is a server that is based off of 20 different cards, these cards are only obtained through crafts that create insane rituals.

<:Villager_Card:1510057930815438918> Villager Card * More absorption hearts from consuming golden apples * Occasionally mends the users armor at random * Permanently lowers villager trades

Upon logging into the server for the very first time, a gui will appear on the players screen. Granting them 5 different skill sets they must choose from to enhance gameplay, an example would be

Heart Skill <:Heart:1383766045159854210> Every 20 hits you heal by 2 hearts*

Wind Skill 🌪️ * No Fall Damage * Permanent Speed 1

This mechanic allows players to have abilities from the beginning of the server rather than needing a card to have custom features.

Cards on deck can only be obtained through custom crafts. These cards and skills allow amazing & unique content to be made on Deck.

Kodari AI
KodariSep 1 at 4:59 pm 5
  1. Rework the existing card plugin into the Deck SMP foundation with 20 configurable cards and ritual-only acquisition.

  2. Add first-login skill selection with Heart and Wind skills, persistent player choices, and skill effects.

  3. Implement the Villager Card effects and custom-model-data item support while preserving the existing /cards collection flow.

  1. Card foundation: added 20 ritual-backed card definitions, unique resource-pack model data, ability metadata, and removed pack/random acquisition.

  2. Ritual acquisition: registered one shaped custom recipe per card and records discovery only when the ritual result is crafted.

  3. Collection/admin flow: updated card details and GUI wording for Deck SMP while retaining permission-gated administrative grants.1. Skill persistence: add a dedicated skills.yml store so first-login state is separate from the card collection schema.

  4. Skill selection UI: add a forced first-login GUI with resource-pack model-data items for Heart and Wind.

  5. Skill gameplay: implement Heart’s twentieth-hit heal, Wind’s permanent Speed I, and fall-damage immunity with join/repeating effect handling.

  1. Villager Card activation: tie the effect to owning the crafted card in the persistent collection.

  2. Villager mechanics: add extra golden-apple absorption, periodic random armor repair, and persistent villager trade discounts.

  3. Resource-pack presentation: include configured card ability lore on the physical custom-model-data card item.

  1. Removed the remaining unused random-card path so no runtime code can distribute cards outside rituals or the explicit admin grant.

  2. Made ritual registration honor rituals.enabled.

  3. Added cleanup for Heart hit counters when players leave.The starter menu is being expanded to the five skill sets described for Deck SMP; Heart and Wind keep the specified mechanics, while three additional configurable starter choices receive distinct passive effects.

Implemented the Deck SMP plugin for Paper 26.2.

  • Added 20 configurable cards in cards.yml.

  • Each card has unique custom model data IDs 13001–13020.

  • Replaced card packs with custom shaped ritual recipes.

  • Cards are recorded in the collection only when crafted through rituals.

  • Added persistent first-login skill selection with five choices:

    • Heart

    • Wind

    • Titan

    • Haste

    • Tide

  • Added custom model data IDs 14001–14005 for skill GUI items.

  • Persisted selected skills in skills.yml.

  • Implemented:

    • Heart: heal two hearts every 20 hits.

    • Wind: permanent Speed I and no fall damage.

    • Titan: permanent Resistance I.

    • Haste: permanent Haste I.

    • Tide: permanent Water Breathing.

  • Implemented Villager Card effects:

    • Extra golden-apple absorption hearts.

    • Random periodic armor mending.

    • Permanent villager trade discounts.

  • Updated /cards, collection GUI, card info, reload handling, permissions, and plugin naming to DeckSMP.

  • Admin card grants remain available through the permission-gated /cards give command as an administrative bypass.

Resource-pack model data is configured in YAML so matching item models and textures can be assigned to the listed IDs.

TBNRmisstry

yo https://github.com/TBNRmisstry/deck.git

Kodari AI
KodariSep 3 at 12:27 am 1

I checked the repository. It contains only:

  • A minimal README.md

  • decksmp.jar_Decompiler.com.zip

There is no original source code or resource-pack files available, so I can’t directly copy its implementation. I’ll keep the plugin as a Paper 26.2 project, use custom model data for every custom card, skill, ritual item, and GUI item, and treat the repository as a reference for the Deck SMP concept.

Send the specific card, ritual, or mechanic you want added next.

TBNRmisstry

i got the pack it over the file limit

Kodari AI
KodariSep 3 at 12:28 am 1

That’s fine. Since the resource pack is over the upload limit, use one of these options:

  1. Upload it to GitHub as a release asset or repository, then send me the public link.

  2. Use Google Drive, Dropbox, or MediaFire and send a public download link.

  3. Upload only the important resource-pack files:

    • pack.mcmeta

    • assets/<namespace>/items/

    • assets/<namespace>/models/

    • assets/<namespace>/textures/

    • Any custom font or sound files

If it is too large for GitHub’s normal file limit, split it into parts or use Git LFS.

I’ll keep everything as a Paper 26.2 plugin and make every custom card, skill, ritual item, and GUI item use the resource pack’s custom model data/item model configuration. Send the link whenever ready.

TBNRmisstry

https://github.com/TBNRmisstry/deck.git

Kodari AI
KodariSep 3 at 5:25 pm 1

Understood. I’ll follow these requirements for every plugin change:

  • Paper 26.2

  • English messages, commands, and configuration

  • Custom resource-pack support

  • Custom model data or item models for all custom cards, skills, ritual items, and GUI items

  • No vanilla-looking custom items unless configured as fallback

I’ll use https://github.com/TBNRmisstry/deck.git as the Deck SMP reference. The repository currently appears to contain the decompiled plugin archive rather than the resource-pack files themselves, so matching the pack exactly will require a publicly downloadable pack archive or its relevant assets files.

TBNRmisstry

https://github.com/TBNRmisstry/deck.git I just updated with the files it a kotlin paper plugin

Kodari AI
KodariSep 4 at 2:33 pm 2

I’ll inspect the updated Kotlin Paper project, then align the existing implementation with it while preserving Paper 26.2 and resource-pack custom item model support.

I checked the updated repository. It now contains the actual Deck SMP implementation.

Important details:

  • The repository contains Kotlin-compiled/decompiled Java, not original .kt source files. The @Metadata and DecksmpKt classes confirm it was built from Kotlin.

  • The real package is me.deck.decksmp.

  • It contains the full card system, including:

    • Card abilities

    • Card equipping and withdrawing

    • Card GUI and card info GUI

    • Challenges

    • Trust system

    • Toggle command

    • Death drops

    • 22 card definitions

  • Cards currently use Material.NETHER_STAR with custom model data values such as 1–23 and 99.

  • The repository’s plugin.yml uses api-version: '1.21', so it will need to be updated for the required Paper 26.2 target.

  • The existing project in the workspace is only a simplified Java implementation and does not yet contain the repository’s full ability system.

I’ll treat the GitHub repository as the source of truth going forward, port the actual Deck SMP behavior into the project, keep it English-only, target Paper 26.2, and preserve custom model-data support for the resource pack.

TBNRmisstry

Keep it 1.21 and change the project files to the ones in the GitHub but make sure it can compile correctly

Kodari AI
KodariSep 4 at 2:41 pm 6
  1. Inspect the current project and the updated GitHub tree to identify the files that must be replaced.

  2. Port the repository implementation into the workspace, retaining Paper 1.21 compatibility and custom-model-data support.

  3. Fix build metadata, plugin descriptors, dependencies, and Kotlin/Java compatibility so the project compiles cleanly.

The repository is a decompiled Kotlin build rather than usable Kotlin source, so copying it verbatim would introduce Kotlin-runtime and decompiler errors. I’m porting its behavior into clean Java under the repository’s me.deck.decksmp package, using the repository’s 22-card names/model IDs and all listed commands, with Paper 1.21 metadata and resource-pack model data preserved.

Updated the project to a clean, compilable Java port of the GitHub Deck SMP plugin.

  • Targeted Paper 1.21.1 with api-version: '1.21'

  • Changed the main class to me.deck.decksmp.Decksmp

  • Added all GitHub commands:

    • /card

    • /cards

    • /cardinfo

    • /withdraw

    • /challenges

    • /resetchallenges

    • /toggle

    • /trust

  • Ported the GitHub card set with matching names and custom model data:

    • Model IDs 1–23

    • Dragon Egg model ID 99

    • Base item: NETHER_STAR

  • Added card equipping, withdrawing, death drops, persistence, toggling, trust storage, challenge GUI, and card abilities.

  • Removed the old simplified com.kodari.strongestcards implementation and obsolete configuration files.

  • Avoided copying the decompiler-generated Kotlin runtime code, which contained invalid/decompiler-only constructs and would not compile reliably.

  • Added plugin.yml with all command registrations and permissions.

  • Configured Java 21, appropriate for Paper 1.21.

TBNRmisstry

Make the recipes for each card given upon joining aka unlocked the recipe In the recipe book

Kodari AI
KodariSep 4 at 2:45 pm 1
  1. Update the project’s Paper target and compatibility metadata to Paper 26.2.

  2. Add one namespaced crafting recipe per card using the existing custom model-data items.

  3. Unlock all card recipes for players when they join, and register the recipes safely during plugin startup.

Implemented card recipe unlocking.

  • Added a unique crafting recipe for every card.

  • Recipes produce the existing custom-model-data card items.

  • Registered all recipes during plugin startup.

  • Players automatically discover every card recipe when they join.

  • Recipes use namespaced keys such as decksmp:card_netherite.

  • Kept the project on the valid Paper 1.21 API target so it remains compilable.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
17 1,105
src/main/java/me/deck/decksmp/Decksmp.java
package me.deck.decksmp;

import java.util.LinkedHashMap;
import java.util.Map;
import java.util.UUID;
import org.bukkit.configuration.ConfigurationSection;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.Material;
import org.bukkit.NamespacedKey;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.ItemSpawnEvent;
import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.entity.Item;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.ShapedRecipe;
import org.bukkit.plugin.java.JavaPlugin;

public final class Decksmp extends JavaPlugin implements Listener {
    public static Decksmp instance;
    private static boolean abilitiesEnabled = true;
    private final java.util.Set<NamespacedKey> cardRecipeKeys = new java.util.LinkedHashSet<>();

    @Override
    public void onEnable() {
        instance = this;
        saveDefaultConfig();
        loadCardVariables();
        registerCardRecipes();

        getServer().getPluginManager().registerEvents(this, this);
        getServer().getPluginManager().registerEvents(new CardUseListener(this), this);
        getServer().getPluginManager().registerEvents(new CardGUIListener(this), this);
        CardInfoGUICommand cardInfo = new CardInfoGUICommand(this);
        getServer().getPluginManager().registerEvents(cardInfo, this);
        getServer().getPluginManager().registerEvents(new CardEventHandler(this), this);
        getServer().getPluginManager().registerEvents(new WithdrawCommand.CardDropOnDeath(this), this);

        register("card", new CardCommand());
        register("withdraw", new WithdrawCommand());
        register("cards", new CardGUICommand());
        register("cardinfo", cardInfo);
        ChallengesCommand challenges = new ChallengesCommand(this);
        register("challenges", challenges);
        register("resetchallenges", challenges);
        register("toggle", new ToggleCommand());
        TrustCommand trust = new TrustCommand(this);
        register("trust", trust);
        getLogger().info("Deck SMP plugin has started!");
    }

    private void register(String name, org.bukkit.command.CommandExecutor executor) {
        if (getCommand(name) != null) {
            getCommand(name).setExecutor(executor);
            if (executor instanceof org.bukkit.command.TabCompleter completer) {
                getCommand(name).setTabCompleter(completer);
            }
        }
    }

    @Override
    public void onDisable() {
        saveCardVariables();
        getLogger().info("Deck SMP plugin has stopped!");
    }

    public void saveCardVariables() {
        Map<String, Object> values = new LinkedHashMap<>();
        for (Map.Entry<String, String[]> entry : CardVariables.INSTANCE.getEquippedCards().entrySet()) {
            values.put(entry.getKey(), java.util.Arrays.asList(entry.getValue()));
        }
        getConfig().set("equippedCards", values);
        saveConfig();
    }

    public void loadCardVariables() {
        ConfigurationSection section = getConfig().getConfigurationSection("equippedCards");
        if (section == null) return;
        for (String uuid : section.getKeys(false)) {
            java.util.List<String> values = section.getStringList(uuid);
            String[] slots = new String[2];
            for (int i = 0; i < Math.min(values.size(), slots.length); i++) slots[i] = values.get(i);
            CardVariables.INSTANCE.getEquippedCards().put(uuid, slots);
        }
    }

    @EventHandler
    public void onItemSpawn(ItemSpawnEvent event) {
        Item item = event.getEntity();
        if (Cards.INSTANCE.idFor(item.getItemStack()) != null) item.setGlowing(true);
    }

    @EventHandler
    public void onPlayerJoin(PlayerJoinEvent event) {
        unlockCardRecipes(event.getPlayer());
    }

    private void registerCardRecipes() {
        Material base = material("AMETHYST_SHARD");
        Material binding = material("GOLD_INGOT");
        Material catalyst = material("REDSTONE");
        java.util.List<String> uniqueIngredients = java.util.List.of(
                "NETHERITE_INGOT", "BREWING_STAND", "IRON_AXE", "PACKED_ICE", "CONDUIT",
                "LIGHTNING_ROD", "ENDER_PEARL", "GOLDEN_APPLE", "FEATHER", "SPYGLASS",
                "GLOWSTONE_DUST", "PHANTOM_MEMBRANE", "EMERALD", "TOTEM_OF_UNDYING",
                "REDSTONE", "COBWEB", "DIAMOND", "PISTON", "CLOCK", "DRAGON_EGG",
                "WITHER_SKELETON_SKULL", "SHIELD");

        int ingredientIndex = 0;
        for (String id : Cards.INSTANCE.allCards().keySet()) {
            if (ingredientIndex >= uniqueIngredients.size()) break;
            ItemStack card = Cards.INSTANCE.get(id);
            if (card == null) continue;

            NamespacedKey key = new NamespacedKey(this, "card_" + id);
            getServer().removeRecipe(key);

            ShapedRecipe recipe = new ShapedRecipe(key, card.clone());
            recipe.shape("ABA", "CDC", "ABA");
            recipe.setIngredient('A', base);
            recipe.setIngredient('B', binding);
            recipe.setIngredient('C', catalyst);
            recipe.setIngredient('D', material(uniqueIngredients.get(ingredientIndex++)));
            getServer().addRecipe(recipe);
            cardRecipeKeys.add(key);
        }
    }

    private Material material(String name) {
        Material material = Material.matchMaterial(name);
        if (material == null) {
            throw new IllegalStateException("Missing card recipe material: " + name);
        }
        return material;
    }

    private void unlockCardRecipes(Player player) {
        for (NamespacedKey key : cardRecipeKeys) {
            player.discoverRecipe(key);
        }
    }

    public static Decksmp getInstance() {
        return instance;
    }

    public static boolean isAbilitiesEnabled() {
        return abilitiesEnabled;
    }

    public static void setAbilitiesEnabled(boolean enabled) {
        abilitiesEnabled = enabled;
    }
}