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:
publicstaticvoidmain(String[] args) { FBotbot = BotFactory.createBot("test@gamil.com", "mysafepassword"); Stringhost = "localhost"; //host of the serverintport = 25565; //port of the serverbot.connect(host, port, () -> { //Bot is connectedbot.sendChatMessage("Hello im a FBot"); }); }
- 2: Single Bot Example with offline account:
publicstaticvoidmain(String[] args) { FBotbot = BotFactory.createBot("example-bot"); Stringhost = "localhost"; //host of the serverintport = 25565; //port of the serverbot.connect(host, port, () -> { //Bot is connectedbot.sendChatMessage("Hello im a FBot"); }); }
- 3: Botter Example with altening accounts:
publicstaticvoidmain(String[] args) { StringalteningApiKey = "api-key"; //the api of your altening accountintcapacity = 10; //the amount of bots that should connectStringhost = "localhost"; //host of the serverintport = 25565; //port of the serverFBotterbotter = newTheAlteningBotter(alteningApiKey, host, port, capacity); botter.start(); for(FBotbot : 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