UNPKG

mdkjs

Version:

mdk is a framework for developing Datapacks for Minecraft. It uses the typescript language.

19 lines (18 loc) 740 B
import { ContextAbstract, File, Selector } from "../../../../mdk-core/src"; export declare class Loot extends ContextAbstract { constructor(context: File); spawn(location: string): Source; replaceEntity(target: Selector | string, slot: string, count?: number): Source; replaceBlock(location: string, slot: string, count?: number): Source; give(target: Selector | string): Source; insert(location: string): Source; } declare class Source { #private; constructor(context: Loot, text: string); fish(loottable: string, location: string, tool?: string): Loot; loot(loottable: string): Loot; kill(target: Selector): Loot; mine(location: string, tool?: string): Loot; } export {};