lemonspirit_xd
📎 1 file 5,320 chars
📄
text.txt
txt 126 lines
▶
Plugin Name : Aspect SMP Season 3
All Messages prefixes : Aspect SMP>> (in red bold)
1.21 - 1.21.11

⚡ Electric Aspect
Passive: Strength I during thunderstorms.
Ability 1 – Thunderbolt: Strikes the enemy with 10 lightning bolts, dealing 19 damage.
Ability 2 – Speedy: Strikes the owner with a friendly lightning bolt and gives Speed VII for 10 seconds.
Terrain Attack: Displays "The Field Is Charged", all Electric Aspect users gain Strength II for 1 minute. �

🌑 Dark Aspect
Passive: Strength I at night, Weakness I during the day.
Ability 1: Creates a 10×10 hollow obsidian box for 20 seconds.
Ability 2: Players within 10 blocks receive Nausea II, Blindness II, and Slowness II for 7 seconds. �

🥊 Fighting Aspect
Passive: Permanent Strength I.
Ability 1: Gain Strength III for 5 seconds.
Ability 2: Dash forward and launch enemies away. �

🐉 Dragon Aspect
Ability 1: Fires a ball into the sky that summons meteors for 5 seconds.
Ability 2: Creates a dark blue particle circle that launches nearby players away. �

❄️ Ice Aspect
Ability 1: Shoots 3 ice spikes, dealing 15 damage.
Ability 2: Next hit freezes the target, preventing movement for 5 seconds. �

🧚 Fairy Aspect
Ability 1: Heals 3 hearts.
Ability 2: Charges for 3 seconds, then fires a beam dealing 32 damage. �

🧠 Psychic Aspect
Ability 1: Next hit allows the owner to control the target toward their crosshair.
Ability 2: Makes all players within 30 blocks glow. �

🌿 Grass Aspect
Ability 1: Slight knockback dealing 17 damage.
Ability 2: Gain Strength II for 5 seconds.
Terrain Attack: Grass Aspect players within 50 blocks gain Strength II for 30 seconds. �

🌊 Water Aspect
Passive: Permanent Dolphin's Grace I, plus Strength I while in water or rain.
Ability 1: Ride water waves for 5 seconds.
Ability 2 – Rain Dance: Sets weather to rain and gives all Water Aspect users Strength I. �

🌌 Cosmic Aspect
Passive: None.
Ability 1: Pulls the player in the owner's crosshair.
Ability 2: Creates a circular particle shield that knocks enemies away. �

🔥 Fire Aspect
Passive: Strength in the Nether, Weakness while standing in water.
Ability 1: Creates a fiery particle circle that burns players within 10 blocks (except the owner).
Ability 2: Fires a fireball dealing 19 damage. �

🪨 Titan Aspect
Ability 1: Sets the owner's size to 0.4 for 10 seconds.
Ability 2: Next hit applies a Giant Curse, setting the victim's size to 3.0. �

💨 Air Aspect
Ability 1: Dash forward 20 blocks.
Ability 2: Summons a tornado that pulls players in, spins them upward, and throws them away. �

👻 Ghost Aspect
Ability 1: Plays the Ender Dragon sound; players within 20 blocks receive Slowness IV for 10 seconds.
Ability 2: Next hit creates a bond. If the owner dies, the bonded player also dies. �

⚙️ Steel Aspect
Ability 1: Next hit steals a random item from the victim's inventory.
Ability 2: Grants Resistance II for 20 seconds

Commands :

/ability1 - uses ability1 of aspect
/ability2 - uses ability2 of aspect
/terrainattack - uses terrain attack of an aspect
/aspect trust  - trusts a player and aspect abilities cannot be used on trusted player and also cannot hit them 
/aspect trust list - shows the lists of trusted players
/aspect untrust - untrusts a player and aspect abilities now can be used on them and also can hit them
/aspect reroll  - rerolls a player's aspect and gives them a random aspect and removes previous aspect's effect
/aspect ability1 - uses ability1 of an aspect
/aspect ability2 - uses ability2 of an aspect
/aspect lives withdraw  - withdraws the number the lifes
/aspect revive  - revives a player and revived player will have 3 lives 
/aspect customitem give  
/aspect set   - sets a player's specific aspect
/aspect withdraw - withdraws the aspect and gives it default item in the inventory 
/aspect INVENTORY GUI - shows all aspects and their abilities and custom items in the INVENTORY GUI and items cannot be taken from it only operator can take items from it
/aspect reload - reloads the config 
/aspect start - Gives all players a random aspect 



Player's actionbar Will Be Like :-

if Abilities Are Locked 🔒 
" Aspect | Locked 🔒  | Locked 🔒  | Aspectian Lives "

And If It Is Unlocked
" Aspect | Ability1  | Ability2 "

" Aspect | Ability1  | Ability2 "

And A Player Have To Do :
2 Kills for ability1
5 kills for ability2


Cooldowns :

Caution : Player Cant bypass The Cooldown By Rejoining Server Or by Server Restarting

Cooldowns :
Ability1 - 3 minutes
Ability2 - 3 minutes
Terrain Attacks - 10 minutes

Player's Aspect Or Player Data Will Not Gone Even If Server Restarts Or Crashes or stop and start
Make The Plugin Low End And No Console Logs Spam For Passive Abilities And Plugin Can Also Run Even in a 2gb ram server Make The Plugin Light Weight and low tps impact
and all features and abilities passive abilities everything should work properly
also add tab completion for all commands

also add some particles and sound effects

all features should be implied properly
Kodari AI
KodariJul 14 at 3:34 pm 6
AspectSMP
A lightweight, low-TP-impact Minecraft plugin for 1.21-1.21.11 that implements 15 unique Aspects with distinct abilities. Features include passive/active abilities, kill-based unlock progression, persistent cooldowns, terrain attacks, trust system, lives system, action bar HUD, and a GUI overview. Data persists across restarts with no console spam. Optimized for 2GB RAM servers.

I’ll create the AspectSMP plugin — a complete aspect-based combat system with 15 unique aspects, commands, GUI, persistence, and cooldowns.

lemonspirit_xd

Complete the plugin

Kodari AI
KodariJul 15 at 3:49 am 11

Let me start creating all the files. I’ll work through them systematically.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
39 2,768
src/main/java/com/aspectsmp/AspectSMP.java
package com.aspectsmp;

import com.aspectsmp.command.Ability1Command;
import com.aspectsmp.command.Ability2Command;
import com.aspectsmp.command.AspectCommand;
import com.aspectsmp.command.TerrainAttackCommand;
import com.aspectsmp.gui.GUIManager;
import com.aspectsmp.gui.GUIListener;
import com.aspectsmp.listener.PlayerListener;
import com.aspectsmp.manager.AspectManager;
import com.aspectsmp.manager.CooldownManager;
import com.aspectsmp.manager.DataManager;
import com.aspectsmp.manager.TrustManager;
import com.aspectsmp.util.ColorUtil;
import org.bukkit.plugin.java.JavaPlugin;

public class AspectSMP extends JavaPlugin {

    private DataManager dataManager;
    private CooldownManager cooldownManager;
    private AspectManager aspectManager;
    private TrustManager trustManager;
    private GUIManager guiManager;
    private String prefix;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        loadConfig();

        this.dataManager = new DataManager(this);
        this.cooldownManager = new CooldownManager(this);
        this.aspectManager = new AspectManager(this);
        this.trustManager = new TrustManager(this);
        this.guiManager = new GUIManager(this);

        registerCommands();
        registerListeners();

        getLogger().info("AspectSMP enabled!");
    }

    @Override
    public void onDisable() {
        // Apply passives for all online players before saving
        if (aspectManager != null) {
            for (org.bukkit.entity.Player player : getServer().getOnlinePlayers()) {
                aspectManager.removePassive(player);
            }
        }
        if (dataManager != null) {
            dataManager.save();
        }
        getLogger().info("AspectSMP disabled!");
    }

    public void loadConfig() {
        this.prefix = ColorUtil.color(getConfig().getString("prefix", "&4&lAspect SMP>> &r"));
    }

    private void registerCommands() {
        getCommand("ability1").setExecutor(new Ability1Command(this));
        getCommand("ability2").setExecutor(new Ability2Command(this));
        getCommand("terrainattack").setExecutor(new TerrainAttackCommand(this));
        AspectCommand aspectCommand = new AspectCommand(this);
        getCommand("aspect").setExecutor(aspectCommand);
        getCommand("aspect").setTabCompleter(aspectCommand);
    }

    private void registerListeners() {
        getServer().getPluginManager().registerEvents(new PlayerListener(this), this);
        getServer().getPluginManager().registerEvents(new GUIListener(), this);
    }

    public DataManager getDataManager() {
        return dataManager;
    }

    public CooldownManager getCooldownManager() {
        return cooldownManager;
    }

    public AspectManager getAspectManager() {
        return aspectManager;
    }

    public TrustManager getTrustManager() {
        return trustManager;
    }

    public GUIManager getGuiManager() {
        return guiManager;
    }

    public String getPrefix() {
        return prefix;
    }
}