Skip to content

Latest commit

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Fbot

FBot
  1. About
  2. Usage
  3. Todo

About The Project

FBot is a Minecraft bot API to let a Minecraft client connect to servers. See usage for an example

Usage

  • 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");
      }
      }

Todo

See the open issues for a list of proposed features (and known issues).

Contact

My Discord

About

A minecraft 1.8 bot api

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages