Anton pesonen

make me an fake player plugin. so the bots hit you and you can enter thier inventory and put armor on them

Kodari AI
KodariOct 3 at 7:53 am 1
FakePlayerBots
A Minecraft plugin that spawns fake player bots that can attack players. Users can open a bot's inventory GUI to equip armor and items onto the bot. The plugin uses a custom inventory GUI system where clicking on a bot opens its equipment interface. Players can place armor pieces, weapons, and other items into the bot's inventory slots through an interactive chest-style menu. Bots actively pursue and attack nearby players when equipped with weapons. The system supports multiple simultaneous bots with individual inventories and equipment states. Includes a command to spawn bots and a GUI-based management interface for customizing each bot's gear and behavior.
  1. Use Citizens NPCs for real player-shaped bots and Sentinel for targeting/attacking players.

  2. Add a command to create bots and open a simple armor-management inventory for each.

  3. Create the plugin setup and declare the required plugin dependencies.

Created the FakePlayers plugin. It uses Citizens NPCs for player-shaped bots that chase and attack nearby players. Right-click a bot to open its armor menu.

Commands: /fakeplayer create <name>, /fakeplayer gear <id>, and /fakeplayer remove <id> (also available as /fp). Install Citizens on the server; the plugin tracks its bots across restarts.

Anton pesonen

can you make the command for it /Player spawn 1

Kodari AI
KodariOct 3 at 7:54 am 1
  1. Register /player (with existing aliases) and route spawn <amount> to bot creation.

  2. Keep the existing create, gear, and remove subcommands available.

Added /player spawn <amount>—so /Player spawn 1 spawns one attacking bot. The existing /fakeplayer and /fp aliases and management subcommands still work.

Anton pesonen

it doesent work

Kodari AI
KodariOct 3 at 7:59 am 1

[Generation stopped]

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
5 363
src/main/java/com/kodari/fakeplayers/FakePlayersPlugin.java
package com.kodari.fakeplayers;

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

public final class FakePlayersPlugin extends JavaPlugin {
    private FakePlayerManager fakePlayerManager;

    @Override
    public void onEnable() {
        this.fakePlayerManager = new FakePlayerManager(this);
        Bukkit.getPluginManager().registerEvents(this.fakePlayerManager, this);
        this.fakePlayerManager.loadSavedBots();
        this.fakePlayerManager.startAttacking();
        this.getCommand("player").setExecutor(new FakePlayerCommand(this.fakePlayerManager));
    }
}