Mineflayer: Difference between revisions

From wiki.vg
Jump to navigation Jump to search
imported>Superjoe
(Created page with "== Goal == 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 J...")
(No difference)

Revision as of 07:56, 11 February 2011

Goal

Twofold:

  1. A clone of the real client, with extra features.
  2. 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:


Source code

See mineflayer on GitHub.

Screenshots

Debugging echo_bot.js

As I step through the debugger, it runs this line of code which caused echo_bot to chat in Minecraft.

Lots of block types and metadata are rendered correctly.

A view from the sky back when seams were rendered incorrectly.