mineflayer-crafting-util
Version:
A plugin to simplify crafting recipes.
11 lines (10 loc) • 625 B
TypeScript
import type { Bot } from 'mineflayer';
import type { CraftOptions, CraftingPlan } from './types';
type CraftingTable = NonNullable<Parameters<Bot['craft']>[2]>;
export interface CraftPlanOptions {
strict?: boolean;
}
export declare function craftPlan(bot: Bot, plan: CraftingPlan, craftingTable: CraftingTable, options?: CraftPlanOptions): Promise<CraftingPlan>;
export declare function craftItem(bot: Bot, itemId: number, count: number, craftingTable: CraftingTable, options?: CraftOptions, craftOptions?: CraftPlanOptions): Promise<CraftingPlan>;
export declare function setupActualCrafting(bot: Bot): void;
export {};