MAHERAJUL ISLAM MAHIN

Create a complete Minecraft Java multiplayer plugin called Elemental Power

🌍 7 ELEMENTS

🔥 FIRE

  1. Fireball — Launch a powerful fireball at the target.
  2. Flame Dash — Dash forward while leaving a fire particle trail.
  3. Inferno — Create a fiery explosion around the player.

Passive: Fire Resistance.

⚡ LIGHTNING

  1. Thunder Strike — Call lightning at the targeted location.
  2. Thunder Dash — Dash forward with electric particles.
  3. Storm Field — Repeated lightning strikes around nearby enemies.

Passive: Speed I.

❄️ ICE

  1. Ice Spike — Launch an ice projectile.
  2. Frost Dash — Dash forward and slow nearby enemies.
  3. Blizzard — Create an area of freezing particles that slows enemies.

Passive: Resistance I.

🌪️ WIND

  1. Wind Blast — Knock enemies backward with a powerful gust.
  2. Wind Dash — Perform a fast forward dash.
  3. Tornado — Create a spinning tornado that pulls/knocks nearby enemies.

Passive: Jump Boost II.

🌊 WATER

  1. Water Blast — Launch a water projectile.
  2. Aqua Dash — Dash forward with water particles.
  3. Tsunami — Send a large wave forward that knocks enemies back.

Passive: Water Breathing.

🌑 SHADOW

  1. Shadow Bolt — Fire a dark energy projectile.
  2. Shadow Teleport — Teleport to the targeted location.
  3. Shadow Explosion — Create a dark explosion that damages nearby enemies.

Passive: Night Vision.

💀 SOUL

  1. Soul Beam — Fire a blue soul-energy beam.
  2. Soul Dash — Dash while surrounded by soul particles.
  3. Soul Storm — Create a large soul-energy area that damages enemies.

Passive: Regeneration I.

🎮 CONTROLS

Use a simple ability system:

  • Left-click + Sneak = Ability 1
  • Right-click + Sneak = Ability 2
  • Double Sneak = Ability 3
  • Normal attack/use remains unchanged.

Display the currently selected element and ability cooldown on the action bar.

⏱️ COOLDOWNS

Each ability must have its own configurable cooldown.

Example:

Ability 1: 5 seconds Ability 2: 8 seconds Ability 3: 15 seconds

Prevent abilities from activating while they are on cooldown.

Show: "⚡ Thunder Strike: 3s"

when an ability is cooling down.

✨ EFFECTS

Every ability should have custom:

  • Particles
  • Sounds
  • Knockback
  • Damage
  • Screen/action-bar feedback
  • Impact effects
  • Activation effects

Use Minecraft's built-in particles and sounds whenever possible.

👥 MULTIPLAYER

The plugin must work correctly with multiple players.

Each player should have their own:

  • Element
  • Cooldowns
  • Selected ability
  • Active effects

Players must not share cooldowns or ability states.

Add permission support:

elemental.use elemental.admin elemental.element.<element>

🛠️ COMMANDS

Add:

/element choose <element> /element info /element abilities /element cooldowns /element reload /element give <player> <element>

Admin commands should require appropriate permissions.

📁 CONFIGURATION

Create a config.yml where server owners can customize:

  • Damage
  • Cooldowns
  • Range
  • Knockback
  • Particle amount
  • Ability duration
  • Passive effects
  • Sounds
  • Enable/disable abilities

🛡️ SAFETY & PERFORMANCE

Prevent abilities from:

  • Damaging the caster
  • Causing excessive entity spawning
  • Creating infinite particle loops
  • Breaking the server
  • Causing unnecessary lag

Use efficient scheduled tasks and clean them up when players leave.

📦 PROJECT STRUCTURE

Generate a complete Gradle or Maven project containing:

  • plugin.yml
  • Main plugin class
  • Element manager
  • Ability manager
  • Cooldown manager
  • Player data manager
  • Command system
  • Event listeners
  • Configuration system
  • All 21 abilities
  • README.md
  • config.yml

The final project must compile successfully and be ready to install into a Paper/Spigot server.

Also provide installation instructions and example commands.

Kodari AI
KodariSep 27 at 9:11 am 2
ElementalPower
A comprehensive Minecraft plugin implementing a 7-element ability system with 21 unique abilities. Players choose from Fire, Lightning, Ice, Wind, Water, Shadow, or Soul elements, each with 3 distinct abilities and a passive effect. Features a control scheme using sneak combinations (left-click+sneak, right-click+sneak, double-sneak) with configurable cooldowns displayed on the action bar. Includes per-player state management, permission support, admin commands for element assignment, and a fully configurable config.yml for damage, cooldowns, ranges, knockback, particles, and sounds. Built on a custom inventory GUI framework for element selection, with efficient task scheduling and safety measures to prevent lag and self-damage.
  1. Create the Gradle/Paper project, plugin metadata, configuration, and installation guide.

  2. Implement per-player element data, cooldowns, commands, passives, and sneak-based controls.

  3. Add all 21 abilities with configurable effects and bounded, cleaned-up scheduled tasks.

Created Elemental Power as a Gradle plugin project with all 21 abilities, configurable effects and cooldowns, per-player element and cooldown state, passive effects, commands, permissions, and action-bar feedback. Ability tasks are duration-bounded and cleaned up when players leave.

Build and install: Run gradle build, copy build/libs/ElementalPower-1.0.0.jar into the server’s plugins folder, then start the server. Configuration is in plugins/ElementalPower/config.yml; reload changes with /element reload.

Controls: Sneak + left-click uses ability 1; sneak + right-click uses ability 2; double-tap sneak uses ability 3.

Commands include /element choose <element>, /element info, /element abilities, /element cooldowns, /element reload, and /element give <player> <element>. Admin commands require elemental.admin; element access can be controlled with elemental.element.<element>.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
README.md
settings.gradle
Code
15 1,235
src/main/java/com/kodari/elementalpower/ElementalPowerPlugin.java
package com.kodari.elementalpower;

import net.md_5.bungee.api.ChatMessageType;
import net.md_5.bungee.api.chat.TextComponent;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;

public class ElementalPowerPlugin extends JavaPlugin {
    private PlayerDataManager playerDataManager;
    private CooldownManager cooldownManager;
    private AbilityManager abilityManager;
    private PlayerListener playerListener;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        playerDataManager = new PlayerDataManager(this);
        cooldownManager = new CooldownManager();
        abilityManager = new AbilityManager(this, cooldownManager);
        playerListener = new PlayerListener(this);

        Bukkit.getPluginManager().registerEvents(playerListener, this);
        Bukkit.getPluginManager().registerEvents(new AbilityListener(this), this);
        ElementCommand command = new ElementCommand(this);
        getCommand("element").setExecutor(command);
        getCommand("element").setTabCompleter(command);

        for (Player player : Bukkit.getOnlinePlayers()) {
            playerListener.applyPassive(player);
        }
        Bukkit.getScheduler().runTaskTimer(this, new Runnable() {
            private int seconds;

            @Override
            public void run() {
                for (Player player : Bukkit.getOnlinePlayers()) {
                    abilityManager.updateActionBar(player);
                    if (seconds % 4 == 0) {
                        playerListener.applyPassive(player);
                    }
                }
                seconds++;
            }
        }, 20L, 20L);
        getLogger().info("Elemental Power enabled.");
    }

    @Override
    public void onDisable() {
        if (abilityManager != null) {
            abilityManager.shutdown();
        }
        if (playerDataManager != null) {
            playerDataManager.save();
        }
        Bukkit.getScheduler().cancelTasks(this);
    }

    public PlayerDataManager getPlayerDataManager() { return playerDataManager; }
    public CooldownManager getCooldownManager() { return cooldownManager; }
    public AbilityManager getAbilityManager() { return abilityManager; }
    public PlayerListener getPlayerListener() { return playerListener; }

    public void sendMessage(Player player, String message) {
        String prefix = getConfig().getString("messages.prefix", "&8[&6Elemental&8] ");
        player.sendMessage(ChatColor.translateAlternateColorCodes('&', prefix + message));
    }

    public void sendActionBar(Player player, String message) {
        String colored = ChatColor.translateAlternateColorCodes('&', message);
        player.spigot().sendMessage(ChatMessageType.ACTION_BAR, TextComponent.fromLegacyText(colored));
    }
}