chore: initial commit
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
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<GroupArgs> {
|
||||
readonly name = 'use_position_group_block';
|
||||
readonly i18n = {lang: 'zh-CN', name: '依次使用方块', description: '按坐标列表依次右键使用方块,失败停止且不回滚,不自动移动或装备'};
|
||||
readonly args = block_arguments('group');
|
||||
async run(bot: Bot, args: GroupArgs): Promise<boolean> {
|
||||
return run_block_operation(bot, args, 'group', 'use');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user