import type {Bot} from '@wp2508/mineflayer'; import type {BaseFunction} from '../../../types/bot/function/function.ts'; import {block_arguments, run_block_operation, type CursorArgs} from './shared.ts'; export class init implements BaseFunction { readonly name = 'destroy_cursor_block'; readonly i18n = {lang: 'zh-CN', name: '破坏光标方块', description: '破坏光标指向的方块,默认保留视角,不自动移动或切换工具'}; readonly args = block_arguments('cursor'); async run(bot: Bot, args: CursorArgs): Promise { return run_block_operation(bot, args, 'cursor', 'destroy'); } }