smartmining

Develop an advanced spawnable PvP bot plugin for Minecraft that allows players to summon bots with the command /combatbot spawn [player] [level] [gear_profile]. The bot should utilize a customizable config file to equip a specified inventory layout, including armor and weapon slots. Implement distinct combat styles for swords, axes, and ranged weapons, featuring advanced techniques such as auto-splashing potions, dynamic movement for parkour integration, and evasive maneuvers. Additionally, incorporate a fighting skill level system from 1 to 5 to determine bot capabilities, ensuring increasingly sophisticated behaviors and combat strategies at higher levels. It need to be able to, when spawned choose a player to attack and only attack him, only be able to see from this player, and disapear if the player dies. Make it so that if a player / bot die a command in the console get run (can be changed in config) with a placeholder such as {player} {bot}.

Kodari AI
KodariJul 2 at 11:46 pm 3

I’ll create a comprehensive CombatBot plugin with AI-controlled PvP bots featuring skill levels, combat styles, gear profiles, and configurable commands.

CombatBot
An advanced spawnable PvP bot plugin for Minecraft. Players can summon AI-controlled combat bots using /combatbot spawn [player] [level] [gear_profile]. Features 5 skill levels with increasingly sophisticated combat behaviors, multiple combat styles (sword, axe, ranged), configurable gear profiles, auto-splash potions, dynamic movement with parkour integration, and evasive maneuvers. Bots target a single player and despawn on target death. Configurable console commands run on bot/player death with {player} and {bot} placeholders.
smartmining

well i guess idk if it woks since when i do the command with the target myself, it says it's been spawned but i can't see it so fix this please

Kodari AI
KodariJul 3 at 2:00 am 8

Let me read the actual files to understand what’s happening.

Let me check the config and plugin.yml:

Now I see the issues. The bot is a zombie with setAI(false) and pure velocity-based movement, but it never faces its target — so it just stands there like a frozen, directionless zombie. No visual cue makes it obvious a bot spawned. Let me fix all of this

Now let me also add the visibility system — bot should only be visible to its target player, and I’ll add the missing BotSkillLevel.java:

Now I’ll add visibility control (bot only visible to its target) and improve the movement reliability

Now I need to handle players who join after the bot is spawned — they should also not see the bot. Let me add that to the listener

Now add the missing Player import

smartmining

can you try again since i didn't get a respond please

Kodari AI
KodariJul 3 at 3:53 pm 1

Let me read the current state of all the files to diagnose the issue properly.

<batch_operations> <operations><read limit offset path="src/main/java/com/example/combatbot/CombatBotPlugin.java" /><read limit offset path="src/main/java/com/example/combatbot/bot/BotEntity.java" /><read limit offset path="src/main/java/com/example/combatbot/bot/BotManager.java" /><read limit offset path="src/main/java/com/example/combatbot/command/CombatBotCommand.java" /><read limit offset path="src/main/java/com/example/combatbot/config/ConfigManager.java" /><read limit offset path="src/main/java/com/example/combatbot/listener/BotListener.java" /><read limit offset path="src/main/resources/plugin.yml" /><read limit offset path="src/main/resources/config.yml" /></operations> </batch_operations>

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
12 1,044
src/main/java/com/example/combatbot/CombatBotPlugin.java
package com.example.combatbot;

import com.example.combatbot.bot.BotManager;
import com.example.combatbot.command.CombatBotCommand;
import com.example.combatbot.config.ConfigManager;
import com.example.combatbot.listener.BotListener;
import org.bukkit.plugin.java.JavaPlugin;

public class CombatBotPlugin extends JavaPlugin {
    private BotManager botManager;
    private ConfigManager configManager;

    @Override
    public void onEnable() {
        this.configManager = new ConfigManager(this);
        this.botManager = new BotManager();

        getCommand("combatbot").setExecutor(new CombatBotCommand(this));
        getServer().getPluginManager().registerEvents(new BotListener(this), this);

        getLogger().info("CombatBot has been enabled!");
    }

    @Override
    public void onDisable() {
        if (botManager != null) {
            botManager.removeAllBots();
        }
        getLogger().info("CombatBot has been disabled!");
    }

    public BotManager getBotManager() {
        return botManager;
    }

    public ConfigManager getConfigManager() {
        return configManager;
    }
}