FBot is a Minecraft bot API to let a Minecraft client connect to servers. See usage for an example
-
Add the API to your Project
-
Do some magic shit ;)
- 1: Single Bot Example with online account:
public static void main(String[] args) { FBot bot = BotFactory.createBot("test@gamil.com", "mysafepassword"); String host = "localhost"; //host of the server int port = 25565; //port of the server bot.connect(host, port, () -> { //Bot is connected bot.sendChatMessage("Hello im a FBot"); }); }
- 2: Single Bot Example with offline account:
public static void main(String[] args) { FBot bot = BotFactory.createBot("example-bot"); String host = "localhost"; //host of the server int port = 25565; //port of the server bot.connect(host, port, () -> { //Bot is connected bot.sendChatMessage("Hello im a FBot"); }); }
- 3: Botter Example with altening accounts:
public static void main(String[] args) { String alteningApiKey = "api-key"; //the api of your altening account int capacity = 10; //the amount of bots that should connect String host = "localhost"; //host of the server int port = 25565; //port of the server FBotter botter = new TheAlteningBotter(alteningApiKey, host, port, capacity); botter.start(); for(FBot bot : botter.getConnectedBots()) { bot.sendChatMessage("Hello im a FBot, connected from a fbotter"); } }
- 1: Single Bot Example with online account:
See the open issues for a list of proposed features (and known issues).
My Discord
- Profile: FebanHD#5673
- Server: Click to join