Files
2026-10-22 17:07:08 +08:00

13 lines
675 B
TypeScript

import type {Bot} from '@wp2508/mineflayer';
import type {BaseFunction} from '../../../types/bot/function/function.ts';
import {entity_arguments, run_entity_operation, type CursorItemArgs} from './shared.ts';
export class init implements BaseFunction<CursorItemArgs> {
readonly name = 'feed_cursor_entity';
readonly i18n = {lang: 'zh-CN', name: '喂食光标实体', description: '对光标实体使用指定手的物品,可选瞄准,由服务器判断是否可以喂食'};
readonly args = entity_arguments(false, true);
async run(bot: Bot, args: CursorItemArgs): Promise<boolean> {
return run_entity_operation(bot, args, false, 'item');
}
}