Mineflayer
Create Minecraft bots with a powerful and high level JavaScript API
...You can query the world around you. Milliseconds to find any block. Miscellaneous stuff such as knowing your health and whether it is raining. Parse and serialize Minecraft packets, plus authentication and encryption. Language independent module providing Minecraft data for Minecraft clients, servers, and libraries. Node.js library to interact with Mojang's authentication system, known as Yggdrasil. Represent a Minecraft biome with its associated data. Mineflayer is pluggable; anyone can create a plugin that adds an even higher level API on top of Mineflayer.