edofluxx_33389

Make an minecraft plugin about 20 different gems ench having own 2 ability passive and active ench have own icon and visuals

Kodari AI
KodariAug 25 at 7:53 am 2
GemForgeAbilities
A Minecraft plugin introducing 20 unique gems, each with distinct passive and active abilities. Players discover gems through gameplay, equip them via a GUI-based inventory system, and trigger abilities with configurable keybinds. Each gem features custom icons, particle effects, sound effects, and visual indicators. The plugin includes a comprehensive GUI framework for gem management, cooldown tracking, and ability configuration. Gems range from elemental powers like fire and ice to utility effects like teleportation and healing. The plugin provides full configuration options for ability values, cooldowns, and visual effects, making it highly customizable for server administrators.
  1. Create the Gradle/Paper plugin scaffold and manifest.

  2. Add 20 gem definitions, custom gem item icons, lore, and persistent identification.

  3. Implement passive effects, right-click active abilities, cooldowns, combat hooks, and visuals.

  4. Add a /gems command plus an in-game 20-gem codex GUI.

Created the complete GemEnchants Minecraft plugin from scratch.

  • Added Gradle/Paper project setup and plugin.yml.

  • Added 20 unique gems:

    • Ember, Frost, Storm, Verdant, Tide, Terra, Gale, Shadow, Radiant, Arcane

    • Venom, Blood, Echo, Gravity, Crystal, Lunar, Solar, Phoenix, Aether, Void

  • Each gem includes:

    • Unique icon material

    • Passive ability

    • Active right-click ability

    • Particle and sound visuals

    • Individual cooldown

    • Custom persistent item identification

  • Added passive effects such as regeneration, fire resistance, speed, night vision, resistance, luck, haste, and slow falling.

  • Added combat effects including poison, fire, lightning, knockback, healing, and slowing.

  • Added /gems codex GUI.

  • Added /gems give <player> <gem> admin command.

  • Added tab completion and permission support with gemenchants.admin.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
10 664
src/main/java/com/kodari/gemenchants/GemEnchantsPlugin.java
package com.kodari.gemenchants;

import org.bukkit.Bukkit;
import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;

import java.util.Objects;

public final class GemEnchantsPlugin extends JavaPlugin {
    private GemManager gemManager;

    @Override
    public void onEnable() {
        GemItemFactory itemFactory = new GemItemFactory(this);
        gemManager = new GemManager(this, itemFactory);
        GemMenu gemMenu = new GemMenu(itemFactory, gemManager);
        GemCommand gemCommand = new GemCommand(gemMenu, itemFactory);

        Bukkit.getPluginManager().registerEvents(gemManager, this);
        Bukkit.getPluginManager().registerEvents(gemMenu, this);
        PluginCommand command = Objects.requireNonNull(getCommand("gems"));
        command.setExecutor(gemCommand);
        command.setTabCompleter(gemCommand);
        getLogger().info("Loaded 20 gem enchantments.");
    }

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