UNPKG

bedrock-development

Version:

APIs for creating and editing files related to Minecraft Bedrock development.

31 lines (30 loc) 973 B
import { NameData } from "../../utils.js"; import { MinecraftDataType } from "../minecraft.js"; import { Identifier } from "../shared_types.js"; export interface IServerLootTable { pools: IServerLootTablePool[]; } export interface IServerLootTablePool { rolls: number; entries: IServerLootTableEntry[]; conditions?: IServerLootTableCondition[]; } export interface IServerLootTableEntry { type: string; name: Identifier; weight: number; functions?: IServerLootTableFunction[]; } export interface IServerLootTableFunction { function: string; [key: string]: any; } export interface IServerLootTableCondition { condition: string; } export declare class ServerLootTable extends MinecraftDataType implements IServerLootTable { pools: IServerLootTablePool[]; static get DirectoryPath(): string; constructor(filepath: string, template: IServerLootTable); static createFromTemplate(nameData: NameData): ServerLootTable; }