import type {Bot} from '@wp2508/mineflayer'; import type {BaseFunction} from '../../../types/bot/function/function.ts'; import {block_arguments, run_block_operation, type GroupArgs} from './shared.ts'; export class init implements BaseFunction { readonly name = 'destroy_position_group_block'; readonly i18n = {lang: 'zh-CN', name: '依次破坏方块', description: '依次破坏坐标列表中的方块,失败停止且不回滚,不自动移动或切换工具'}; readonly args = block_arguments('group'); async run(bot: Bot, args: GroupArgs): Promise { return run_block_operation(bot, args, 'group', 'destroy'); } }