mdkjs
Version:
mdk is a framework for developing Datapacks for Minecraft. It uses the typescript language.
17 lines (16 loc) • 577 B
TypeScript
import { EnchantmentId, int } from 'mdk-nbt';
import { Selector } from "../../../mdk-core/src";
export default enchant;
/**
* 为一位玩家手持的物品添加魔咒。受限于铁砧机制。
* @param player 玩家
* @param enchantId 附魔id
*/
declare function enchant(player: Selector, enchantId: EnchantmentId): string;
/**
* 为一位玩家手持的物品添加魔咒。
* @param player 玩家
* @param enchantId 附魔id
* @param level 附魔等级
*/
declare function enchant(player: Selector, enchantId: EnchantmentId, level: int): string;