OG Crystal

Create a complete, production-ready Minecraft Paper 1.21.x plugin called UltimateShards using Java 21.

The plugin should introduce 10 unique custom Shards, where every Shard has its own Passive Abili

Kodari AI
KodariSep 26 at 9:51 am 1
UltimateShards
UltimateShards introduces 10 unique custom shards for Minecraft Paper 1.21, each granting distinct passive abilities. Players collect shards that provide permanent buffs like increased speed, enhanced damage, fire resistance, or water breathing. The plugin features a GUI-based shard management system where players can view, equip, and manage their collected shards. Each shard has a custom item design with unique lore and effects, stored in a player data system. The plugin includes commands for shard management, a comprehensive configuration system for balancing, and seamless integration with the GUI framework for intuitive player interaction.

Your request cuts off at “every Shard has its own Passive Abili…”. Please send the rest of the requirements, or confirm that I should choose the shard abilities and other plugin mechanics myself.

OG Crystal

Where is my plugin?

Kodari AI
KodariSep 26 at 9:54 am 1
  1. Create the Paper 1.21.x / Java 21 Gradle project and plugin metadata.

  2. Implement 10 collectible shards, persistent ownership/equipping, passive effects, GUI, and commands.

  3. Add configurable ability settings and player-facing messages.

Your plugin is in the project root. It includes the Paper 1.21.x / Java 21 Gradle setup, GUI, persistent shard ownership, configurable passive effects, and /shards commands.

The 10 shards are Ember, Tide, Gale, Stone, Grove, Storm, Shadow, Frost, Dawn, and Void. Give a player a shard with /shards give <player> <shard> [amount]; they can right-click it to claim it, then open /shards to equip it.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
13 788
src/main/java/com/kodari/ultimateshards/UltimateShardsPlugin.java
package com.kodari.ultimateshards;

import com.kodari.ultimateshards.command.ShardsCommand;
import com.kodari.ultimateshards.data.PlayerShardDataManager;
import com.kodari.ultimateshards.listener.ShardListener;
import com.kodari.ultimateshards.service.ShardService;
import com.kodari.ultimateshards.ui.ShardMenu;
import java.util.Objects;
import org.bukkit.NamespacedKey;
import org.bukkit.plugin.java.JavaPlugin;

public final class UltimateShardsPlugin extends JavaPlugin {
    private NamespacedKey shardItemKey;
    private PlayerShardDataManager dataManager;
    private ShardService shardService;
    private ShardMenu shardMenu;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        shardItemKey = new NamespacedKey(this, "shard-id");
        dataManager = new PlayerShardDataManager(this);
        shardService = new ShardService(this, dataManager, shardItemKey);
        shardMenu = new ShardMenu(this, shardService);

        getServer().getPluginManager().registerEvents(new ShardListener(this, shardService, shardMenu), this);
        ShardsCommand shardsCommand = new ShardsCommand(this, shardService, shardMenu);
        Objects.requireNonNull(getCommand("shards"), "shards command is missing from plugin.yml")
                .setExecutor(shardsCommand);
        Objects.requireNonNull(getCommand("shards")).setTabCompleter(shardsCommand);

        getServer().getScheduler().runTaskTimer(this, shardService::applyPassiveAbilities, 20L, 20L);
        getLogger().info("UltimateShards enabled with " + ShardType.values().length + " shards.");
    }

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