UNPKG

mdkjs

Version:

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

30 lines (29 loc) 1.59 kB
import { Selector, CommandText } from "../../../../mdk-core/src"; import { ScoreRange, Dimension, StoreOption, AnchorOption, BlockEntityState } from 'mdk-nbt'; import StoreLogic from "./StoreLogic"; export default class Execute extends CommandText { constructor(); ifBlock(blockID?: string, axis?: string, blockState?: BlockEntityState): Execute; unlessBlock(blockID?: string, axis?: string, blockState?: BlockEntityState): Execute; ifBlocks(): Execute; unlessBlocks(): Execute; ifScore(target: Selector, objective: string, source: string, srouceObjective: string, operation: string): Execute; unlessScore(target: Selector, objective: string, source: string, srouceObjective: string, operation: string): Execute; ifScoreMatches(range: ScoreRange): Execute; ifScoreMatches(selector: string | Selector, range: ScoreRange): Execute; unlessScoreMatches(range: ScoreRange): Execute; unlessScoreMatches(selector: string | Selector, range: ScoreRange): Execute; in(dimension?: Dimension): this; store(option?: StoreOption): StoreLogic; rotatedEntity(selector?: string | Selector): this; rotated(y: number, x: number): this; positioned(axis: string): this; positionedEntity(selector: string): this; align(axis?: string): this; anchored(type?: AnchorOption): this; as(selector?: string | Selector): this; at(selector?: string | Selector): this; facing(location: string): this; facingEntity(selector: string | Selector, anchorType?: AnchorOption): this; run(cmd: string): void; }