mdkjs
Version:
mdk is a framework for developing Datapacks for Minecraft. It uses the typescript language.
68 lines (67 loc) • 1.65 kB
TypeScript
import { int, float } from 'mdk-nbt';
declare const _default: {
add: typeof add;
center: typeof center;
get: () => string;
set: typeof set;
damage: {
amount: typeof amount;
buffer: typeof buffer;
};
warning: {
distance: typeof distance;
time: typeof time;
};
};
export default _default;
/**
* 增减世界边界的直径,即正方形边长
* @param distance 距离
*/
declare function add(distance: int): string;
/**
* 增减世界边界的直径,即正方形边长
* @param distance 距离
* @param time 时间
*/
declare function add(distance: int, time: int): string;
/**
* 获取世界边界的中心
*/
declare function center(): string;
/**
* 设置世界边界的中心
* @param location 坐标 x z
*/
declare function center(location?: string): string;
/**
* 设置世界边界的直径大小
* @param distance 距离
*/
declare function set(distance: int): string;
/**
* 设置世界边界的直径大小
* @param distance 距离
* @param time 时间
*/
declare function set(distance: int, time: int): string;
/**
* 指定世界边界外伤害速度
* @param damage 伤害
*/
declare function amount(damage: float): string;
/**
* 指定世界边界伤害缓冲区距离
* @param distance 距离
*/
declare function buffer(distance: int): string;
/**
* 指定世界边界出现警告的距离
* @param distance 距离
*/
declare function distance(distance: int): string;
/**
* 指定世界边界的警告时间
* @param time 时间
*/
declare function time(time: int): string;