async function equip(bot, itemName) {
    /**
     * Equip the given item to the proper body part, like tools or armor.
     * @param {MinecraftBot} bot, reference to the minecraft bot.
     * @param {string} itemName, the item or block name to equip.
     * @returns {Promise<boolean>} true if the item was equipped, false otherwise.
     * @example
     * await skills.equip(bot, "iron_pickaxe");
     **/
    let item = bot.inventory.slots.find(slot => slot && slot.name === itemName);
    if (!item) {
        log(bot, `You do not have any ${itemName} to equip.`);
        return false;
    }
    if (itemName.includes('leggings')) {
        await bot.equip(item, 'legs');
    }
    else if (itemName.includes('boots')) {
        await bot.equip(item, 'feet');
    }
    else if (itemName.includes('helmet')) {
        await bot.equip(item, 'head');
    }
    else if (itemName.includes('chestplate') || itemName.includes('elytra')) {
        await bot.equip(item, 'torso');
    }
    else if (itemName.includes('shield')) {
        await bot.equip(item, 'off-hand');
    }
    else {
        await bot.equip(item, 'hand');
    }
    log(bot, `Equipped ${itemName}.`);
    return true;
}
Place the given block type at the given position. It will build off from any adjacent blocks. Will fail if there is a block in the way or nothing to build off of.
@param {MinecraftBot} bot, reference to the minecraft bot.
@param {string} blockType, the type of block to place.
@param {number} x, the x coordinate of the block to place.
@param {number} y, the y coordinate of the block to place.
@param {number} z, the z coordinate of the block to place.
@param {string} placeOn, the preferred side of the block to place on. Can be 'top', 'bottom', 'north', 'south', 'east', 'west', or 'side'. Defaults to bottom. Will place on first available side if not possible.
@param {boolean} dontCheat, overrides cheat mode to place the block normally. Defaults to false.
@returns {Promise<boolean>} true if the block was placed, false otherwise.
@example
let p = world.getPosition(bot);
await skills.placeBlock(bot, "oak_log", p.x + 2, p.y, p.x);
await skills.placeBlock(bot, "torch", p.x + 1, p.y, p.x, 'side');