Home›Java›Mods›BotAPI
ModsJava

BotAPI

Java mod listed for Minecraft 1.8–1.9. Download on the author's site.

⬇ Download on Spigot
Screenshots

[​IMG]

Bot Movement Gif

Dependencies
Description
Usage
Spoiler: Bot Creating
Code (Text):
  try {
                Bot bot = new Bot(player.getLocation(), player, MovementCircleAround.class, new BotActionHandler() {
                    @Override
                    public void onAttacked(Bot bot, Player player) {
                        player.sendMessage("You just killed the bot.");
                        bot.despawn();
                    }
                }).equipRandomArmor().equipRandomItem();
            } catch (ExceptionBotAlreadyExists exceptionBotAlreadyExists) {
                exceptionBotAlreadyExists.printStackTrace();
            }

Movement Types
Spoiler: Custom MovementType
Code (Text):

public class MyMovement extends MovementType {

    public MyMovement(Player target, Bot bot) {
        super(target, bot);
    }


    @Override
    public void run() {
        try {

            Player target = getTarget();
            Bot bot = getBot();

            bot.swing();
            bot.teleport(target.getLocation());

        } catch (Exception e) {
            this.getBot().getTask().cancel();
        }
    }

}
Code (Text):
  try {
                Bot bot = new Bot(player.getLocation(), player, MyMovement.class, new BotActionHandler() {
                    @Override
                    public void onAttacked(Bot bot, Player player) {
                        player.sendMessage("You just killed the bot.");
                        bot.despawn();
                    }
                }).equipRandomArmor().equipRandomItem();
            } catch (ExceptionBotAlreadyExists exceptionBotAlreadyExists) {
                exceptionBotAlreadyExists.printStackTrace();
            }
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

BotAPI is a free Minecraft Java mod. Compatible with Minecraft 1.8, 1.9. Downloaded 852 times (via Spigot). Download it and open it directly in the game.

Explore more