evil_hui
📎 1 file 1,109 chars
📄
Random_Gem_SMP_Prompt.txt
txt 35 lines
▶
Plugin Name: Random Gem SMP

I want a Minecraft plugin where every player starts with Thunder Crystal
power (with a custom resource pack).

Gems and Abilities

1.  Lightning Gem Shift + Right Click: Strike lightning on the enemy you
    are looking at for 5 seconds

2.  Regen Gem Shift + Right Click: Gives Regeneration VI for 15 seconds

3.  Strength Gem Shift + Right Click: Gives Strength III for 15 seconds

4.  Invisible Gem Shift + Right Click: Gives Invisibility for 15 seconds

5.  Fire Gem Shift + Right Click: Throws a Fireball Fireball should deal
    2x TNT damage

6.  Glitch Gem Shift + Right Click: Lift the player you are aiming at
    and make them spin/dance in the air for 5 seconds Shift + Left
    Click: Dash forward

7.  TP Gem Shift + Right Click: Teleport

Extra Features

-   When a player joins the server, they receive one random gem
-   On screen, all gem names spin/roll like animation
-   When the spinning stops, the player receives that random gem
-   Plugin should include custom resource pack
-   Every player starts with Thunder Crystal power

Plugin Name: Random Gem SMP
Kodari AI
KodariApr 19 at 4:56 pm 15,923 (v2)

I’ll create a Random Gem SMP plugin with custom abilities, gem selection animation, and resource pack support.

RandomGemSMP
A unique SMP plugin where players receive random gem powers on join. Features 7 unique gems (Lightning, Regen, Strength, Invisible, Fire, Glitch, TP) each with custom shift-click abilities. Includes animated gem selection on first join with spinning title sequence. All players receive a Thunder Crystal item to activate their assigned gem power. Supports custom resource packs and cross-version compatibility.

Random Gem SMP Plugin Complete!

✅ Created Features:

  • 7 unique gem abilities (Lightning, Regen, Strength, Invisible, Fire, Glitch, TP)

  • Animated gem selection on first join with spinning title sequence

  • Thunder Crystal item system (Nether Star) to activate abilities

  • Shift + Right/Left Click detection for abilities

  • Full cooldown system per ability

  • Data persistence (YAML storage)

  • Admin commands (/gem reload, give, set, list, reset)

  • Resource pack support infrastructure

  • XSeries integration for cross-version compatibility (1.8-1.21+)

  • Configurable cooldowns, durations, and messages

Gem Abilities Implemented:

  1. Lightning Gem - Strike lightning on enemy for 5 seconds

  2. Regen Gem - Regeneration VI for 15 seconds

  3. Strength Gem - Strength III for 15 seconds

  4. Invisible Gem - Invisibility for 15 seconds

  5. Fire Gem - Launch fireball with 2x TNT damage

  6. Glitch Gem - Right: Lift/spin player | Left: Dash forward

  7. TP Gem - Teleport to target block (max 100 blocks)

Resource Pack Setup: Edit config.yml and add your resource pack URL to enable custom gem textures. The plugin automatically sends it to joining players.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
14 1,192
src/main/java/com/example/randomgemsmp/RandomGemSMP.java
package com.example.randomgemsmp;

import com.example.randomgemsmp.command.GemCommand;
import com.example.randomgemsmp.listener.GemInteractListener;
import com.example.randomgemsmp.listener.PlayerJoinListener;
import com.example.randomgemsmp.manager.ConfigManager;
import com.example.randomgemsmp.manager.DataManager;
import com.example.randomgemsmp.manager.GemManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class RandomGemSMP extends JavaPlugin {
    
    private ConfigManager configManager;
    private DataManager dataManager;
    private GemManager gemManager;
    
    @Override
    public void onEnable() {
        this.configManager = new ConfigManager(this);
        this.dataManager = new DataManager(this);
        this.gemManager = new GemManager(this);
        
        this.dataManager.loadAllData();
        
        Bukkit.getPluginManager().registerEvents(new PlayerJoinListener(this), this);
        Bukkit.getPluginManager().registerEvents(new GemInteractListener(this), this);
        
        getCommand("gem").setExecutor(new GemCommand(this));
        
        getLogger().info("RandomGemSMP has been enabled!");
    }
    
    @Override
    public void onDisable() {
        if (this.dataManager != null) {
            this.dataManager.saveAllData();
        }
        getLogger().info("RandomGemSMP has been disabled!");
    }
}