sykicgotqd

🔥 ShineSMP — Ultimate Minecraft Java Plugin Development Prompt

Act as a senior Minecraft Java plugin developer. Build a complete, production-ready Minecraft Java plugin called ShineSMP for Minecraft Java Edition 1.21.x using Java and the Paper API.

The plugin must contain 10 unique Shines, 20 fully functional abilities, custom crafting recipes, a custom HUD, GUI-based Shine selection, first-join random Shine assignment, player and admin commands, persistent storage, and anti-exploit protection.

Deliver a complete, compilable Maven project. Do not provide pseudocode, empty methods, or placeholder implementations.

  1. The 10 Shines

Implement exactly these Shines:

  1. Grinder Shine
  2. Strength Shine
  3. Frost Shine
  4. Clown Shine
  5. Thunder Shine
  6. Ender Shine
  7. Invis Shine
  8. Astra Shine
  9. Singularity Shine
  10. Speed Shine

Each Shine must have exactly two unique active abilities, giving a total of 20 fully implemented abilities.

  1. All 20 Abilities

Grinder Shine

  • Lucky Miner: Temporarily improve mining efficiency and provide a configurable chance of bonus ore drops and XP.
  • Grinder Rush: Grant Haste III and faster resource gathering for 12 seconds.

Strength Shine

  • Titan Strike: Empower the next melee attack with configurable bonus damage and an impact effect.
  • Berserker Mode: Grant Strength II and Resistance I for 6 seconds.

Frost Shine

  • Frost Nova: Release an icy burst that briefly slows nearby enemies.
  • Frozen Ground: Create a temporary frost zone that slows enemies inside it.

Clown Shine

  • Trickster Swap: Swap positions with a targeted player within range, provided both destinations are safe.
  • Chaos Burst: Release a colorful burst that briefly applies Slowness and disorienting visual effects.

Thunder Shine

  • Thunder Strike: Call lightning at a targeted location after a warning effect, dealing configurable damage.
  • Volt Rush: Dash forward with an electric trail and a temporary movement-speed boost.

Ender Shine

  • Void Blink: Teleport a short distance in the direction the player looks, stopping safely at obstacles.
  • Rift Return: Mark a safe location and teleport back before the mark expires.

Invis Shine

  • Shadow Veil: Become invisible for 6 seconds. Attacking ends invisibility.
  • Phantom Escape: Gain brief invisibility and a speed boost with a visible particle trail.

Astra Shine

  • Starfall: Call down several cosmic impacts onto a marked area after a warning delay.
  • Astral Shield: Activate a temporary shield that absorbs a configurable amount of damage.

Singularity Shine

  • Gravity Well: Create a temporary field that pulls nearby enemies toward its center.
  • Implosion: Pull nearby enemies inward, then release a controlled knockback burst.

Speed Shine

  • Sonic Dash: Perform an extremely powerful forward dash with high velocity, a visible trail, collision detection, and an optional limited air dash.
  • Overdrive: Gain Speed III and enhanced movement for 8 seconds, followed by a configurable recovery period.

All 20 abilities must work in actual gameplay. Each must have configurable cooldowns, durations, ranges, damage, effects, and restrictions.

  1. CRITICAL: No Shine Items in Player Inventories

The equipped Shine must never be given as a physical item in the player's inventory.

Use a persistent, virtual Shine ownership and equipment system.

  • On first join, assign one random Shine directly to the player's account.
  • Save the assigned Shine in persistent storage.
  • Do not add a Shine item to the player's inventory, hotbar, armor slots, or offhand.
  • Do not require a physical Shine item to equip or use abilities.
  • Store ownership, equipped Shine, and ability data using SQLite or another reliable database.
  • Display owned Shines in a dedicated GUI.
  • Allow players to equip any Shine they own by clicking its icon in the GUI.
  • Provide "/shinesmp equip <shine>" as an alternative, but only if the player owns that Shine.
  • Provide "/shinesmp unequip" to remove the equipped Shine.
  • Never generate duplicate ownership entries through repeated joins, restarts, commands, or GUI interactions.
  • If the player's inventory is full, the system must still work normally because Shines are virtual and do not require inventory space.
  • Preserve all ownership and equipment data across reconnects and server restarts.

Important distinction: Shines are virtual abilities assigned to player accounts, not collectible physical items. Their crafting recipes must therefore use separate custom crafting ingredients or an explicitly defined unlock mechanism. Do not create a recipe that gives a physical Shine item unless a separate, disabled-by-default feature is intentionally added.

  1. First-Join Assignment

When a player joins the server for the first time:

  1. Select one random Shine from the ten available Shines.
  2. Assign it as the player's first owned Shine.
  3. Automatically equip it.
  4. Save ownership and equipment data permanently.
  5. Display a welcome message naming the assigned Shine.
  6. Show the Shine HUD immediately when the player enters the world.

Existing players must never receive another random starting Shine simply by reconnecting. If database initialization fails, do not silently overwrite existing player data.

  1. Exact Hotbar HUD

Use the uploaded screenshot as the visual positioning reference.

Display two custom square ability icons directly above the Minecraft hotbar, matching the approximate layout of the two circled icons in the screenshot.

  • Left icon: Ability 1.
  • Right icon: Ability 2.
  • Both icons must be horizontally centered above the hotbar.
  • Use compact pixel-art icons with dark borders and colorful symbols.
  • Give each of the ten Shines its own pair of unique icons.
  • Display cooldown progress or remaining cooldown time on each icon.
  • Show available abilities as bright and ready.
  • Briefly highlight an icon when its ability activates.
  • Keep the HUD visible during normal gameplay.
  • Do not place the icons in chat, the inventory, or at the top of the screen.
  • Support different screen resolutions where technically possible.

Provide the necessary original resource-pack textures, assets, and setup instructions.

Technical requirement: Standard Paper APIs cannot freely draw arbitrary custom images at exact screen coordinates. Implement a supported client-side HUD/resource-pack solution, or document a practical alternative. Do not claim unsupported functionality works natively.

  1. Ability Controls

Default controls:

  • Ability 1: Shift + F.
  • Ability 2: Shift + Right Click.

Implement:

"/shinesmp ability control <control1|control2> <key>"

Examples:

  • "/shinesmp ability control control1 F"
  • "/shinesmp ability control control2 RIGHT_CLICK"

Requirements:

  • Allow independent control customization for both abilities.
  • Validate supported controls.
  • Persist each player's control preferences.
  • Include command help and tab completion.
  • Prevent accidental or repeated activation.
  • Respect cooldowns, death, world restrictions, and combat rules.

Standard Paper plugins cannot directly detect arbitrary keyboard input such as F from an unmodified vanilla client. Implement a compatible client-side input solution or a reliable documented fallback. Shift + Right Click must use supported server-side interaction events.

  1. Shine Selection GUI

Implement "/shinesmp shines" to open a polished inventory GUI.

Each Shine icon must display:

  • Shine name and description.
  • Both ability names and summaries.
  • Cooldown information.
  • Whether the player owns the Shine.
  • Whether the Shine is currently equipped.

Clicking an owned Shine equips it instantly and updates the HUD.

Clicking a Shine the player does not own must show an appropriate message.

Protect the GUI against item movement, shift-click exploits, unauthorized access, and duplication.

  1. Custom Recipes & Unlocking

Create ten unique, configurable crafting recipes, one for each Shine, using separate custom ingredients.

Because Shines are virtual, recipes must not produce physical Shine items. Instead, define a configurable unlock system:

  • Crafting a Shine recipe unlocks that Shine for the player.
  • Register each unlock reliably and persistently.
  • Prevent duplicate unlocks and crafting exploits.
  • Allow administrators to configure recipe ingredients and unlock behavior.
  • Validate custom ingredients with unique PersistentDataContainer identifiers.
  • Include all recipes in "recipes.yml".
  • Include recipe viewing and administrator recipe commands.

If the server uses first-join random assignment, the crafted recipe can unlock additional Shines without changing the player's current equipped Shine automatically.

  1. Commands

Player commands

  • "/shinesmp" — main help menu.
  • "/shinesmp shines" — open the Shine selection GUI.
  • "/shinesmp equip <shine>" — equip an owned Shine.
  • "/shinesmp unequip" — unequip the current Shine.
  • "/shinesmp info <shine>" — view Shine details.
  • "/shinesmp ability control <control1|control2> <key>" — customize ability controls.
  • "/shinesmp cooldowns" — display active cooldowns.
  • "/shinesmp recipes" — view Shine recipes.

Administrator commands

  • "/shinesmp give <player> <shine>" — unlock a Shine for a player.
  • "/shinesmp set <player> <shine>" — set and equip a Shine according to configured rules.
  • "/shinesmp remove <player> <shine>" — remove a Shine unlock.
  • "/shinesmp random <player>" — assign a random Shine.
  • "/shinesmp reset <player>" — reset Shine data with confirmation safeguards.
  • "/shinesmp reload" — reload configuration safely.
  • "/shinesmp recipe give <player> <shine>" — grant the required custom crafting ingredients or recipe access, as configured.
  • "/shinesmp audit <player>" — inspect ownership and equipment data.

Include permissions, argument validation, tab completion, configurable messages, and logging of administrative actions.

  1. Powerful Speed Shine Dash

Make Sonic Dash substantially faster and more exciting than ordinary Speed effects.

  • High configurable horizontal velocity.
  • Limited vertical boost.
  • Optional limited air dash.
  • Configurable maximum travel distance.
  • Smooth particles, sounds, and visible movement trail.
  • Collision detection to prevent passing through solid blocks.
  • Safe handling of obstacles, water, and dangerous drops.
  • Configurable cooldown and recovery period.
  • Anti-spam and velocity-exploit protection.
  • Configurable restrictions during PvP.

The dash must feel powerful while preserving fair counterplay.

  1. Configuration & Storage

Provide:

  • "plugin.yml"
  • "pom.xml"
  • "config.yml"
  • "messages.yml"
  • "shines.yml"
  • "recipes.yml"
  • All required Java source files.
  • Complete resource-pack assets and installation instructions.

Store player ownership, equipped Shine, control preferences, and relevant cooldown data reliably.

Allow administrators to configure all 20 abilities, cooldowns, durations, effects, HUD settings, recipes, unlock rules, PvP restrictions, world restrictions, and messages.

  1. Security & Performance
  • Never use physical Shine items for normal ownership or equipping.
  • Prevent duplicate ownership and unauthorized unlocks.
  • Validate every ability activation server-side.
  • Clean up temporary effects and scheduled tasks on logout and shutdown.
  • Validate teleport destinations and dash movement.
  • Avoid excessive particles and unnecessary repeating tasks.
  • Keep database operations from blocking the main server thread.
  • Handle restarts and configuration reloads safely.
  • Include tests for all abilities, ownership, recipes, controls, HUD behavior, persistence, permissions, and multiplayer exploits.
  1. Final Deliverables

Deliver a complete, compilable Maven project with all Java source files, configuration files, GUI, all 20 abilities, virtual Shine ownership system, ten recipes, HUD assets, installation instructions, build commands, and final JAR generation steps.

Do not omit any advertised features. Do not provide pseudocode or placeholder implementations. Clearly document client-side requirements and verify the final implementation before claiming completion.

Kodari AI
KodariOct 16 at 2:02 am 5
ShineSMP
A comprehensive Minecraft plugin introducing a virtual Shine ability system with 10 unique Shines, each offering 2 distinct active abilities (20 total). Players receive a random Shine on first join and can unlock more via custom crafting recipes. Features include a custom hotbar HUD displaying ability icons with cooldown tracking, a GUI-based Shine selection interface, configurable ability controls, persistent SQLite storage for ownership and equipment data, and full administrative commands. The plugin emphasizes anti-exploit protection, server-side validation, and performance optimization while maintaining a virtual Shine system that never requires physical items in player inventories.
  1. Build the Paper 1.21 plugin foundation, virtual ownership storage, commands, GUI, and configurable crafting unlocks.

  2. Implement all 20 server-side abilities, cooldowns, player controls, protections, and the action-bar HUD.

  3. Add default configuration, installation/compatibility notes, and focused tests for the Shine catalog and player data.

Created the ShineSMP Maven project with all ten virtual Shines, 20 ability implementations, persistent player profiles, controls, cooldowns, selection GUI, commands, configurable recipes, and a Paper action-bar HUD. Player data is stored in asynchronous per-player YAML files with atomic replacement—not SQLite.

Known limitations: The HUD is a vanilla action-bar glyph fallback, not the requested pixel-art overlay; custom resource-pack textures are not included. Enable texture generation in Project Settings → Generation to request original icon assets. Automated tests cover the Shine catalog and basic ownership behavior; they do not cover live-server gameplay, crafting exploits, or multiplayer interactions.

To build and download the JAR in Kodari: click Compile in the desktop top bar (phone: ⋮ → Compile Project), click Compile, then Download.

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

import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
import org.bukkit.event.Listener;
import org.bukkit.plugin.java.JavaPlugin;

public final class ShineSMP extends JavaPlugin {
    private org.bukkit.configuration.file.YamlConfiguration messages;
    private PlayerDataStore dataStore;
    private ShineManager shineManager;
    private AbilityService abilityService;
    private ShineHud hud;
    private RecipeService recipeService;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        saveResource("messages.yml", false);
        saveResource("shines.yml", false);
        saveResource("recipes.yml", false);
        reloadConfig();
        loadMessages();
        dataStore = new PlayerDataStore(this);
        shineManager = new ShineManager(this, dataStore);
        hud = new ShineHud(this, shineManager, () -> abilityService);
        abilityService = new AbilityService(this, shineManager);
        recipeService = new RecipeService(this, shineManager);
        recipeService.reloadRecipes();
        ShineListener listener = new ShineListener(this, shineManager, abilityService, recipeService);
        Bukkit.getPluginManager().registerEvents(listener, this);
        Bukkit.getPluginManager().registerEvents(new ShineGuiListener(shineManager, this), this);
        hud.start();
        getCommand("shinesmp").setExecutor(new ShineCommand(this));
        getCommand("shinesmp").setTabCompleter(new ShineTabCompleter());
        Bukkit.getOnlinePlayers().forEach(shineManager::load);
    }

    @Override
    public void onDisable() {
        if (hud != null) hud.stop();
        if (abilityService != null) abilityService.clearAll();
        if (shineManager != null) Bukkit.getOnlinePlayers().forEach(shineManager::save);
        if (dataStore != null) dataStore.shutdown();
    }

    public void reloadPlugin() {
        reloadConfig();
        loadMessages();
        recipeService.reloadRecipes();
        hud.start();
        Bukkit.getOnlinePlayers().forEach(hud::render);
    }

    public void message(Player player, String key, String... replacements) {
        String text = messages.getString("messages." + key, "&cMissing message: " + key);
        for (int i = 0; i + 1 < replacements.length; i += 2) text = text.replace(replacements[i], replacements[i + 1]);
        String prefix = messages.getString("prefix", "");
        player.sendMessage(ChatColor.translateAlternateColorCodes('&', prefix + text));
    }

    private void loadMessages() {
        messages = org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(new java.io.File(getDataFolder(), "messages.yml"));
    }

    public void registerListener(Listener listener) { Bukkit.getPluginManager().registerEvents(listener, this); }
    public ShineManager getShineManager() { return shineManager; }
    public AbilityService getAbilityService() { return abilityService; }
    public ShineHud getHud() { return hud; }
    public RecipeService getRecipeService() { return recipeService; }
    public PlayerDataStore getDataStore() { return dataStore; }
}