Giter Club home page Giter Club logo

darkbot's Introduction

DarkBot

This project is an attempt at a better rewrite of the Minecraft client for use in automating Minecraft that I started around early July of last year. This isn't limited to simply botting; other uses include (completely) custom clients, server monitors, and more. Multi-protocol support was recently added, allowing the same version of the bot to run on different Minecraft versions (assuming that the corresponding protocol version provider is in the protocols/ directory).

An example task that loads WorldEdit schematic files and constructs them (written by someone else who has since lost the source)

Getting Started

With Eclipse

Open Eclipse.
Right-click in the package explorer area and click Import...
Select Git > Projects from Git and click Next.
Select URI and click Next.
Paste the Git URL for DarkBot (https://github.com/DarkStorm652/DarkBot.git) and click Next, then click Next again at the Branch Selection dialog.
Change the directory to [your eclipse workspace]/DarkBot (change the [] to the actual path to your workspace by clicking browse) and click Next.
Select Use the New Project wizard and click Finish.
In the New Project wizard, select Java Project and click Next.
Type in DarkBot (exact capitalization). If you typed it in properly and all previous steps have been followed, options in the wizard should disable themselves. Click Finish if this is the case.
Once cloned, expand the project in your package explorer. There will likely be a large amount of errors. Right-click "src" and click Build Path > Remove from Build Path. The folder src should move down below "JRE System Library" and all errors should disappear.
Expand src, then expand each folder within src. In each of these folders, right-click each folder (named java, resources, protocols, etc.) and click Build Path > Use as Source Folder.
Expand lib, right click every .jar file, and click Build Path > Add to Build Path.
Right-click build.xml and click Run As > Ant Build (the first option).
Wait for the build to complete and run DarkBot.jar from cmd with --help for args.
Hurray! The plus side to this method (though it may seem lengthier than the one below) is that you can right-click the project folder and click Team > Pull to get new updates. Make sure you run build.xml after every time you update.

Video1: http://www.youtube.com/watch?v=IkK3f9CJygY
Video2: http://www.youtube.com/watch?v=AMPuucdEaOM

Without Eclipse

Clone the project with git or download the source zip from the github page and extract it.
Open the folder and run build.xml (this may require cmd to execute).
Wait for the build to complete and run DarkBot.jar from cmd with --help for args.
Hurray! The downside to this is that you have to delete the folder and redo these steps every time you want to update.

Video: http://www.youtube.com/watch?v=8cACg_XJsA8

To Run

Open Terminal or Command Prompt
Switch to the directory with DarkBot.jar (cd path/to/DarkBot with Terminal or cd C:\path\to\DarkBot with Command Prompt)

For CLI Bot:

Print arguments with java -jar DarkBot.jar -t bot --help
Use java -jar DarkBot.jar -t bot <args> where <args> consists of arguments from the list printed before (such as --username or --server server:port)

  • If arguments keep getting printed, you are missing required arguments or have the wrong format

For CLI Spambot:

Print arguments with java -jar DarkBot.jar -t spambot --help
Use java -jar DarkBot.jar -t spambot <args> where <args> consists of arguments from the list printed before (such as --bot-amount or --server server:port)

  • If arguments keep getting printed, you are missing required arguments or have the wrong format

For GUI (NOT RECOMMENDED, INCOMPLETE):

Run java -jar DarkBot.jar -t gui --force

darkbot's People

Contributors

ash-breeze avatar darkstorm652 avatar harrygallagher4 avatar lflare avatar opl- avatar phanaticd avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.