checkProgress = () => {
        if (bot.targetDigBlock) {
            const targetBlock = bot.targetDigBlock;
            const itemId = bot.heldItem ? bot.heldItem.type : null;
            if (!targetBlock.canHarvest(itemId)) {
                log(bot, `Pathfinding stopped: Cannot break ${targetBlock.name} with current tools.`);
                bot.pathfinder.stop();
                bot.stopDigging();
            }
        }
    }
Navigate to the given position.
@param {MinecraftBot} bot, reference to the minecraft bot.
@param {number} x, the x coordinate to navigate to. If null, the bot's current x coordinate will be used.
@param {number} y, the y coordinate to navigate to. If null, the bot's current y coordinate will be used.
@param {number} z, the z coordinate to navigate to. If null, the bot's current z coordinate will be used.
@param {number} distance, the distance to keep from the position. Defaults to 2.
@returns {Promise<boolean>} true if the position was reached, false otherwise.
@example
let position = world.world.getNearestBlock(bot, "oak_log", 64).position;
await skills.goToPosition(bot, position.x, position.y, position.x + 20);