darkstorm652 / darkbot Goto Github PK
View Code? Open in Web Editor NEWMinecraft thin client and automation framework
License: BSD 2-Clause "Simplified" License
Minecraft thin client and automation framework
License: BSD 2-Clause "Simplified" License
When farming, if there are no blocks available to farm, the bot will take a default behavior to use /home to return to its home location on servers with /home support. This should not be default behavior.
sometimes when farming it just goes to spawn
Normal servers send chat messages as {"text":" message"}. Servers on open-to-lan clients send them as {"translate":"chat.type.text","using":["username","message"]}, resulting in the bot (protocol 74) being unable to handle the message.
What protocol supported 1.8? and there are new update?
these plugins for example don't work with darkbot
http://www.spigotmc.org/resources/protocolsupport.2367/
http://www.spigotmc.org/resources/carbon.1258/
Please Help Me My Bots Following Me I Do [!]Commands But They Don't Follow Is Their A Problem With The Bot Or With The Owner ..... And Please add a Tab That Make A Bot Do /register pass pass and /login pass For Cracked Server :/ Thanks
Just to put it out there to those who are busy hoping for an update from the creator. I have bad news for all of you. Dark, also known as Robbin was part of a fatal car accident. He will be forever remembered by his family and friends. The culprit is still at large.
Bug: Method ChestInventory.selectItemAtWithShift crashes every time you call it with slot >= 54.
Fix:
@Override
public synchronized void selectItemAtWithShift(int slot) {
delay();
ItemStack item = getItemAt(slot);
int rangeStart, rangeEnd;
if(item == null)
return;
if(slot < items.length) {
rangeStart = items.length;
rangeEnd = items.length + inventory.length;
} else {
rangeStart = 0;
rangeEnd = items.length;
}
boolean slotFound = false;
for(int i = rangeStart; i < rangeEnd; i++) {
if((slot < items.length ? inventory[i - items.length] : items[i]) == null) {
if(slot < items.length) {
items[slot] = null;
inventory[i - items.length] = item;
} else {
items[i] = item;
inventory[slot - items.length] = null;
}
slotFound = true;
break;
}
}
if(!slotFound)
return;
bot.getEventBus().fire(new InventoryChangeEvent(this, slot, 0, (short) 0, item, true));
}
I tried making a PR but i failed. My GitHub skills are just terrible, so I'm posting this as an issue with proposed fix.
I left my bot online 24 hours on a drug server farming for "weed" but I found out that after about 2 hours in-game, it clipped into a block multiple times and then disconnected with "bad packet". It could be NCP but can there be a fix so when the bot gets kicked, it can display the reason?
So sorry for posting it here. I'm running Mac OS X and I compiled it correctly. However, I can't seen to get the args right. Also it says something about a new line token?
Any help? Thanks
In some cases the BlockChangeEvent is fired with wrong coordinates. In many cases these coordinates appear to be block coordinates within chunks. It happened in these cases:
Inventory interactions were broken by the transition to external protocol handling. All attempts to move things in inventory via packet 102 result in transactions (via packet 106) to be not accepted.
(Edited by DarkStorm for actual bug causing previously reported issue below)
Sorry if this is too much but can the inventory management be improved to match nocheat's standard? When farming, my bot can't store the items in the chest because it's clicking too fast. Also, it is next to impossible for the bot to equip armor, drop items and drop inventory because of that.
If you don't have any idea of what I'm talking about, I mean something like WeepCraft's dropping mechanic where there is a slight delay between each item stack.
What do i execute at the command line to compile the development branch?
i got 223b file -_-
Sir would you mind adding support for cracked servers like auto register and/or auto login? Thank you for reading this!
while botting a random server for fun some random person was able to do commands to the bots without being owner how is basically very easy you say the owners name and then a command ex Notch is the owner and a random player named popcorn can command bots by saying this in chat: " Notch !say HI" they bots will then say hi without notch doing a command and fooling the bots that Notch gave them a command.
The bot entity will not handle velocity packets
Hello !!, sorr for my bad english ;)
I have error when connect the server the server is v 1.7.2
ERRORS:
[BOT] Connecting... [BOT] Error: Unable to connect (java.lang.NullPointerException)
This is of DarkBotMC Launcher and when use in cmd my console have millions errors
Pls i need help ;(
If I run through command line or through the GUI, I keep getting "java.net.UnknownHostException: login.minecraft.net". Did the login code break?
DarkBot should have the ability to retrieve scoreboard teams
Minecraft source example:
public String getTeam(GuiPlayerInfo playerInfo) {
ScorePlayerTeam playerTeam = getWorld().getScoreboard().getPlayersTeam(playerInfo.name);
return ScorePlayerTeam.formatPlayerName(playerTeam, playerInfo.name);
}
Whenever I attempt to join a server, I receive the following error:
at java.lang.Thread.run(Thread.java:744) [UnemployedWalrus] Disconnected: Read error: java.io.IOException: End of stream
When I connect with my normal account, I receive no error.
Extra information:
Any help is appreciated, and I would be happy to supply more information if necessary.
Thank you,
Will Minnis
I understand you have had some trouble implementing the minecraft protocol.
I suggest you use MCProtocolLib to implement your new protocol provider.
Currently protocol is only for 1.5 and 1.6 versions of Minecraft. Update would be really nice, even though you didn't commit anything to this project for 4 months...
When I compile with the new gradle method I just get a emtpy 1kb jar file with "gradle build" Is it not fully set up yet or am I doing something wrong?
This task would just be like the attackall task except it only hunts for mobs or animals or everything except for players.
For some reason when a bot falls it is slower than normal player fall speed so servers with no cheat plus will think the bot is flying, if it falls from 6 blocks or higher it will die from constantly get fall damage when getting teleported up and hitting the ground and die. If the fall is higher the bot will get kicked for flying You should if you have anytime add a new parameter like --nocheatplus or --nocheat i find this a bit annoying but everything else is nice.
Suggestion: If you could add something to stop the bot from attacking the owner or a player when !attackall is being used that would be nice too.
-Glitch
Darkstorm, can you make a 1.8 protocol please? it would be great...
I have 4k proxies servers. But i can't register bots on server, beacouse I can register only 1 acount per 1 IP. PROXY DONT WORK!
When I try to run DarkBot I get the following error message and I don't know how to solve it / interpret it^^
C:\Users\Luca\DarkBot\DarkBotMaster>java -jar DarkBot.jar -t bot -o Mike_Dillon
-u <my email address> -p <my password> -s 127.0.0.1
[JackDawn] YggdrasilSession{username=JackDawn,password=<my password>,accessToken=<some random letters>,clientToken=<more letters>,selectedProfile=YggdrasilSession.Profile{id=<again more letters>,name=JackDawn},availableProfiles=[YggdrasilSession.Profile{id=<and some letters the last time>,name=JackDawn}]}
java.io.EOFException
at java.io.DataInputStream.readInt(Unknown Source)
at org.darkstorm.darkbot.minecraftbot.protocol.AbstractProtocol.readHeader(Unknown Source)
at org.darkstorm.darkbot.minecraftbot.protocol.SocketConnectionHandler$ReadTask.run(Unknown Source)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
[JackDawn] Disconnected: Read error: java.io.EOFException
EDIT: I have a localhost server with version 1.7.9 vanilla running where I try to connect to.
List of Stuff + I found 404
The destroy command acts very weird the bot will say Destroying! and wont do anything unless you break blocks all around it and break the block its trying to break.
Bots will be kicked on join if standing afk for 10 seconds
Weird reactions to Skeletons randomly crouches until skeleton kills bot
when bots are Mining in !Mine Gravel makes them spaz out
Enhancements:
When handling a command that has a x y z in it you could add support for the ~ sysmbol like in minecraft commands ex: /setblock ~3 ~-1 ~4 Dirt
commands through console Like in a minecraft server in the console you could type normal chat commands without the !
!derp !twerk on spambot
A !sprint command?
!mine on spambot or !destroy? maby like make all bots mass mine?
a --mute parameter or something to stop bots from talking completely
Thanks for reading my Suggestions & Bugs :D
Also i noticed the --tor parameter is that not fully added yet or is there some way i can use it?
The mining task will miss adjacent ores in veins and ore drops as a result of the implementation (or lack thereof), and the tree chopping task can have log cutting improved.
There needs to be a way to make it pick up drops within like 3-4 blocks when mineing or choping trees because it misses lots of blocks
Disconnects as soon as a player joins a server.
Example being running a bot on a server for 24/7, getting the bot to automatically disconnect if a player comes online like the staff. It would be handy to be able to input a list of players for the bot to watch out for and if they are online, the bot automatically disconnects.
I compiled darkbot from this fork:
https://github.com/DarkStorm652/DarkBot/tree/8a7234b136e8d24d910c0d96c3f4b1fbd5691847
After compiling I tried to run it but with no success.
I get This error message:
[Bot0] Error connecting: java.lang.NullPointerException
[Bot4] Error connecting: java.lang.NullPointerException
[Bot8] Error connecting: java.lang.NullPointerException
[Bot3] Error connecting: java.lang.NullPointerException
[Bot6] Error connecting: java.lang.NullPointerException
[Bot2] Error connecting: java.lang.NullPointerException
[Bot1] Error connecting: java.lang.NullPointerException
[Bot7] Error connecting: java.lang.NullPointerException
[Bot7] Error connecting: java.lang.NullPointerException
[Bot1] Error connecting: java.lang.NullPointerException
[Bot2] Error connecting: java.lang.NullPointerException
[Bot6] Error connecting: java.lang.NullPointerException
[Bot3] Error connecting: java.lang.NullPointerException
[Bot8] Error connecting: java.lang.NullPointerException
...
Startup line:
java -jar DarkBot.jar -t spambot -O -a --tor -b 10 -s 69.69.69.69:1337 -o LosTigeros --protocol 4 -d 0
IP <3
._.
How can the development branch be built?
This functionality is required for several block types, including slabs and stairs.
Hey DarkStorm652,
Since you finally started re-coding DarkBot, can I have your PayPal email? I'll drop you funds for a coffee :)
When I try to join a server i have:
[vvmapmcwpqljkvl] Done! (1)
java.io.EOFException
at java.io.DataInputStream.readInt(Unknown Source)
at org.darkstorm.darkbot.minecraftbot.protocol.AbstractProtocol.readHead
er(Unknown Source)
at org.darkstorm.darkbot.minecraftbot.protocol.SocketConnectionHandler$R
eadTask.run(Unknown Source)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
[vvmapmcwpqljkvl] Disconnected: Read error: java.io.EOFException
Protocols does not work for me.
"No protocol support for v4/5/etc. found"
What should I do?
The inventory system is quite outdated and somewhat incompatible with newer versions of Minecraft.
(From XxnewflarexX:)
I left my bot online 24 hours on a drug server farming for "weed" but I found out that after about 2 hours in-game, it clipped into a block multiple times and then disconnected with "bad packet".
Well first off, when using the Spambot on non offline servers with account list and proxy list a lot of @$!% happens a REALLY lot of spam and a lot of "account failed" I'm not talking about proxy's not working or alts not working i have 40 accounts logged in but when i press join only 2 join the server!?! with the delay at 5000 and most of the joins give me "account failed" Not that the username or password is wrong.
The main reason im posting this is this spam bot called "Apocalypse Bot" does not even use proxy's "they don't work" and it has premium accounts join very fast on servers without connection throttled "you can just change the throttle delay to 6000 on Apocalypse Bot" now I'm not here to say darkbot sucks and this other bot thing is better its just that this other spam bot Apocalypse Bot can join servers without http proxy's or socks at a fast speed and darkbot requires proxy's.... I'm just a bit confused on how apocalypse Bot is working with out getting you blacklisted from mojang login for 30 mins.....
Im going to include the program "ApocalypseBot.jar" if you would like to scan the program and see what it does and maby use its methods in darkbot the only reason me wanting this to be in darkbot is so i can have 50 bots following me around and bypassing the "you cannot chat until you move!" thing..
I hope you found this interesting if this could be added or copied into darkbot that would be wonderful!
download link to Apocalypse bot (made by Klintos) GUI only
https://dl.dropboxusercontent.com/s/ba05dyv9rgr1fvk/ApocalypseBot.jar
[Bot] Error connecting: org.darkstorm.darkbot.minecraftbot.protocol.UnsupportedProtocolException: No protocol support for v338 found.
org.darkstorm.darkbot.minecraftbot.protocol.UnsupportedProtocolException: No protocol support for v338 found.
at org.darkstorm.darkbot.minecraftbot.MinecraftBot.<init>(Unknown Source)
at org.darkstorm.darkbot.minecraftbot.MinecraftBot.<init>(Unknown Source)
at org.darkstorm.darkbot.minecraftbot.MinecraftBot$Builder.build(Unknown Source)
at org.darkstorm.darkbot.mcwrapper.cli.CLIBotWrapper.createBot(Unknown Source)
at org.darkstorm.darkbot.mcwrapper.cli.CLIBotWrapper.main(Unknown Source)
at org.darkstorm.darkbot.mcwrapper.Main.main(Unknown Source)
https://github.com/DarkStorm652/DarkBot/blob/ca22d51ac8124efe39a3463ac5ca613e32da4678/src/main/java/org/darkstorm/darkbot/minecraftbot/world/BasicWorld.java
@eventhandler
public void onLivingEntitySpawn(LivingEntitySpawnEvent event)
what happens to the spawnmob velocity data?
darkstorm, you can add own nicks? (nicks.txt)
How will the build command work?
Pls i need ;)
I can not connect to any server:
[ATOM] Disconnected: Read error: java.io.EOFException
java.io.EOFException
at java.io.DataInputStream.readInt(Unknown Source)
at org.darkstorm.darkbot.minecraftbot.protocol.AbstractProtocol.readHeader(AbstractProtocol.java:43)
at org.darkstorm.darkbot.minecraftbot.protocol.SocketConnectionHandler$ReadTask.run(SocketConnectionHandler.java:263)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
On the server:
java.io.IOExeption: Bad packet id 84
at ey.a(SourceFile:185)
at co.i(SourceFile:249)
at co.c(SourceFile:17)
at cp.run(SourceFile:94)
Disconnecting /127.0.0.1:52799: Protocol error
/127.0.0.1:52799 lost connection
Startup line:
java -jar DarkBot.jar --type bot --protocol 78 --offline --username ATOM --owner OXAYAZA --server localhost:25565
There needs to be a way to make it pick up drops within like 3-4 blocks when mineing or choping trees because it misses lots of blocks
if i click login and join nothing happens.
Hello DarkStorm652,
for beginners, it's very difficult to use your library. Couldn't you add an example code which makes a player join or something like that? It would be very helpful!
Greetings, xTACTIXzZ.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.