not_luffy07
📎 1 file 1,796 chars
📄
pasted-code-1790602210038.txt
txt 93 lines
▶
### IMPORTANT: Replace Zombies With Random Player NPCs

Do NOT use Zombies, Skeletons, or any other normal Minecraft mobs for the FightBot system.

Instead, when I use:

`/fightbot spawn `

the plugin must spawn **random Player-style NPCs / fake players**.

Examples:

`/fightbot spawn 1`

`/fightbot spawn 20`

`/fightbot spawn 50`

`/fightbot spawn 100`

Each spawned bot should look like a real Minecraft player, not like a mob.

### Random Player Appearance

Every FightBot should be able to have a random:

* Player name
* Player skin
* Player appearance
* Tab-list name
* Display name

The plugin should use random Minecraft-style names such as:

`StevePvP`

`ShadowX`

`Warrior_01`

`ProKiller`

`NightWolf`

and similar generated names.

Each bot can also have a different random skin.

### Player NPC Behavior

These NPCs should behave like actual Minecraft players and support:

* Walking
* Running
* Jumping
* Looking around
* Following players
* Fighting players
* Using weapons
* Switching items
* Wearing armor
* Using shields
* Using inventory items
* Group movement
* Patrol
* Roaming

They must work with all existing FightBot combat features.

### Important

The bots must be **Player NPCs / Fake Players**, NOT Zombies.

When I spawn 100 bots, I should see 100 player-looking characters in the world.

All existing commands should continue working with these Player NPCs, including:

`/fightbot follow `

`/fightbot follow all `

`/fightbot give all`

`/fightbot kit apply  all`

`/fightbot group all`

`/fightbot patrol`

`/fightbot roam`

The final plugin should make the bots look and behave as closely as reasonably possible to real Minecraft players.
Kodari AI
KodariSep 28 at 1:31 pm 1
PlayerFightBotNPC
Generates realistic player-like NPCs for combat training and arena battles. Spawns random fake players with unique names, skins, and appearances via /fightbot spawn command. Bots mimic real player behavior including walking, running, jumping, looking around, following, fighting, weapon switching, armor wearing, shield usage, and inventory item utilization. Supports group movement, patrol routes, and roaming patterns. Integrates with existing FightBot commands for follow, kit application, and group management. Each bot appears as a genuine player in the world with tab-list presence and display names, enabling large-scale player-versus-environment combat simulations with up to 100 simultaneous NPCs.

Plan:

  1. Set up a Paper plugin with Citizens-backed player NPCs (not mobs).

  2. Implement /fightbot spawning, appearance, combat, equipment, group, follow, patrol, and roam controls.

  3. Add plugin metadata and build dependencies.

Created the Paper FightBot plugin using Citizens player NPCs—not zombies or other mobs. It adds spawning (up to 100), random names and skin profiles, combat, follow/group movement, patrol, roaming, held-item distribution, and configurable kits.

Install Citizens alongside the plugin. These are server-side NPCs, not real player clients; their combat and inventory behavior is therefore limited to what Citizens provides, and tab-list appearance is not guaranteed.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
7 581
src/main/java/com/kodari/fightbot/FightBotPlugin.java
package com.kodari.fightbot;

import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public final class FightBotPlugin extends JavaPlugin {
    private FightBotManager fightBotManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        if (Bukkit.getPluginManager().getPlugin("Citizens") == null) {
            getLogger().severe("Citizens is required to create player-style NPCs.");
            Bukkit.getPluginManager().disablePlugin(this);
            return;
        }

        fightBotManager = new FightBotManager(this);
        getCommand("fightbot").setExecutor(new FightBotCommand(this, fightBotManager));
        fightBotManager.start();
    }

    @Override
    public void onDisable() {
        if (fightBotManager != null) {
            fightBotManager.shutdown();
        }
    }
}