UNPKG

mdkjs

Version:

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

107 lines (106 loc) 5.36 kB
import { WhiteList, Title, Team, Advancement, Attribute, Bossbar, Data, Datapack, Effect, Execute, Experience, Forceload, GameRule, Loot, Recipe, ReplaceItem, Schedule, Time, Trigger, Weather, WorldBorder, Tag, Scoreboard } from '../class/context'; import { BanTargetType } from '../function/ban'; import { CloneMode, MaskMode } from '../function/clone'; import { ActionType } from '../function/debug'; import { FillMode } from '../function/fill'; import { ParticleIdType, VisibleMode } from '../function/particle'; import { SaveType } from '../function/save'; import { SetblockMode } from '../function/setblock'; import { Selector, Criteria, LiteralType, TextToken, ContextAbstract } from "../../../mdk-core/src"; import { BiomeId, double, EnchantmentId, Entity, float, GameMode, int, SoundType, StructureType } from 'mdk-nbt'; import { BlockItemId } from 'mdk-nbt/dist/item/__'; import { Objective } from "./objective"; export declare class Command extends ContextAbstract { #private; constructor(target?: Selector); get tag(): Tag; get attribute(): Attribute; get loot(): Loot; get forceload(): Forceload; get advancement(): Advancement; get execute(): Execute; get worldborder(): WorldBorder; get whitelist(): WhiteList; get weather(): Weather; get trigger(): Trigger; get title(): Title; get time(): Time; get team(): Team; get bossbar(): Bossbar; get datapack(): Datapack; get effect(): Effect; get experience(): Experience; get gamerule(): GameRule; get recipe(): Recipe; get replaceitem(): ReplaceItem; get schedule(): Schedule; get data(): Data; scoreboard(objective: Objective): Scoreboard; objective(name: string, criterion?: Criteria, displayName?: string): Objective; clear(item: string, maxCount: int): this; clone(from: string, to: string, dist: string): Command; clone(from: string, to: string, dist: string, maskMode: MaskMode): Command; clone(from: string, to: string, dist: string, maskMode: MaskMode, cloneMode: CloneMode): Command; clone(from: string, to: string, dist: string, maskMode: MaskMode, cloneMode: CloneMode, blockId: string): Command; debug(action: ActionType): this; defaultgamemode(mode: GameMode): this; deop(player: Selector): this; difficulty(mode: GameMode): this; enchant(enchantId: EnchantmentId, level: int): this; fill(from: string, to: string, blockId: BlockItemId): Command; fill(from: string, to: string, blockId: BlockItemId, mode: FillMode): Command; fill(from: string, to: string, blockId: BlockItemId, replaceBlockId: string): Command; gamemode(mode: GameMode): this; kick(reason?: string): this; kill(): this; locate(structure: StructureType): this; msg(message: string): this; op(player: Selector): this; pardon(name: string): this; pardonIp(ip: string): this; particle(particleId: ParticleIdType, location: string): Command; particle(particleId: ParticleIdType, location: string, delta: string): Command; particle(particleId: ParticleIdType, location: string, delta: string, speed: double): Command; particle(particleId: ParticleIdType, location: string, delta: string, speed: double, count: int): Command; particle(particleId: ParticleIdType, location: string, delta: string, speed: double, count: int, mode: VisibleMode): Command; playsound(soundPath: string, source: string): Command; playsound(soundPath: string, source: string, location: string): Command; playsound(soundPath: string, source: string, location: string, volume: float): Command; playsound(soundPath: string, source: string, location: string, volume: float, tone: float): Command; playsound(soundPath: string, source: string, location: string, volume: float, tone: float, minVolume: float): Command; publish(port?: string): this; seed(): void; setblock(location: string, blockId: string): Command; setblock(location: string, blockId: string, mode: SetblockMode): Command; setidletimeout(minute: int): this; setworldspawn(location?: string): this; spawnpoint(location: string): this; spreadplayers(location: string, spreadDistance: float, maxRange: float, respectTeams: boolean): this; stop(): this; stopsound(source: string): Command; stopsound(source: SoundType, soundPath: string): Command; summon(nbt: Entity, location?: string): this; teammsg(message: string): this; say(message: string): this; tm(message: string): this; teleport(destination: Selector, rotation?: string): Command; teleport(location: string): Command; tell(message: string): void; tp(destination: Selector, rotation?: string): Command; tp(location: string): Command; w(msg: string): this; $function(name: string): this; ban(reason?: string): this; banIp(ip: string, reason?: string): this; banList(type?: BanTargetType): this; list(uuids?: string): this; locatebiome(biomeId: BiomeId): this; me(msg: string): this; reload(): this; save(type: SaveType): this; saveAll(): this; saveOn(): this; saveOff(): this; tellraw(json: LiteralType<TextToken[]>): this; spectate(player: string): this; }