import type {Bot} from '@wp2508/mineflayer'; import type {BaseFunction} from '../../../types/bot/function/function.ts'; import {block_arguments, run_block_operation, type PositionArgs} from './shared.ts'; export class init implements BaseFunction { readonly name = 'destroy_position_block'; readonly i18n = {lang: 'zh-CN', name: '破坏指定方块', description: '破坏指定坐标及面的方块,操作距离为 4.5,不自动移动或切换工具'}; readonly args = block_arguments('position'); async run(bot: Bot, args: PositionArgs): Promise { return run_block_operation(bot, args, 'position', 'destroy'); } }