kerikyui

create plugin taht will add four elements from avatar cartoon make a few skills for every element and tell me how to get each element and how to use it and make sure that at one time player can only use one elemnt

Kodari AI
KodariApr 17 at 4:36 pm 22,510 (v2)

I’ll create an Avatar-inspired elemental bending plugin where players can master one of four elements with unique skills.

ElementalBending
An Avatar-inspired bending system allowing players to master one of four elements: Water, Fire, Earth, or Air. Each element features unique abilities with cooldowns and configurable costs. Players choose their element through commands or GUI, then unleash powerful bending techniques. Includes particle effects, sound effects, and balanced PvP mechanics. Skills range from offensive blasts to defensive shields and mobility enhancements.

ElementalBending Plugin - How to Use

How to Get an Element:

  1. Join the server

  2. Use /element choose <element> where <element> is:

    • water - Master of water and ice

    • fire - Master of flames and lightning

    • earth - Master of stone and metal

    • air - Master of wind and freedom

How to Use Skills:

  • Use /element info to see your chosen element and available skills

  • Use /element use <skill name> to activate a skill (example: /element use fire blast)

  • Each skill has a cooldown and mana cost

  • Your mana regenerates automatically over time

Skills by Element:

Water Bending:

  • water spout - Launch yourself upward with water

  • ice spike - Shoot an ice projectile that damages and slows enemies

  • healing waters - Heal yourself and nearby allies

  • tidal wave - Create a wave that knocks back enemies in front of you

Fire Bending:

  • fire blast - Launch a fireball projectile

  • fire shield - Activate a protective fire shield that damages attackers

  • lightning strike - Call down lightning on your target

  • combustion - Create an explosive blast at a distance

Earth Bending:

  • earth wall - Raise a temporary wall of stone

  • earth spike - Launch enemies upward with rising earth

  • tremor - Create a shockwave that knocks back nearby enemies

  • metal armor - Temporarily reduce incoming damage

Air Bending:

  • air blast - Blast enemies away with a gust of wind

  • air scooter - Gain speed boost for quick movement

  • tornado - Create a tornado that lifts enemies into the air

  • suffocate - Damage a single target by removing their air

Other Commands:

  • /element reset - Reset your element (requires permission)

  • /element menu - Open element selection menu (coming soon)

All skills have particle effects and sounds! Customize cooldowns, damage, and mana costs in the config.yml file.

kerikyui

make that

Kodari AI
KodariApr 17 at 5:10 pm 100 (v2)

The generation was stopped before any content could be produced.

kerikyui

make that in oreder to use abillities you would need to bind them to hotbar slots in special menu , so make menu for choosing an element and for binding abillities , in order to use abillity you woud need to choose the hotbar slot which has an abillity and in order to use it you would need to left click ,crouch , etc...

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
31 1,984
src/main/java/com/elementalbending/ElementalBending.java
package com.elementalbending;

import com.elementalbending.commands.ElementCommand;
import com.elementalbending.data.PlayerData;
import com.elementalbending.listeners.PlayerJoinListener;
import com.elementalbending.listeners.PlayerQuitListener;
import com.elementalbending.listeners.SkillDamageListener;
import com.elementalbending.managers.ConfigManager;
import com.elementalbending.managers.ElementManager;
import com.elementalbending.managers.ManaManager;
import com.elementalbending.managers.SkillManager;
import lombok.Getter;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;

import java.util.HashMap;
import java.util.Map;
import java.util.UUID;

@Getter
public class ElementalBending extends JavaPlugin {
    
    private ConfigManager configManager;
    private ElementManager elementManager;
    private SkillManager skillManager;
    private ManaManager manaManager;
    private Map<UUID, PlayerData> playerDataMap;
    
    @Override
    public void onEnable() {
        this.playerDataMap = new HashMap<>();
        
        this.configManager = new ConfigManager(this);
        this.elementManager = new ElementManager(this);
        this.skillManager = new SkillManager(this);
        this.manaManager = new ManaManager(this);
        
        registerCommands();
        registerListeners();
        
        manaManager.startManaRegen();
        
        getLogger().info("ElementalBending has been enabled!");
    }
    
    @Override
    public void onDisable() {
        if (manaManager != null) {
            manaManager.stopManaRegen();
        }
        
        if (elementManager != null) {
            elementManager.saveAllPlayerData();
        }
        
        getLogger().info("ElementalBending has been disabled!");
    }
    
    private void registerCommands() {
        getCommand("element").setExecutor(new ElementCommand(this));
    }
    
    private void registerListeners() {
        getServer().getPluginManager().registerEvents(new PlayerJoinListener(this), this);
        getServer().getPluginManager().registerEvents(new PlayerQuitListener(this), this);
        getServer().getPluginManager().registerEvents(new SkillDamageListener(this), this);
    }
    
    public PlayerData getPlayerData(Player player) {
        return playerDataMap.computeIfAbsent(player.getUniqueId(), k -> new PlayerData(player.getUniqueId()));
    }
}