function getNearestBlock(bot, block_type, distance=16) {
     /**
     * Get the nearest block of the given type.
     * @param {Bot} bot - The bot to get the nearest block for.
     * @param {string} block_type - The name of the block to search for.
     * @param {number} distance - The maximum distance to search, default 16.
     * @returns {Block} - The nearest block of the given type.
     * @example
     * let coalBlock = world.getNearestBlock(bot, 'coal_ore', 16);
     **/
    let blocks = getNearestBlocks(bot, block_type, distance, 1);
    if (blocks.length > 0) {
        return blocks[0];
    }
    return null;
}
Get a list of the nearest blocks of the given types.
@param {Bot} bot - The bot to get the nearest block for.
@param {string[]} block_types - The names of the blocks to search for.
@param {number} distance - The maximum distance to search, default 16.
@param {number} count - The maximum number of blocks to find, default 10000.
@returns {Block[]} - The nearest blocks of the given type.
@example
let woodBlocks = world.getNearestBlocks(bot, ['oak_log', 'birch_log'], 16, 1);