imported>Superjoe |
imported>Superjoe |
| Line 1: |
Line 1: |
| == Goal ==
| | this wiki page is no longer valid. delete it! |
| | |
| Twofold:
| |
| | |
| # A clone of the real client, with extra features.
| |
| # A framework for easily writing bots in JavaScript.
| |
| | |
| The framework allows you to write complex bots in JavaScript with very little overhead. For example, echo_bot.js, who simply repeats everything you say, fits in less than 80 characters of code:
| |
| | |
| mf.onChat(function(username, message) {
| |
| mf.chat(message);
| |
| });
| |
| | |
| | |
| Progress:
| |
| | |
| * See [https://github.com/superjoe30/mineflayer/tree/master/examples examples] of bots already written.
| |
| | |
| | |
| == Source code ==
| |
| | |
| See [http://github.com/superjoe30/mineflayer mineflayer] on GitHub.
| |
| | |
| == Screenshots ==
| |
| | |
| Debugging echo_bot.js
| |
| | |
| [[File:Mineflayer-debugger-1.png]]
| |
| | |
| As I step through the debugger, it runs this line of code which caused echo_bot to chat in Minecraft.
| |
| | |
| [[File:Mineflayer-debugger-2.png]]
| |
| | |
| Lots of block types and metadata are rendered correctly.
| |
| [[File:Mineflayer-wool.png]]
| |
| | |
| A view from the sky back when seams were rendered incorrectly.
| |
| [[File:Mineflayer-map.png]]
| |
Latest revision as of 19:08, 3 January 2013
this wiki page is no longer valid. delete it!