File size: 485 Bytes
36ba3ef
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
async function gatherStone(bot) {
    bot.chat('Gathering stone started');
    const stoneBlock = await exploreUntil(bot, new Vec3(1, -1, 1), 60, () => {
        const stone = bot.findBlock({
            matching: mcData.blocksByName["stone"].id,
            maxDistance: 32
        });
        return stone;
    });
    if (!stoneBlock) {
        bot.chat("No stone block found.");
        return;
    }
    await mineBlock(bot, "stone", 16);
    bot.chat("Mined 16 stone blocks.");
}