sykicgotqd

🔥 ShineSMP — Ultimate Minecraft Java Plugin

Act as a senior Minecraft Java plugin developer. Build a complete, polished, production-ready Minecraft plugin named ShineSMP for my private Minecraft SMP server.

  1. Technical Requirements
  • Platform: Minecraft Java Edition
  • Version: 1.21.x
  • Server software: Paper
  • Language: Java
  • Build system: Maven
  • Main plugin class: "com.shinesmp.ShineSMP"
  • Plugin name: "ShineSMP"
  • Use clean, modular, maintainable code with separate classes for each Shine, abilities, recipes, rituals, commands, and data storage.
  • Include "plugin.yml", "config.yml", "pom.xml", and all required Java source files.
  • The plugin must compile into a working ".jar" file.
  • Do not use pseudocode, incomplete methods, or fake implementations.
  1. Six Unique Shines

Create six unique Shines. Every Shine must have its own custom item, color, ability system, crafting recipe, and identity.

  1. Grinder Shine — Gold theme.

- Passive: Haste I while the Shine is active. - Special ability: Temporary Haste II and increased mining speed. - Cooldown: 60 seconds.

  1. Strength Shine — Crimson/red theme.

- Passive: Strength I while active. - Special ability: Temporary Strength II. - Cooldown: 90 seconds.

  1. Frost Shine — Ice-blue theme.

- Passive: Resistance to freezing damage and improved mobility on ice. - Special ability: Apply Slowness to nearby enemies for a short duration. - Cooldown: 45 seconds.

  1. Clown Shine — Purple theme.

- Passive: Fun visual particle effects. - Special ability: Give nearby enemies a brief, balanced debuff, such as Nausea. - Cooldown: 60 seconds.

  1. Thunder Shine — Yellow/lightning theme.

- Passive: Electric particles. - Special ability: Strike a lightning effect at a targeted location and briefly slow nearby enemies. Use visual lightning by default to avoid unnecessary terrain damage. - Cooldown: 60 seconds.

  1. Ender Shine — Dark-purple theme.

- Passive: Ender particles. - Special ability: Short-range teleportation in the direction the player is looking, with collision and safe-location checks. - Cooldown: 75 seconds.

All abilities must be configurable. Prevent ability spam and balance all Shines for PvP gameplay.

  1. Shine HUD Above the Hotbar

Every player should see their currently assigned Shine above the hotbar using the action bar.

Examples:

  • "✦ Grinder Shine"
  • "✦ Strength Shine"
  • "✦ Frost Shine"
  • "✦ Clown Shine"
  • "✦ Thunder Shine"
  • "✦ Ender Shine"

Requirements:

  • Use distinct colors for each Shine.
  • Update the action bar smoothly without excessive server load.
  • Display the Shine's ability cooldown when appropriate.
  • Show a clear message when a Shine ability becomes available again.
  • The HUD must not flicker or conflict unnecessarily with other action-bar plugins.
  • Support Minecraft 1.21.x.
  1. Automatic Shine Assignment

When a player joins the server for the first time:

  • Automatically assign exactly one random Shine from the six available Shines.
  • Give the player the corresponding Shine item.
  • Display a welcome message announcing their Shine.
  • Save their assignment permanently.

When a returning player joins:

  • Restore their previously assigned Shine.
  • Never randomly reroll their Shine.
  • Never give duplicate Shines just because they rejoined.
  • Preserve all assignments after server restarts.

Add an option in "config.yml" to choose between random assignment and a configurable default Shine.

  1. Custom Shine Crafting Recipes

Create six unique, configurable crafting recipes, one for each Shine.

Requirements:

  • Use custom recipe ingredients and patterns.
  • Make recipes distinct and reasonably difficult to obtain.
  • Allow ingredients to be changed in "config.yml".
  • Give each crafted Shine a unique display name, lore, color, and persistent custom identifier.
  • Prevent players from renaming ordinary items to impersonate Shines.
  • Ensure every recipe works correctly on Minecraft 1.21.x.
  • Provide a recipe guide command or GUI so players can discover all six recipes.

Suggested recipe concepts:

  • Grinder Shine: Gold blocks, diamond pickaxe, and an enchanted golden apple.
  • Strength Shine: Netherite ingots, blaze powder, and a diamond sword.
  • Frost Shine: Packed ice, blue ice, and a heart of the sea.
  • Clown Shine: Amethyst shards, TNT, and a golden apple.
  • Thunder Shine: Lightning-themed ingredients such as copper blocks, tridents, and lightning rods.
  • Ender Shine: Ender pearls, an end crystal, and obsidian.

These are starting ideas. Implement valid 3×3 crafting recipes and make all ingredient choices configurable.

  1. The 15-Minute Ritual System

Whenever a player successfully crafts a Shine:

  • Start a 15-minute ritual (900 seconds).
  • The Shine must not be immediately usable before the ritual completes.
  • Show a ritual-start announcement and the Shine's name.
  • Display a countdown in the action bar or boss bar.
  • Spawn appropriate particles, sounds, and visual effects around the ritual location.
  • Create a unique ritual theme for each Shine.
  • Display milestone messages when 10 minutes, 5 minutes, 1 minute, and 10 seconds remain.
  • Announce when the ritual is complete.
  • Play a completion sound and show a distinctive particle effect.
  • Unlock the Shine only after the ritual completes.

Ritual safety and persistence

  • Save ritual start time, player UUID, Shine type, and ritual state.
  • Calculate remaining time using timestamps instead of relying only on in-memory timers.
  • Keep rituals running correctly through player disconnects and server restarts.
  • Prevent duplicate rituals from the same crafted item.
  • Validate the custom item identifier before starting a ritual.
  • If a player dies or disconnects, the ritual must not accidentally grant a duplicate Shine.
  • Make ritual duration configurable, defaulting to 900 seconds.
  • Provide an administrator command to cancel or complete a ritual when necessary.

Define clearly whether rituals are player-bound or location-bound. Use a player-bound ritual by default so players can continue the countdown after moving away from the crafting table.

  1. Commands and Permissions

Implement these commands:

Player commands

  • "/shine" — Show the player's current Shine, abilities, and cooldowns.
  • "/shine ability" — Activate the assigned Shine's special ability.
  • "/shine recipe" — Open a GUI or display the Shine crafting recipes.
  • "/shine info <shine>" — Display detailed information about a Shine.
  • "/shine cooldown" — Check the remaining ability cooldown.
  • "/shine help" — Display available commands.

Administrator commands

  • "/shine give <player> <shine>" — Give a specified Shine to a player.
  • "/shine set <player> <shine>" — Assign a Shine to a player and update their saved data.
  • "/shine remove <player>" — Remove a player's Shine assignment.
  • "/shine reset <player>" — Reset a player's Shine data with confirmation.
  • "/shine reload" — Reload configuration safely.
  • "/shine list" — List all available Shines.
  • "/shine ritual cancel <player>" — Cancel a player's ritual.
  • "/shine ritual complete <player>" — Complete a player's active ritual.
  • "/shine ritual status <player>" — View a player's ritual status.

Permissions:

  • "shinesmp.use" — Basic player features.
  • "shinesmp.admin" — Administrative commands.
  • "shinesmp.give" — Give Shines.
  • "shinesmp.set" — Assign or change Shines.
  • "shinesmp.reload" — Reload configuration.

Add tab completion, argument validation, helpful error messages, and console support wherever appropriate. Prevent unauthorized players from using admin commands.

  1. Item Security and Balance
  • Use PersistentDataContainer or an equivalent reliable custom-item identifier.
  • Do not identify Shines using display names alone.
  • Prevent duplicated or forged items from bypassing ritual restrictions.
  • Define whether Shines are soulbound, transferable, or consumable in configuration.
  • Default to one assigned Shine per player.
  • Prevent passive effects from stacking repeatedly.
  • Clean up scheduled tasks when the plugin disables.
  • Avoid unsafe teleportation and excessive particle spawning.
  • Make PvP abilities configurable and compatible with normal Minecraft gameplay.
  1. Configuration and Storage

Include a well-documented "config.yml" containing:

  • Shine colors and display names.
  • Passive effects and ability settings.
  • Ability durations and cooldowns.
  • Crafting recipe ingredients and patterns.
  • Ritual duration and milestone messages.
  • First-join assignment settings.
  • Item transfer and death-drop settings.
  • HUD settings.
  • Particle and sound settings.
  • Permission settings.
  • All player-facing messages.

Use UUID-based persistent storage. SQLite is preferred for structured player and ritual data; YAML is acceptable for a smaller implementation if it is handled safely.

  1. Quality and Testing Requirements
  • Target Java 21 and a compatible Paper API for Minecraft 1.21.x.
  • Use the correct API version and dependency versions for the selected server release.
  • Implement proper event handling and scheduler cleanup.
  • Ensure data is saved safely when players leave and when the server shuts down.
  • Test first joins, returning joins, all six recipes, ritual countdowns, server restarts, ability cooldowns, and permissions.
  • Include clear installation instructions and a README.
  • Include a complete project folder structure.
  • Provide the exact Maven build command.
  • Explain how to upload the resulting JAR to a paid Minecraft host and restart the server.
  • If a requirement cannot be implemented reliably, explain why and provide a working alternative instead of pretending it works.

Final Deliverable

Generate the complete ShineSMP Java plugin project, including every required source file and configuration file. Make it polished, modular, secure, configurable, and suitable for a private PvP SMP.

Start by showing the project structure, then generate the complete code file by file. Finally, explain how to compile, install, configure, and test the plugin.

Kodari AI
KodariOct 15 at 2:35 pm 3
ShineSMP
A comprehensive Minecraft SMP plugin featuring six unique Shine abilities with custom items, crafting recipes, and a 15-minute ritual system. Players receive randomly assigned Shines on first join, with persistent UUID-based storage. Each Shine offers distinct passive effects and special abilities with configurable cooldowns, displayed via an action bar HUD. Includes full command suite with permissions, recipe GUI, ritual management, and SQLite data persistence.

Project structure

Plain Text
pom.xml
README.md
src/main/resources/
  plugin.yml
  config.yml
src/main/java/com/shinesmp/
  ShineSMP.java
  ShineType.java
  PlayerData.java
  PlayerDataStore.java
  ShineItemFactory.java
  RecipeManager.java
  RitualManager.java
  AbilityManager.java
  ShineListener.java
  ShineCommand.java

Implementation plan:

  1. Add the Maven/Paper project metadata and configurable defaults.

  2. Implement persistent assignments, secure Shine items, recipes, and player-bound rituals.

  3. Add abilities, passive effects, HUD, event handling, commands, and installation/testing notes.

Created the ShineSMP Maven project for Java 21 and Paper 1.21.x, including pom.xml, plugin.yml, config.yml, README, and modular Java sources.

It includes all six Shines, configurable recipes and abilities, PDC-identified items, UUID-based YAML assignment and ritual storage, player-bound rituals, cooldowns, passive effects, and the action-bar HUD. Ritual completion assigns the crafted Shine; abilities are unavailable while a ritual is active. The recipe guide is available through /shine recipe.

Build and install: In Kodari, click Compile in the desktop top bar, or on mobile tap ⋮ → Compile Project, then click Compile. Download the successful build and upload ShineSMP.jar to your host’s plugins folder, then restart the Paper server. Configure plugins/ShineSMP/config.yml; apply changes with /shine reload.

Before using it on your private SMP, test first and returning joins, all recipes, ritual milestones and restart persistence, cooldowns, permissions, and item transfer/death settings. I haven’t verified it on a live Paper server.

Kodari can make mistakes. Review important code before using.
Files
src
pom.xml
README.md
Code
14 1,829
src/main/java/com/shinesmp/ShineSMP.java
package com.shinesmp;

import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.NamespacedKey;
import org.bukkit.plugin.java.JavaPlugin;

public final class ShineSMP extends JavaPlugin {
    private NamespacedKey itemIdKey;
    private NamespacedKey shineTypeKey;
    private NamespacedKey ownerKey;
    private NamespacedKey ritualKey;
    private PlayerDataStore playerDataStore;
    private ShineItemFactory itemFactory;
    private RecipeManager recipeManager;
    private RitualManager ritualManager;
    private AbilityManager abilityManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        itemIdKey = new NamespacedKey(this, "shine_item");
        shineTypeKey = new NamespacedKey(this, "shine_type");
        ownerKey = new NamespacedKey(this, "shine_owner");
        ritualKey = new NamespacedKey(this, "ritual_id");
        playerDataStore = new PlayerDataStore(this);
        itemFactory = new ShineItemFactory(this);
        ritualManager = new RitualManager(this, playerDataStore, itemFactory);
        abilityManager = new AbilityManager(this, playerDataStore, ritualManager);
        recipeManager = new RecipeManager(this, itemFactory);
        Bukkit.getPluginManager().registerEvents(new ShineListener(this), this);
        ShineCommand shineCommand = new ShineCommand(this);
        getCommand("shine").setExecutor(shineCommand);
        getCommand("shine").setTabCompleter(shineCommand);
        recipeManager.reload();
        ritualManager.start();
        abilityManager.start();
        getLogger().info("ShineSMP enabled.");
    }

    @Override
    public void onDisable() {
        if (abilityManager != null) {
            abilityManager.stop();
        }
        if (ritualManager != null) {
            ritualManager.stop();
        }
        if (playerDataStore != null) {
            playerDataStore.saveAll();
        }
    }

    public void reloadShineConfig() {
        reloadConfig();
        recipeManager.reload();
    }

    public String shineName(ShineType type) {
        return color(getConfig().getString("shines." + type.id() + ".name", type.displayName()));
    }

    public String shineColor(ShineType type) {
        return color(getConfig().getString("shines." + type.id() + ".color", "&f"));
    }

    public String message(String key, String... replacements) {
        String text = getConfig().getString("messages." + key, key);
        for (int index = 0; index + 1 < replacements.length; index += 2) {
            text = text.replace("{" + replacements[index] + "}", replacements[index + 1]);
        }
        return color(text);
    }

    public static String color(String text) {
        return ChatColor.translateAlternateColorCodes('&', text == null ? "" : text);
    }

    public NamespacedKey itemIdKey() {
        return itemIdKey;
    }

    public NamespacedKey shineTypeKey() {
        return shineTypeKey;
    }

    public NamespacedKey ownerKey() {
        return ownerKey;
    }

    public NamespacedKey ritualKey() {
        return ritualKey;
    }

    public PlayerDataStore playerDataStore() {
        return playerDataStore;
    }

    public ShineItemFactory itemFactory() {
        return itemFactory;
    }

    public RecipeManager recipeManager() {
        return recipeManager;
    }

    public RitualManager ritualManager() {
        return ritualManager;
    }

    public AbilityManager abilityManager() {
        return abilityManager;
    }
}