viroblox viroblox

PROJECT: GEM SMP – Complete Minecraft Plugin

Act as an expert Minecraft Java Plugin Developer. Develop a complete, production-ready Minecraft Gem SMP plugin.

  1. Server Compatibility
  • Minecraft Java Edition 1.21.x
  • Server Software: Paper
  • Java 21
  • Plugin output: GemSMP.jar
  • Use Maven or Gradle.
  1. Original Power Gems

Create these 8 main Gems inspired by Bliss SMP:

  1. Astra Gem
  2. Fire Gem
  3. Flux Gem
  4. Life Gem
  5. Puff Gem
  6. Speed Gem
  7. Strength Gem
  8. Wealth Gem

Every Gem must have:

  • Unique abilities.
  • Unique passive effects.
  • Unique active abilities.
  • Custom display name.
  • Custom item lore.
  • Configurable cooldowns.
  • Configurable damage values.
  • Proper ability activation system.

Do not make all Gems behave identically.

  1. Additional Custom Gems

Add at least 20 additional original Gems.

Requirements:

  • Every Gem must have a different identity.
  • Every Gem must have unique abilities.
  • Include offensive, defensive, movement, support and utility abilities.
  • Avoid repetitive or useless abilities.
  1. Random First Spawn Gem System

This is a mandatory feature.

  • Every player receives exactly ONE randomly selected starting Gem on their first spawn.
  • All 8 original Gems have an equal chance of being selected.
  • Save each player's assigned Gem permanently.
  • Rejoining must not grant another starting Gem.
  • Dying must not grant another starting Gem.
  • Never assign a second starting Gem to an already registered player.
  • Prevent duplicate starting Gem exploits.
  • Add an option to configure the starting Gem pool.
  1. Gem Holding System
  • Holding a Gem in the main hand activates its passive effects.
  • Some Gems provide passive effects only.
  • Some Gems unlock active abilities.
  • Some Gems provide both passive and active abilities.
  • Effects stop when the player stops holding the Gem.
  • Prevent ability activation without the required Gem.
  • Avoid applying duplicate potion effects every tick.
  1. Ultimate Gold Gem

Create an extremely powerful Ultimate Gold Gem.

Crafting requirements:

  • All 8 original Gems are required.
  • Combining all 8 creates exactly one Ultimate Gold Gem.
  • Validate every required Gem.
  • Invalid combinations must not work.
  • Prevent crafting and item duplication exploits.

Ultimate Gold Gem abilities:

  • Combine the powers of all 8 original Gems.
  • Include unique passive effects.
  • Provide multiple active abilities.
  • Have configurable cooldowns and damage.
  • Include special particles and sounds.
  1. Combat and Abilities

Every active ability must have:

  • Exact damage values.
  • Exact cooldowns.
  • Activation method.
  • Range.
  • Duration.
  • Particle effects.
  • Sound effects.
  • Proper hit detection.

All values must be configurable in config.yml.

Do not create fake abilities that do nothing.

  1. Commands

Implement:

/gem help /gem list /gem info [gem] /gem give [player] [gem] /gem remove [player] /gem reload /gem cooldown /gem ultimate

Add appropriate permissions for admin commands.

  1. Configuration

Provide:

  • config.yml
  • gems.yml
  • abilities.yml
  • messages.yml

Allow server owners to modify:

  • Gem damage.
  • Cooldowns.
  • Effect duration.
  • Ability range.
  • Starting Gem distribution.
  • Ultimate Gem crafting requirements.
  • Messages.
  • Permissions.
  1. Security and Performance
  • Prevent item duplication.
  • Prevent ability spam.
  • Validate genuine Gem items.
  • Prevent fake renamed items from activating abilities.
  • Save player data safely.
  • Avoid memory leaks.
  • Ensure Paper 1.21.x compatibility.
  • Use efficient event handling.
  • Handle player death, respawn, quit and join correctly.
  • Prevent ability exploits.
  1. Final Deliverables

Generate actual working files:

  1. GemSMP.jar
  2. Complete Java source code.
  3. Maven or Gradle build project.
  4. Installation instructions.
  5. Commands and permissions documentation.

IMPORTANT:

  • Do not provide only sample code or pseudocode.
  • Implement every ability completely.
  • Compile the actual plugin.
  • Fix all compilation errors.
  • Test all major features.
  • Do not deliver an incomplete or non-functional JAR.
  • The final deliverable must be a working GemSMP.jar.
Kodari AI
KodariNov 7 at 3:11 pm 2
GemSMPPlugin
A comprehensive Minecraft Paper plugin introducing 28 unique power gems with distinct passive and active abilities. Features a random first-spawn gem system, an Ultimate Gold Gem combining all 8 original gems, configurable combat abilities with particles and sounds, full command suite, and robust anti-exploit protections. Includes complete configuration files for damage values, cooldowns, and messages, with efficient event handling and data persistence.
  1. Build the Java 21 Paper plugin core, persistent first-spawn assignment, and genuine Gem items.

  2. Implement configurable passive effects, distinct active abilities, ultimate crafting, and commands.

  3. Add the Gradle project, plugin/config files, and setup/command documentation.

Created the GemSMP Gradle project with 28 distinct Gems plus the Ultimate Gold Gem, persistent first-join assignment, configurable passives and abilities, validated Ultimate crafting, commands, and setup documentation. The project is configured to output GemSMP.jar.

I can’t claim the JAR has been compiled or tested without a successful build result. To build and download it in Kodari:

  1. Click Compile in the top bar (on phone: ⋮ → Compile Project).

  2. Click Compile in the window.

  3. After it succeeds, click Download for the build or Download GemSMP.jar in chat.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
README.md
settings.gradle
Code
14 1,303
src/main/java/com/kodari/gemsmp/GemSMP.java
package com.kodari.gemsmp;

import org.bukkit.Bukkit;
import org.bukkit.Material;
import org.bukkit.NamespacedKey;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.ShapelessRecipe;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.ChatColor;
import com.cryptomorin.xseries.XMaterial;

import java.io.File;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;

public final class GemSMP extends JavaPlugin {
    private GemManager gemManager;
    private AbilityManager abilityManager;
    private YamlConfiguration messages;
    private NamespacedKey ultimateRecipeKey;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        saveIfMissing("gems.yml");
        saveIfMissing("abilities.yml");
        saveIfMissing("messages.yml");
        loadMessages();
        gemManager = new GemManager(this);
        abilityManager = new AbilityManager(this);
        ultimateRecipeKey = new NamespacedKey(this, "ultimate_gem");
        setupUltimateRecipe();
        getServer().getPluginManager().registerEvents(new GemListener(this), this);
        GemCommand command = new GemCommand(this);
        getCommand("gem").setExecutor(command);
        getCommand("gem").setTabCompleter(command);
        Bukkit.getScheduler().runTaskTimer(this, abilityManager::tickPassives, 1L, 10L);
    }

    @Override
    public void onDisable() {
        if (abilityManager != null) abilityManager.clearAllPassives();
        if (gemManager != null) gemManager.savePlayers();
    }

    public GemManager gems() {
        return gemManager;
    }

    public AbilityManager abilities() {
        return abilityManager;
    }

    public void reloadPlugin() {
        reloadConfig();
        loadMessages();
        gemManager.reloadDefinitions();
        abilityManager.reload();
        setupUltimateRecipe();
    }

    public String msg(String key, String... replacements) {
        String text = messages.getString(key, key);
        for (int i = 0; i + 1 < replacements.length; i += 2) {
            text = text.replace(replacements[i], replacements[i + 1]);
        }
        return ChatColor.translateAlternateColorCodes('&', messages.getString("prefix", "") + text);
    }

    public boolean isUltimateRecipe(org.bukkit.inventory.Recipe recipe) {
        return recipe instanceof org.bukkit.Keyed keyed && keyed.getKey().equals(ultimateRecipeKey);
    }

    public void setupUltimateRecipe() {
        Bukkit.removeRecipe(ultimateRecipeKey);
        if (!getConfig().getBoolean("ultimate-recipe.enabled", true)) return;
        ItemStack result = gemManager.createGem(Gem.ULTIMATE);
        if (result == null) {
            getLogger().warning("Ultimate Gem icon is invalid; its recipe was not registered.");
            return;
        }
        ShapelessRecipe recipe = new ShapelessRecipe(ultimateRecipeKey, result);
        Set<Material> ingredients = new HashSet<>();
        for (String id : getConfig().getStringList("ultimate-recipe.requirements")) {
            Gem gem = Gem.fromId(id);
            Material material = gem == null ? null : gemManager.getMaterial(gem);
            if (gem == null || !gem.isOriginal() || material == null || !ingredients.add(material)) {
                getLogger().warning("Ultimate recipe requirements must use distinct original Gem materials.");
                return;
            }
            recipe.addIngredient(material);
        }
        if (ingredients.isEmpty() || !Bukkit.addRecipe(recipe)) {
            getLogger().warning("Ultimate Gem recipe could not be registered.");
        }
    }

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

    private void saveIfMissing(String file) {
        if (!new File(getDataFolder(), file).exists()) saveResource(file, false);
    }
}