the_mikeyy_

🎯 LOCKED TARGETING SYSTEM (VERY IMPORTANT FIX) Core Rule:

Echo ONLY switches targets when commanded AI will NOT randomly change targets Behavior Logic:

If BOTH are present:

Players ✅ Echoes ✅ → Echo focuses ONLY on its current locked target If target disappears:

Echo enters idle tracking mode Does NOT switch unless commanded Command: /echo target <IGN> Locks target permanently until:

New command is issued Target dies ⚔️ TARGET PRIORITY SYSTEM Default (no command):

Attack nearest player If /echo target used:

Override everything Echo vs Echo:

Only happens if:

Explicitly targeted OR No players exist nearby (configurable) 🧬 PERSONALITY-BASED ABILITY SYSTEM

Each Echo can unlock CUSTOM ABILITIES based on personality + evolution

🎭 PERSONALITY → ABILITY TYPES 🟥 Aggressive Echo Abilities:

Rage Mode (temporary strength boost) Dash Attack 🟦 Defensive Echo Abilities:

Shield Burst (temporary resistance) Heal Pulse 🟩 Hunter Echo Abilities:

Speed Boost while chasing Mark Target (extra damage to one player) 🟨 Opportunist Echo Abilities:

Backstab bonus damage Invisibility (short duration) ⚙️ ABILITY RULES Max 2 abilities per Echo Abilities unlock when:

Echo levels up Or meets conditions (kills, survival, wins) 🧪 CUSTOM ABILITY SUPPORT Abilities should be:

Fully configurable Can include:

Potion effects Movement boosts Damage modifiers Custom triggers 🎮 ABILITY COMMAND SYSTEM Give Ability: /echo ability give <IGN> <ability> Adds ability to player’s Echo Remove Ability: /echo ability remove <IGN> <ability> List Abilities: /echo ability list <IGN> 📢 UPGRADE & ABILITY NOTIFICATIONS

Whenever an Echo:

🔼 Levels Up:

Send message to owner:

Your Echo has evolved to Level X ✨ Unlocks Ability:

Your Echo has unlocked ability: <Ability Name> ⚠️ Reaches Max Abilities (2):

Your Echo has reached maximum abilities 🔔 Optional:

Add:

Sound effects Title/subtitle messages 🧠 AI + ABILITY INTEGRATION

Echo should:

Use abilities intelligently, not randomly:

Low HP → defensive ability Chasing → speed ability Combat → offensive ability ⚙️ CONFIG (FINAL ADDITION) targeting: lock_target: true auto_switch: false

abilities: enabled: true max_per_echo: 2 auto_unlock: true notify_player: true

ai: ability_usage: smart personality_based: true 🔥 FINAL EXPERIENCE (NOW COMPLETE) Echo locks target → no random switching AI learns + adapts Echo develops personality Gains unique abilities Max 2 abilities → strategic builds Player gets notified on:

Level ups Ability unlocks Echo feels like:

A real evolving rival

Kodari AI
KodariApr 8 at 6:15 pm 19,623 (v2)

I’ll create an evolving AI rival system where each player has a personalized Echo with unique abilities and smart targeting.

EchoRivals
A competitive PvE plugin where each player gets an AI-powered Echo rival that evolves, develops unique personalities, and learns custom abilities. Features a smart targeting system with locked combat focus, personality-based behavior (Aggressive, Defensive, Hunter, Opportunist), and an ability unlock system where Echoes gain up to 2 unique powers. Includes level progression, intelligent AI that uses abilities strategically, and real-time notifications for evolution milestones.

Project complete! Created EchoRivals - an AI rival system featuring locked targeting, personality-based behavior with 4 types (Aggressive, Defensive, Hunter, Opportunist), smart ability usage with max 2 abilities per Echo, level progression with XP from kills/hits/survival, and comprehensive notifications with sounds and titles.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
27 1,765
src/main/java/com/echovals/EchoRivalsPlugin.java
package com.echovals;

import com.echovals.commands.EchoCommand;
import com.echovals.listeners.CombatListener;
import com.echovals.listeners.DeathListener;
import com.echovals.listeners.PlayerListener;
import com.echovals.managers.AbilityManager;
import com.echovals.managers.ConfigManager;
import com.echovals.managers.EchoManager;
import com.echovals.managers.TargetingSystem;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class EchoRivalsPlugin extends JavaPlugin {

    private ConfigManager configManager;
    private EchoManager echoManager;
    private AbilityManager abilityManager;
    private TargetingSystem targetingSystem;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.configManager = new ConfigManager(this);
        this.abilityManager = new AbilityManager(this);
        this.targetingSystem = new TargetingSystem(this);
        this.echoManager = new EchoManager(this);

        registerCommands();
        registerListeners();
        
        startAITick();
        
        getLogger().info("EchoRivals has been enabled!");
    }

    @Override
    public void onDisable() {
        if (echoManager != null) {
            echoManager.shutdown();
        }
        getLogger().info("EchoRivals has been disabled!");
    }

    private void registerCommands() {
        getCommand("echo").setExecutor(new EchoCommand(this));
    }

    private void registerListeners() {
        Bukkit.getPluginManager().registerEvents(new CombatListener(this), this);
        Bukkit.getPluginManager().registerEvents(new DeathListener(this), this);
        Bukkit.getPluginManager().registerEvents(new PlayerListener(this), this);
    }

    private void startAITick() {
        Bukkit.getScheduler().runTaskTimer(this, () -> {
            if (echoManager != null) {
                echoManager.tickAllEchoes();
            }
        }, 20L, 5L);
    }
}