darthfett / helperbot Goto Github PK
View Code? Open in Web Editor NEWA mineflayer bot that helps you do things in minecraft.
A mineflayer bot that helps you do things in minecraft.
I wonder if there would be much to do to update this bot to last mineflayer ?
It's always nice when the bot looks at the result of find, that way if you're lazy you don't have to do math or even check F3 to see where the bot is talking about, you can just go where it's looking
<Darthfett> list
<helperbot> Stone Shovel x 1, Stone Pickaxe x 1, Stone Pickaxe x 1, Stone Pickaxe x 1, Stone Pickaxe x 1, Stone
<helperbot> Pickaxe x 1, Stone Pickaxe x 1, Stone Pickaxe x 1, Stone Pickaxe x 1, Stone Pickaxe x 1, Gravel x 64
<helperbot> , Cobblestone x 27, Dirt x 33, Cobblestone x 49, Gravel x 10
He should just say 'Stone Pickaxe x 9', and 'Gravel x 74'.
The find command causes the bot to often give the wrong location of the block (off by one usually).
i can gimme sword, but not gimme dirt. It looks like the items list doesn't include anything below 256.
Whenever the bot gets interrupted during strip mining, such as by running out of the required tool or having a problem equipping/digging, when he is told to strip again (after fixing the problem), without telling him to strip.stop, he will crash after mining 1 block.
I think it happens when there is lava in front of the head of the bot.
see this http://www.youtube.com/watch?v=YQ1j4mWsEhY
On Windows, when running a local server and telling the bot to navigate, the bot often fails to jump, running off the block and falling. Looks to be related to PrismarineJS/mineflayer-navigate#14 .
Video of problem: https://youtu.be/VO6wTY-haYc
would be pretty easy to implement and could be really helpful
how about superjoe30/mineflayer-navigate
I should be able to set a command line argument which sets the bot to only obey a certain username or set of usernames.
maybe --master <username>
and you could use the parameter multiple times to have multiple masters.
Once logged in, masters should be able to add or remove masters, much like server ops can add or remove ops.
This plugin looks fun. can haz?
nobody knows how to use this bot
Gives me this error while executing node helpebot.js <serverip>
` bot.inventory = new windows.InventoryWindow(0, "Inventory", 44);
^
TypeError: windows.InventoryWindow is not a constructor`
When the player enters a number in before the name of the item in the gimme command, the count and id are reversed.
Bots given the strip command can have the process continue running, even after getting kicked from the server, due to the strip command (repeatedly logging 'breakAllInRange').
when helperbot joins it should privately tell the owner the URL where an instruction manual can be found, possibly the helperbot readme on github.
Find appears to crash the bot if his master is out of range
I'd like to use your findBlock function in my bot (https://github.com/rom1504/rbot) but i feel just copying your file into my project isn't the right way, because if you change something i have to change it,...
So it would be nice to put blockFinder in a separate github project and to npm publish it, so i can just do npm install blockFinder and use it in my project.
There is no liscense on this code, It would be reasurring to have one on this repo, even something in the readme that says "we dont want you doing anything with this code" would be nice.
When a bot tries to strip mine, and runs into a torch beneath a block, he will walk onto the torch and repeatedly jump until he dies.
As of 0.0.3, mineflayer comes bundled with a list of items. You should probably use that so that when minecraft updates all you have to do is update your mineflayer dependency.
mine coal
mine coal
State: walking, blocks: Coal Ore, Coal Ore
instead of having follow.stop mine.stop strip.stop etc. every plugin should listen to stop and respond appropriately.
Currently the bot wastes time moving back to the west end of the chunk every time he finishes mining a row of blocks. He should instead mine in a zig-zag pattern to save walking time.
createClient: don't require both email and username.
The username and password arguments are used to authenticate with the official
minecraft servers and determine the case-correct username. If you have migrated your
user account to a mojang login, username looks like an email address.
If you leave out the password argument, username is used to connect directly to the
server. In this case you will get kicked if the server is in online mode.
Add a help command. This should be implemented on chatCommands, by looking up all available commands, and displaying information about the command. This extra information could be added as an optional parameter when registering a command.
I am trying to use the bot on play.corbacraftmc.com but it is not following any commands?
there should be a variable called something like MAX_CPU_TIME and when it has spent that much time looking, it stops searching and uses process.nextTick
to resume where it left off.
this would make findBlock
callback-based instead of returning the result.
this way the bot does not quit due to a timeout error if searching is taking a long time. it would also provide the ability to cancel an in-progress search.
I get this (in state walking) and get this in the console :
Error equipping: Error: Server rejected transaction.
at Bot. (/home/rom1504/test/helperbot/node_modules/mineflayer/lib/plugins/inventory.js:757:12)
at Bot.g (events.js:192:14)
at Bot.EventEmitter.emit (events.js:96:17)
at onRejected (/home/rom1504/test/helperbot/node_modules/mineflayer/lib/plugins/inventory.js:726:11)
at confirmTransaction (/home/rom1504/test/helperbot/node_modules/mineflayer/lib/plugins/inventory.js:709:7)
at Client. (/home/rom1504/test/helperbot/node_modules/mineflayer/lib/plugins/inventory.js:851:5)
at Client.EventEmitter.emit (events.js:96:17)
at Socket.Client.setSocket.ended (/home/rom1504/test/helperbot/node_modules/mineflayer/node_modules/minecraft-protocol/lib/client.js:39:12)
at Socket.EventEmitter.emit (events.js:96:17)
at TCP.onread (net.js:397:14)
Here's the old javascript:
https://github.com/superjoe30/mineflayer/tree/cpp-qt-end/examples
there should be some kind of algorithm to prevent gravel/sand deaths.
2013-02-08 20:16:32 <myLongshanks> mine i o Gon
2013-02-08 20:16:32 <Rin> Unknown block: i o Gon
2013-02-08 20:16:32 <Gon> Unknown block: i o Gon
2013-02-08 20:16:32 <Killua> Unknown block: i o Gon
there should be a way to do what she is trying to do, and it should be documented in the README
bot can't do it because it's trying to get to the diamond ore and it's impossible.
After some time of strip mining, the bot will encounter an "Error breaking block". When I tell him to strip again, he will continue mining until he needs to switch tools again, and repeat the same error. This continues until the bot is restarted, at which point he will throw the tool he was attempting to equip for the next block on the ground.
I think this may be a bug with the inventory/equipping.
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.