mdkjs
Version:
mdk is a framework for developing Datapacks for Minecraft. It uses the typescript language.
41 lines (40 loc) • 2.61 kB
TypeScript
export declare type ModifierType = 'append' | 'insert' | 'merge' | 'prepend' | 'set';
declare const _default: {
getBlock: typeof getBlock;
getEntity: typeof getEntity;
getStorage: typeof getStorage;
mergeBlock: typeof mergeBlock;
mergeEntity: typeof mergeEntity;
mergeStorage: typeof mergeStorage;
removeStorage: typeof removeStorage;
removeBlock: typeof removeBlock;
removeEntity: typeof removeEntity;
modifyBlock: {
fromBlock(targetPos: string, path: string, type: ModifierType, sourcePos: string, sourcePath: string): string;
fromEntity(targetPos: string, path: string, type: ModifierType, sourceTarget: string, sourcePath: string): string;
fromStorage(targetPos: string, path: string, type: ModifierType, source: string, sourcePath: string): string;
value(targetPos: string, path: string, type: ModifierType, nbt: string): string;
};
modifyEntity: {
fromBlock(targetPos: string, path: string, type: ModifierType, sourcePos: string, sourcePath: string): string;
fromEntity(targetPos: string, path: string, type: ModifierType, sourcePos: string, sourcePath: string): string;
fromStorage(targetPos: string, path: string, type: ModifierType, sourcePos: string, sourcePath: string): string;
value(targetPos: string, path: string, type: ModifierType, nbt: string): string;
};
modifyStorage: {
fromBlock(targetPos: string, path: string, type: ModifierType, sourcePos: string, sourcePath: string): string;
fromEntity(targetPos: string, path: string, type: ModifierType, sourcePos: string, sourcePath: string): string;
fromStorage(targetPos: string, path: string, type: ModifierType, sourcePos: string, sourcePath: string): string;
value(targetPos: string, path: string, type: ModifierType, nbt: string): string;
};
};
export default _default;
declare function getBlock(targetPos: string, path?: string, scale?: number): string;
declare function getEntity(target: string, path?: string, scale?: number): string;
declare function getStorage(target: string, path?: string, scale?: number): string;
declare function mergeBlock(targetPos: string, path?: string): string;
declare function mergeEntity(target: string, path?: string): string;
declare function mergeStorage(target: string, path?: string): string;
declare function removeStorage(target: string, path?: string): string;
declare function removeBlock(targetPos: string, path?: string): string;
declare function removeEntity(target: string, path?: string): string;