Download Adam/ActionLib/gatherStone.js from OpenCausaLab/ADAM: direct link, hf CLI and curl.
- Browser
- Download file 485 Bytes
-
https://huggingface.co/OpenCausaLab/ADAM/resolve/main/Adam/ActionLib/gatherStone.js
- Command line
-
hf download hf://OpenCausaLab/ADAM/Adam/ActionLib/gatherStone.js
-
curl -L -o gatherStone.js https://huggingface.co/OpenCausaLab/ADAM/resolve/main/Adam/ActionLib/gatherStone.js
485 Bytes
| 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."); | |
| } |