UNPKG

@throw-out-error/minecraft-mcfunction

Version:

A simple way to create your mcfunction files using Typescript syntax.

18 lines (17 loc) 701 B
import { Command } from '..'; declare type Disable = ['disable', string]; declare type Enable = ['enable', string] | ['enable', string, 'first' | 'last']; declare type List = ['list'] | ['list', 'available' | 'enabled']; declare type Args = Disable | Enable | List; export declare class DatapackCommand extends Command<'datapack', Args> { constructor(...args: Args); } export declare function datapack(...args: Disable): DatapackCommand; export declare function datapack(...args: Enable): DatapackCommand; export declare function datapack(...args: List): DatapackCommand; declare module '../' { interface CommandContext { datapack: typeof datapack; } } export {};