diff --git a/src/agent/library/skills.js b/src/agent/library/skills.js index a3732b9..700cbb7 100644 --- a/src/agent/library/skills.js +++ b/src/agent/library/skills.js @@ -359,11 +359,13 @@ export async function collectBlock(bot, blockType, num=1, exclude=null) { let blocktypes = [blockType]; if (blockType.endsWith('ore')) blocktypes.push('deepslate_'+blockType); + if (blockType === 'dirt') + blocktypes.push('grass_block'); let collected = 0; for (let i=0; i= count) + if (count !== null && blocks.length >= count) break; } }