When running the bot, you must supply the following arguments:
-b or --bot - This must be supplied before you give any other arguments.
-u or --username - This is the username that the bot will use (what is used when you log into the Minecraft Client)
-s or --server - This is the server you want the bot to connect to (can use ports, just add : then the port number).
--protocol - The protocol version the bot should use (1.7 servers use protocol 4)
If you are connecting to an offline server you must add the argument -O(capital o) or --offline otherwise you must specify the account password with -p or --password (The password is what you enter into the Minecraft client when loggin in).
Regular Users
If you don't want to modify the code in any way, then read this to get started.
Run the JAR file using the command line or batch/bash file
Use java -jar AIBot.jar -b --help for a list of all available arguments
If you're on windows, I've created a simple batch file that you can use to run the bot quickly, just make sure you change the values in the file to suite your needs.
Developers
Download a copy of the repo to your development workspace using the methods you want (e.g. eGit, SourceTree, GitHub GUI).
Now, make sure that the project is shown in your workspace.
Make sure you add the /lib directory to the project.
To build the project, run the file build.xml as an ant build file
请发表评论