Minebot is a mod for minecraft that takes control of the player and automatically does tasks for you. It simulates keyboard and mouse input to interact with the word.
Minebot is written to be played on normal minecraft in survival mode. Creative mode and some mods partially work but are not targeted.
The bot is controlled by giving it commands using the chat line. For advanced uses, it can be controlled using simple scripts or the Javascript API.
Have a look at the Getting Started Wiki Page to see how to use the bot.
This repo also contains an independent bow aiming helper.
Install Forge mod loader.
Get the latest release.
Extract the ZIP file and put the jar files in your minecraft mods directory.
Use the issue tracker for bugs or to get help with your stuff. I'm not available in the minecraft forum any more (it's just to slow and blown-up).
The developer version may contain more bugs than the real version.
Building Minebot is straight forward. You need linux, git and the normal java development tools.
If you encounter exceptions during the build, try running this in the minebot directory:./gradlew --no-daemon build
I won't develop this mod any further. Minecraft 1.8.9 is the last supported version. A baisc but incomplete port is available for Minecraft 1.11.2.But I will be accepting PRs to this repository.
I use eclipse neon for development. You can simply import Minebot as existing project.
================== Message from 1.16.3 Porter (Vaccinate) =============Some kind of law message saying I'm not responsible if you get banned for botting anywhere etc.Not accountable for anything that goes wrong here, it's your choice if you choose to use the codeand all the consequences of doing so.I was mainly focused on Minebot and not AimBow.Another point: There are some slight mapping issues with functions, do take a look at documentationhttps://forge.yue.moe/javadoc/1.16.3/overview-summary.htmlhttps://gist.github.com/gigaherz/2dfa77c6efc7d1248ef88ec1920c0a93#file-1152to1161-xmlEspecially helpful for 1.16.3 development links.
Using IntelliJ IDE & Gradle:Setting up:I have commented out the maps and the stats sections - I did delete instead of comment out some code(I know, my bad) but if you look through the first commit and ctrl-F for map and stats you should findmost of the calls.Step 1: Clone the repoStep 2: Open the project with IntelliJStep 3: Inside IntelliJ, Navigate to minebot/Minebot/src/build.gradleStep 4: Right click it and select "Import Gradle Project"Step 5: That should open a section with the gradle project, Minebot, and a little elephant to the leftStep 6: Expand Minebot, Tasks, fg_runs, genIntelliJRuns.Step 7: Double click, it will set your IntelliJ up to be ready to run Minecraft and import the projectStep 8: Expand Minebot, Tasks, fg_runs, double click runClientStep 9: When in IntelliJ, Set up your SDK to use Java 1.8 (I believe it's the only one working withMinecraft at the given time)This will run the code and open a Minecraft launcher with this version of Minecraft on it.Happy development!
If I'm gone when it comes to implementing 1.17.x or future versions, essentially:First you need to upgrade the build.gradle and the mods.toml. These can be foundin Minebot/src/main/resources/META-INF. For 1.16.3 it was important that weupdated the mods.toml to include a license="x" portion for mods to run.I assumed it was GNU based on Michael's comments. When you're here, increaseloaderVersion="[xx,)" to the valid one for the version. If you're not sure, find some othermod's github and check what they're using for the version you're trying to port to.
Then, you'll need to update the build.gradle - once again see what other modders use here, butlook for mappings channel: 'snapshot', version: 'xxxx' for your version and then thedependencies { minecraft '...' } needs your forge version in it.
Now, you can "Reimport all gradle projects" in your IntelliJ Gradle window (Above the little elephant)
If there are many errors, unlucky. Go through each one by one - if it's a fault import, lookfor the new mapping in the documentation for your version. See one of the links to knowwhat I'm talking about. Then, one by one, replace all references to it.Good luck & Happy coding,
The main classes of Minebot have some Javadoc in them. Most other classes are undocumented but should explain themselves.
How to add a new command:
How to implement a new strategy:
How to implement a new searching strategy (the fast way)
How to implement a new task: