mineflayer plugin which gives bots a function to find the nearest block
A library to help your mineflayer bot find blocks in the 3D world.
var mineflayer = ;var blockFinderPlugin = mineflayer;var bot = mineflayer;// Install the plugin;// Sample usagebot;
Finds the nearest block(s) to the given point.
options- Additional options for the search:
point- The start position of the search.
matching- A function that returns true if the given block is a match. Also supports this value being a block id or array of block ids.
maxDistance- The furthest distance for the search, defaults to 64.
count- The number of blocks to find at most, defaults to 1.
callback- A callback function to get the result. Function signature:
Finds the nearest block(s) to the given point synchronously.