mdkjs
Version:
mdk is a framework for developing Datapacks for Minecraft. It uses the typescript language.
38 lines (37 loc) • 1.15 kB
TypeScript
import { int } from 'mdk-nbt';
import { Selector } from "../../../mdk-core/src";
declare const _default: {
block: typeof block;
entity: typeof entity;
};
export default _default;
/**
* 替换方块(箱子,熔炉等)物品栏内的物品。
* @param location 坐标
* @param slot 栏位
* @param item 物品
*/
declare function block(location: string, slot: int, item: string): string;
/**
* 替换方块(箱子,熔炉等)物品栏内的物品。
* @param location 坐标
* @param slot 栏位
* @param item 物品
* @param count 数量
*/
declare function block(location: string, slot: int, item: string, count: int): string;
/**
* 替换实体(玩家或生物)物品栏内的物品。
* @param target 实体
* @param slot 栏位
* @param item 物品
*/
declare function entity(target: Selector, slot: int, item: string): string;
/**
* 替换实体(玩家或生物)物品栏内的物品。
* @param target 实体
* @param slot 栏位
* @param item 物品
* @param count 数量
*/
declare function entity(target: Selector, slot: int, item: string, count: int): string;