async function viewChest(bot) {
    /**
     * View the contents of the nearest chest.
     * @param {MinecraftBot} bot, reference to the minecraft bot.
     * @returns {Promise<boolean>} true if the chest was viewed, false otherwise.
     * @example
     * await skills.viewChest(bot);
     * **/
    let chest = world.getNearestBlock(bot, 'chest', 32);
    if (!chest) {
        log(bot, `Could not find a chest nearby.`);
        return false;
    }
    await goToPosition(bot, chest.position.x, chest.position.y, chest.position.z, 2);
    const chestContainer = await bot.openContainer(chest);
    let items = chestContainer.containerItems();
    if (items.length === 0) {
        log(bot, `The chest is empty.`);
    }
    else {
        log(bot, `The chest contains:`);
        for (let item of items) {
            log(bot, `${item.count} ${item.name}`);
        }
    }
    await chestContainer.close();
    return true;
}
Take the given item from the nearest chest, potentially from multiple slots.
@param {MinecraftBot} bot, reference to the minecraft bot.
@param {string} itemName, the item or block name to take from the chest.
@param {number} num, the number of items to take from the chest. Defaults to -1, which takes all items.
@returns {Promise<boolean>} true if the item was taken from the chest, false otherwise.
@example
await skills.takeFromChest(bot, "oak_log");
*