chore: initial commit

This commit is contained in:
2026-10-22 17:07:08 +08:00
commit 0acef64f48
200 changed files with 35546 additions and 0 deletions
+12
View File
@@ -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 PositionArgs} from './shared.ts';
export class init implements BaseFunction<PositionArgs> {
readonly name = 'use_position_block';
readonly i18n = {lang: 'zh-CN', name: '使用指定方块', description: '右键使用指定坐标方块的指定面,距离为 4.5,不自动移动或装备'};
readonly args = block_arguments('position');
async run(bot: Bot, args: PositionArgs): Promise<boolean> {
return run_block_operation(bot, args, 'position', 'use');
}
}